Posted: Thu Apr 19, 2018 8:41 am Post subject: C++ dllexport
I am trying to create a plugin for CE, in the declaration of the functions to be exported I do something like "BOOL __declspec(dllexport) __stdcall CEPlugin_GetVersion(PPluginVersion pv, int sizeofpluginversion)".
But there is a Problem, the exported symbol is not "CEPlugin_GetVersion", in fact the symbol is"?CEPlugin_GetVersion@@YGHPAU_PluginVersion@@H@Z".
How to make Visual Studio 2017 export the symbolos correctly? _________________
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
Posted: Thu Apr 19, 2018 8:51 am Post subject:
1: You can name you sourcefile xxx.C instead of xxx.CPP
2: you can use a .def file to define the exports
3: (easiest) project properties->advanced->compile as->"compile as c code" _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
I tried to do step 1 and 4. But what I got now is that after the function name appears @x.
Example CEPlugin_GetVersion @ 8, where 8 is the number of bytes that the parameters of the function occupy. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum