After importing a managed class's tlb in an unmanaged C++ application, you've a good chance to get several compling errors about _TypePtr.
To work around this issue, You’ll need to add the path to mscorlib.tlb to %PATH%, or just copy it to the current directory. Type library dependencies are only resolved in the %PATH% including current directory, which is why mscorlib.tlb is not found.
本文解决了一个在未托管C++应用程序中导入托管类的类型库时出现的关于_TypePtr的编译错误问题。通过将mscorlib.tlb添加到系统路径或复制到当前目录来解决此问题。
1947

被折叠的 条评论
为什么被折叠?



