RE: exe imports / exports and Eu
- Posted by Matthew Lewis <matthewwalkerlewis at YAHOO.COM> May 24, 2001
- 417 views
> -----Original Message----- > From: Mark Brown [mailto:mabrown at SENET.COM.AU] > I still can't get the exe to open. It is failing at open_dll. > I tried loading the "sgrid.ocx" from your "EUCom" and > that loaded fine. I thought perhaps that AC3D.exe > itself needed the tcl dll's (which I had not copied across > to my code folder) so I copied everything from the > AC3D folder to the folder containing my code but still no > go. After some testing, here's what I've found. You can only get access to files that are in the same folder, are in subfolders of your code, or are in the system directory. This appears to be a windows thing. I tried to use LoadLibraryA instead of open_dll(), and got the exact same results. so the solution seems to be to move your code (once compiled, at least) to the same folder. Matt Lewis