OK, here it is in kind of a pseudo code format for easier readability.. or so I hope. If not, I apologize beforehand!
Header file, dllheader.h:
#ifdef __cplusplus
extern "C" {
#endif
//ADDAPI is simply a __declspec(dllexport) in this case.
void* ADDAPI createLibMain();
int ADDAPI helloWorld();
#ifdef __cplusplus
}
#endif
The cpp file:
#include "dllheader.h"
#include "mycpplibraryheader.hpp"
void* createLibMain()
{
return new CPPLibraryNativeObject();
}
int helloWorld()
{
return 1337;
}
I wouldn't normally return a void pointer to as a return value, but did so here to keep things minimal.
If you can't spot anything strange with my code, I can also try and strip away the various third party libraries I use one by one until the message stops appearing, too.
Anyway, thanks in advance!