How to export class to dll without Decorated/Mangled names?

时间:2018-02-03 11:21:22

标签: c++ visual-c++ dll dllexport

I am trying to export a class called Point:

class _declspec(dllexport) Point
{
public:
    void output(int x, int y);
};

when I use dumpbin.exe tool to look at the dll,it shows me:

??4Point@@QAEAAV0@$$QAV0@@Z = @ILT+760(??4Point@@QAEAAV0@$$QAV0@@Z) ??4Point@@QAEAAV0@ABV0@@Z = @ILT+240(??4Point@@QAEAAV0@ABV0@@Z) ?output@Point@@QAEXHH@Z = @ILT+450(?output@Point@@QAEXHH@Z)

I know use extern "C" or a def file to avoid names mangled when I exports functions,but how can I do when I exports a class?

0 个答案:

没有答案