文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>error C3395: 'MyClass::Function' : __declspec(dllexport) cannot be applied to a

error C3395: 'MyClass::Function' : __declspec(dllexport) cannot be applied to a

时间:2010-11-19  来源:zip's

error C3395: 'MyClass::Function' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention

 

解决方法是,为参数包上 gcroot<>.

class AFX_EXT_CLASS MyClass{ public:   void Function(MyDotNetClass^ obj); // 编译错误  void Function(gcroot<MyDotNetClass^> obj); // OK!}

 

相关阅读 更多 +
排行榜 更多 +
星穹铁道

星穹铁道

模拟经营 下载
地铁查询宝

地铁查询宝

交通出行 下载
第9黎明3内置修改器版

第9黎明3内置修改器版

角色扮演 下载