|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Mark A. Gregory (mgregory
GT.COM.AU)Date: Thu May 09 2002 - 08:39:42 CDT
I'm having problems with the Project 2002 type library and I was
thinking that I Gotta be doing something wrong.
When I do this
//get application's _MSProject DispInterface
m_pApplication.GetPropertyByName(L"_MSProject", &cvOut);
CComQIPtr<MSProject::_MSProject> spMSProject(cvOut.pdispVal);
//CComDispatchDriver spMSProject(cvOut.pdispVal);
spMSProject->
I do not get a list of the methods appearing in VS7, due to there being
no dual interface defined?
m_pApplication.GetPropertyByName(L"Windows", &cvOut);
CComQIPtr<MSProject::Windows> spWindows(cvOut.pdispVal);
And again with this....
Yet if I do this
HR(m_pApplication.GetPropertyByName(L"CommandBars", &cvOut));
CComQIPtr<Office::_CommandBars> spCmdBars(cvOut.pdispVal);
// find my command bar
spCmdBars->get_Item(CComVariant(wszBar), &m_spOurCmdBar); Etc.
I can add command bars and so on. I get a list of the methods popping
up when I type this
spCmdBars->
The Office 10 type library is so much better than the Project 10 type
library
Is there any way to get access programmatically to the methods on the
dispinterfaces In Project 10 from a c++ program? Only some of the
interfaces in the Project 2002 Type library are dual (I think this means
that there are dispinterfaces and Interfaces)
Thank you
Mark
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]