For perfoming such operation I used Method QueryInterface:
Where myApp is _ApplicationPtrCode:m_pDocDisp->QueryInterface(__uuidof( Word::_Application), (void **)&myApp);
m_pDocDisp is IDispatch, got from iterating the ROT (example)
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 2 of 2
Threaded View
|
Click Here to Expand Forum to Full Width |