I have a problem with code for a dll originally written in VC++ 6. It compiles fine in VC++ 6, but I want to port it to C in order to get away from .NET. The culprit seems to be this piece of code:
#define PLUGINAPI extern "C" __declspec(dllexport)
I get the following warnings and errors:
warning #2099: Missing type specifier.
error #2014: Empty declaration.
error: expected ';' but found 'string constant'.
error #2156: Unrecognized declaration.
I have tried many different solution but I just cannot get it to work
. Anyone?