I would like to know how to get rid of the scenery around the function of the class that I need to export to dll. For example, when you have something like this:
extern "C" { __declspec(dllexport) int __cdecl getWhatever(); }
And you confirm with dependencyWalker that the name of the function that is being exported, you will have exactly the same function name.
But if you do something similar with the class, there will be a bunch of character decorating this function as follows:
extern "C" { class __declspec(dllexport) Toto { __cdecl Toto(){} __cdecl ~Toto(){} int __cdecl getBlob(float y){return (int)y;} }; }
In dependencyWalker, you will see the following:
?? 0Toto @@ AAE @XZ
?? 1Toto @@ AAE @XZ
?? 4Toto @@ QAEAAV0 @ ABV0 @@ Z
? @GetBlob Toto @@ AAAHM @Z
So, how to make it clean, as with a procedural function?
Thanks,
source share