How do I DllExport a C++ Class for use in a C# Application

后端 未结 5 524
独厮守ぢ
独厮守ぢ 2020-12-05 11:37

I have created a C++ Dll project which contains a class \"myCppClass\" and tried to Dll export it using the following code as described by: http://msdn.microsoft.com/en-us/l

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 12:12

    Actually, you can refer to the mangled names directly, using the EntryPoint property of the DllImport attribute. See this answer for more details.

提交回复
热议问题