Hi guys I got a generic question (looking for a generic answer):
I have to load a DLL into C++, I've been playing around all day with it trying to access the methods (I have a big manual for the DLL), so far I have tried the next:
1.-
#import "path\NameofDLL.dll"
using namespace NameofDLLlib;
2.-
turning the DLL to Lib (with DLL to Lib) and just calling a #include "NameofDLL.h" and adding the "NameofDLL.lib" to the linker paths
Now I am doing a lot of things wrong but I got no one to go here except lots of internet info.
The DLL has a class, when I declare the class in my program I just do:
ClassName Class1; and then start calling the methods with Class1.method(); but that is not working
So my questions are:
What method do you recommend me to import he DLL?
How do I call the methods of the DLL class?
I tried googling my questions, but I have the excess information syndrome right now