mercredi 27 juillet 2016

dllexport with vs15 don't export

i created a little plugin system that export few functions.

#define EXPORT extern "C" __declspec(dllexport)
EXPORT BOOL WINAPI LoadPlugin()
{
    return TRUE;
}
...

When i compile in command line, cl /LD plugin.cpp, it export my function which is obviously want i want, but i created a vs15 project and the function aren't exported anymore. I don't see the export in a debugger & GetProcAddress doesn't work anymore. The error code is 127. I guess i miss an option, but i cannot find it.

Aucun commentaire:

Enregistrer un commentaire