so here's my issue. I have a DLL that is referenced by an application (both of which I'm writing). The DLL should declare a method, called AppMain
, and the application should define this method. Before I started using DLLs I was using a LIB file and the extern
keyword. My code used to look like this:
The referenced assembly
extern bool AppMain(void* input);
The application referencing the assembly
#pragma comment( lib, "TheReferencedAssembly.lib" )
bool AppMain( void* input )
{
// Awesome stuff
}
Now that I'm using a DLL, I've droppped the #pragma comment
part and just referenced the assembly and included a header that contains the declaration, but I keep getting the old unresolved reference error.
Any help here would be greatly appreciated. Thanks!