Click here to Skip to main content
       

COM

 
GeneralRe: How to get the path PinmvpRichard MacCutchan27-Feb-13 22:46 
GeneralRe: How to get the path Pinmembersarfaraznawaz27-Feb-13 23:27 
GeneralRe: How to get the path PinmvpRichard MacCutchan27-Feb-13 23:28 
QuestionWorkBooks::OpenText file not loading PinmemberForNow12-Feb-13 10:38 
AnswerRe: WorkBooks::OpenText file not loading PinmvpRichard MacCutchan27-Feb-13 22:09 
GeneralRe: WorkBooks::OpenText file not loading PinmemberForNow28-Feb-13 8:07 
GeneralRe: WorkBooks::OpenText file not loading PinmvpRichard MacCutchan28-Feb-13 21:47 
GeneralRe: WorkBooks::OpenText file not loading PinmemberForNow1-Mar-13 8:20 
GeneralRe: WorkBooks::OpenText file not loading PinmvpRichard MacCutchan1-Mar-13 23:46 
QuestionDISP_E_EXCEPTION & excepinfo->scode 800A03EC from WorkBooks::OpenText PinmemberForNow6-Feb-13 12:26 
AnswerRe: DISP_E_EXCEPTION & excepinfo->scode 800A03EC from WorkBooks::OpenText PinmvpRichard MacCutchan6-Feb-13 22:34 
QuestionWorkBooks::OpenText failure PinmemberForNow5-Feb-13 11:25 
AnswerRe: WorkBooks::OpenText failure PinmemberGarth J Lancaster5-Feb-13 14:47 
QuestionDISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow29-Jan-13 14:04 
Hi,
 
I getting the above return code the following is my code sequence
 
CLSID clsid;         // initialization
	HRESULT hr = CLSIDFromProgID(L"Excel.Application",&clsid)
 
IDispatch *pWApp;
 

	hr = CoCreateInstance(clsid, NULL, CLSCTX_LOCAL_SERVER, 
                          IID_IDispatch, (void **)&pWApp);
 
   LPOLESTR ptName = (LPOLESTR) _T("OpenText");
DISPID dispID;
 hr =  pWApp->GetIDsOfNames(IID_NULL, &ptName, 1 , LOCALE_USER_DEFAULT,&dispID);
 
I am using VIsual C++ 6.0 excel 2003
 
Thanks
AnswerRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan29-Jan-13 21:16 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow30-Jan-13 8:36 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan30-Jan-13 9:35 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan30-Jan-13 9:39 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow30-Jan-13 9:58 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan30-Jan-13 10:10 
GeneralFound the Answer PLease Read PinmemberForNow30-Jan-13 10:34 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow30-Jan-13 14:51 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan30-Jan-13 21:51 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow1-Feb-13 9:25 
QuestionAppCrash Issue related to COM? PinmemberTony Tullemans24-Jan-13 13:17 
AnswerRe: AppCrash Issue related to COM? PinmvpRichard MacCutchan24-Jan-13 23:01 
GeneralRe: AppCrash Issue related to COM? PinmemberTony Tullemans28-Jan-13 11:28 
GeneralRe: AppCrash Issue related to COM? PinmvpRichard MacCutchan28-Jan-13 22:32 
AnswerRe: AppCrash Issue related to COM? PinmemberStephen Hewitt27-Jan-13 14:13 
Questionuse webbrowser to visit many webs without a break cause crash PinmemberBianChengNan21-Jan-13 14:52 
QuestionHow to register a com exe without admin rights? PinmemberAdarapu Harikrishna11-Jan-13 9:37 
AnswerRe: How to register a com exe without admin rights? PinmvpRichard MacCutchan12-Jan-13 0:10 
GeneralRe: How to register a com exe without admin rights? PinmemberMarius Bancila23-Jan-13 10:37 
GeneralRe: How to register a com exe without admin rights? PinmvpRichard MacCutchan23-Jan-13 22:48 
GeneralRe: How to register a com exe without admin rights? PinmemberMarius Bancila24-Jan-13 3:07 
QuestionWhat type of permissions are needed to resolve Acccess denied for GetDsOfNames to registry entry HKCR\Typelib PinmemberForNow7-Jan-13 11:41 
AnswerRe: What type of permissions are needed to resolve Acccess denied for GetDsOfNames to registry entry HKCR\Typelib PinmvpRichard MacCutchan7-Jan-13 22:20 
QuestionCreating .OCX file hangs PinmemberForNow1-Jan-13 17:44 
QuestionGetIDsOfNames returning -1 PinmemberForNow27-Dec-12 12:28 
AnswerRe: GetIDsOfNames returning -1 PinmvpRichard MacCutchan27-Dec-12 21:48 
QuestionMixing native OLE with MFC interface/wrappers PinmemberForNow26-Dec-12 15:30 
Question_WorkSheet::Paste usage PinmemberForNow19-Dec-12 13:01 
AnswerRe: _WorkSheet::Paste usage PinmemberJochen Arndt19-Dec-12 21:45 
GeneralRe: _WorkSheet::Paste usage PinmemberForNow20-Dec-12 5:21 
GeneralRe: _WorkSheet::Paste usage PinmemberJochen Arndt20-Dec-12 21:04 
QuestionMSDN documentation for MFC OLE wrapper method/prperties PinmemberForNow17-Dec-12 13:10 
AnswerRe: MSDN documentation for MFC OLE wrapper method/prperties PinmvpRichard MacCutchan17-Dec-12 22:19 
GeneralRe: MSDN documentation for MFC OLE wrapper method/prperties PinmemberForNow18-Dec-12 2:28 
GeneralRe: MSDN documentation for MFC OLE wrapper method/prperties PinmvpRichard MacCutchan18-Dec-12 2:54 
Questionabout screen reader how to read PDF file PinmemberBianChengNan16-Dec-12 16:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 27 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid