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.
如何将 c++ 结构转换为 Object ?
struct FileInfo{ float width, height; }; FileInfo *info = (FileInfo*)malloc(sizeof(FileInfo)); Object ^obj = (Object^)info;
错误“类型转换”:无法从 FileInfo * 转换为 'System::Object ^
更新我需要将 Object^ 转移到该方法。我无法修改方法。(这是api)