Page 1 of 1
How to inbound DLL?
Posted: Thu Mar 27, 2008 10:49 pm
by rolstra
Beginner's question: How can I inbound a DLL in an executable? Does the DLL have to be in the same directory as the .pb file when compiling it? Or does purebasic know automatically where the DLL files are?
Thank you - Roland.
Posted: Fri Mar 28, 2008 11:07 am
by Seldon
If you load the functions of the DLL at run-time (by OpenLibrary() & GetFunction() PB commands) , the DLL must be in a valid path when you run the calling program (if it's a custom DLL, put it in the same folder of your program).
If you import the functions file (it's called import LIB, but note it is NOT a static library) , the LIB file must be reached by the PB compiler during the compilation process.
I also suggest you to read this:
http://en.wikipedia.org/wiki/Dynamic-link_library