Import/Export class from Dll
Posted on 2004-04-30
I have a dll, and i have an exe.
Now the dll is a plugin (so absolutely NO .lib import!!).
I have a class in the dll (MyDb). Where the header-file is shared by both the exe and the dll.
And in the dll I have a function MyDb* CreateDatabase( filename ); which does nothing more then "return new MyDb(filename);".
Now when I use this MyDb in my exe, of course it gives linker errors about unresolved symbols...
But now is the question... How can I solve this so that my exe knows that it needs to look for those functions in the dll, and not in the exe?