【发布时间】:2013-11-24 09:48:38
【问题描述】:
我正在使用这个类:
public ref class x: public System::Windows::Forms::Form
{
private: gcroot<std::string> name;
}
我收到以下错误:
IntelliSense: a member of a managed class cannot be of a non-managed class type
我知道我可以使用char*,但如果我使用大量char*,我将不得不手动执行delete[],否则会出现一些堆损坏问题
我已经坚持了两天了
注意:我必须使用 c++ 并且必须在 c++ 中使用 UI
【问题讨论】: