then put MIDAS11.DLL in the 'libs' folder with my program, but this doesn't seem to work as winxp can't find it. I know i should sling it into 'C:\windows\system32' but i would like a work around for people not having this dll, so they can literaly unzip my program and run it straight away without confusing their heads with moving files. any ideas?
Restored from previous forum. Originally posted by Pupil.
Originally posted by MrVainSCL
hi
As i know windows will search the dll in the System folder, your application folder (where u will run the exe from)... and this should no prob....
If you use the compile/run option in the PureBasic editor the EXE is created in the PureBasic\Compiler folder(and run from there), so if you put your midas-DLL there everything should work fine during testing and debugging stage.
Restored from previous forum. Originally posted by Pupil.
Originally posted by MrVainSCL
hi pupil
yes i know... but the best thing is copy it into sys folder... or include it in the directory where you run the exe from
The tip was intended for Kale, in case he didn't know that when compiling and running -the exe is run from the folder i mentioned. I just quoted you because you said that the dll can be located in the same folder that your program is in, but this isn't necessary the same place that your source is located -that was my point
Restored from previous forum. Originally posted by blueb.
Kale,
Programs first look in your application's folder, then if it still hasn't found the dll, tries the Windows\System folder. Therefore no need to copy files to the system folder (just creates a mess for the user).
[Added Later]
Note: Do not include DLL's that you might not have the legal right to distribute. You are better to tell them where to get the required DLL.