Click here to Skip to main content
11,706,142 members (49,212 online)
   

COM

 
AnswerRe: WorkBooks::OpenText file not loading Pin
Richard MacCutchan27-Feb-13 22:09
mvpRichard MacCutchan27-Feb-13 22:09 
GeneralRe: WorkBooks::OpenText file not loading Pin
ForNow28-Feb-13 8:07
memberForNow28-Feb-13 8:07 
GeneralRe: WorkBooks::OpenText file not loading Pin
Richard MacCutchan28-Feb-13 21:47
mvpRichard MacCutchan28-Feb-13 21:47 
GeneralRe: WorkBooks::OpenText file not loading Pin
ForNow1-Mar-13 8:20
memberForNow1-Mar-13 8:20 
GeneralRe: WorkBooks::OpenText file not loading Pin
Richard MacCutchan1-Mar-13 23:46
mvpRichard MacCutchan1-Mar-13 23:46 
QuestionDISP_E_EXCEPTION & excepinfo->scode 800A03EC from WorkBooks::OpenText Pin
ForNow6-Feb-13 12:26
memberForNow6-Feb-13 12:26 
AnswerRe: DISP_E_EXCEPTION & excepinfo->scode 800A03EC from WorkBooks::OpenText Pin
Richard MacCutchan6-Feb-13 22:34
mvpRichard MacCutchan6-Feb-13 22:34 
QuestionWorkBooks::OpenText failure Pin
ForNow5-Feb-13 11:25
memberForNow5-Feb-13 11:25 
Hi,

I am get an assert error when calling WorkBooks::OpenText

I traced it down the code to dispatch->invoke and the return code from that

was 0x80020008 DISP_E_BADVARTYPE One of the arguments in rgvarg is not a valid variant type.

I had a VARIANT for all my arguments besides the 5th which is a long

My question is then the following almost all the paramters are optional

besdides the first which is the filename

I assumed optional was a NULL so.

I coded the following for NULL

VARIANT varfalse.

varfalse.intVal = 0;
varfalse.vt = VT_INT;

is this correct ?

thanks

.
AnswerRe: WorkBooks::OpenText failure Pin
Garth J Lancaster5-Feb-13 14:47
memberGarth J Lancaster5-Feb-13 14:47 
QuestionDISP_E_UNKNOWNNAME from GetIDsOfNames Pin
ForNow29-Jan-13 14:04
memberForNow29-Jan-13 14:04 
AnswerRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
Richard MacCutchan29-Jan-13 21:16
mvpRichard MacCutchan29-Jan-13 21:16 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
ForNow30-Jan-13 8:36
memberForNow30-Jan-13 8:36 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
Richard MacCutchan30-Jan-13 9:35
mvpRichard MacCutchan30-Jan-13 9:35 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
Richard MacCutchan30-Jan-13 9:39
mvpRichard MacCutchan30-Jan-13 9:39 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
ForNow30-Jan-13 9:58
memberForNow30-Jan-13 9:58 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
Richard MacCutchan30-Jan-13 10:10
mvpRichard MacCutchan30-Jan-13 10:10 
GeneralFound the Answer PLease Read Pin
ForNow30-Jan-13 10:34
memberForNow30-Jan-13 10:34 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
ForNow30-Jan-13 14:51
memberForNow30-Jan-13 14:51 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
Richard MacCutchan30-Jan-13 21:51
mvpRichard MacCutchan30-Jan-13 21:51 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
ForNow1-Feb-13 9:25
memberForNow1-Feb-13 9:25 
QuestionAppCrash Issue related to COM? Pin
Tony Tullemans24-Jan-13 13:17
memberTony Tullemans24-Jan-13 13:17 
AnswerRe: AppCrash Issue related to COM? Pin
Richard MacCutchan24-Jan-13 23:01
mvpRichard MacCutchan24-Jan-13 23:01 
GeneralRe: AppCrash Issue related to COM? Pin
Tony Tullemans28-Jan-13 11:28
memberTony Tullemans28-Jan-13 11:28 
GeneralRe: AppCrash Issue related to COM? Pin
Richard MacCutchan28-Jan-13 22:32
mvpRichard MacCutchan28-Jan-13 22:32 
AnswerRe: AppCrash Issue related to COM? Pin
Stephen Hewitt27-Jan-13 14:13
memberStephen Hewitt27-Jan-13 14:13 

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
Web03 | 2.8.150819.1 | Last Updated 14 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid