Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
呃,我有一个问题,我不明白......
class ManagedGlobals { public: gcroot<Editor^> MainEditor; };
为什么我的编译器给我:
syntax error : missing ';' before '<'
为什么?
你做了这个了吗?
#include <vcclr.h> using namespace System;
这是使用 gcroot 的完整示例。