标签: c++-cli
class ManagedGlobals { public: gcroot<Editor^> MainEditor; };
为什么我的编译器会给我:
syntax error : missing ';' before '<'
为什么?
答案 0 :(得分:2)
你做到了吗?
#include <vcclr.h> using namespace System;
Here's a full example使用gcroot。