Importing my first C++ DLL
Posted: Tue Jan 11, 2011 11:42 pm
Hi all,
Ok, so I managed to compile a DLL in C++, and even managed to open it with OpenLibrary() and saw the functions inside using NextLibraryFunction(). Now... how do I call these functions? I noticed that there are some functions for this (CallFunction() and CallCFunction()). However, I have seen some examples here on the forums where people "declare" the import functions in PB code. How does this work? Thanks for any info on this.
Ok, so I managed to compile a DLL in C++, and even managed to open it with OpenLibrary() and saw the functions inside using NextLibraryFunction(). Now... how do I call these functions? I noticed that there are some functions for this (CallFunction() and CallCFunction()). However, I have seen some examples here on the forums where people "declare" the import functions in PB code. How does this work? Thanks for any info on this.