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.