Thanks so much, the example provided was very useful, and simple.
Now I have one more fallow up question:
Is it possible to have the library loaded at run time? If yes how?
I presume you can still use LoadLibrary and GetProcAddress ( and what will u use to declare a class and use its member).
this is an example of what i want to do:
int main()
{
HInstance hDll;
/* */
hDll = LoadLibrary("my.dll");
//declare object contained in library
MyObj obj; //<--- how will you declare this if its in the library
obj.Print("HEY"); //call a member function of MyObj
/**/
}
Thanks. You have been extremely helpful
:D