I'm looking at some Direct3D code for WinRT and notice in there "ref classes" there using "ComPtr<ID3D11Device1>
" instead of "ID3D11Device1*
". So my question is do you HAVE to use "ComPtr" in a "ref class" or can you use a "native pointer" instead??
Right now i'm using a native pointer in a ref class as my c++ files are also used to compile Managed C++ as well. But sometimes I get odd behavior in WinRT and think it might have something to do with ComPtr.