Off the top of my head, can you use
System::Object *pObject =
System::Runtime::InteropServices::Marshal::GetObje ctForIUnknown(spDoc.GetInt
erfacePtr())
and then cast that to your managed interface pointer?
I haven't tested it but it might get you started.
"Jim G" <na**@escuber.com> wrote in message
news:1c****************************@phx.gbl...
How do you set an interop managed class instance to an
actual com created instance.
why doesn't this work????
CComPtr<IHTMLDocument2> spDoc;
mshtml::IHTMLDocument2* doc=(mshtml::IHTMLDocument2*)
spDoc.p;
Thank you for your help