错误 C2143:缺少 ';'在'->'之前
我在这里和互联网上进行了搜索,似乎没有人遇到与我类似的问题,我不太明白为什么我不能让它工作。
阻止我编译的行是:
LitCiterCommon::LitCiterTrace->Init();
如果我从不同的文件(c#)调用 LitCiterTrace.Init()
,它编译得很好,但由于某种原因,我无法从托管 cpp 调用它。
有什么想法或建议吗?
I've searched here and the internet and no one seems to be having a similar problem to me and I can't quite figure out why I cannot get this to work.
The line that is preventing me from compiling is:
LitCiterCommon::LitCiterTrace->Init();
If I call LitCiterTrace.Init()
from a different file (c#) it compiles just fine, but for some reason I cannot call it from managed cpp.
Any ideas or suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果
Init
是 静态那么它与 C++ 中的方法没有任何不同:If
Init
is a static method then it would not be any different than in C++: