Click here to Skip to main content
   

COM

 
AnswerRe: WorkBooks::OpenText file not loading PinmvpRichard MacCutchan27-Feb-13 23:09 
GeneralRe: WorkBooks::OpenText file not loading PinmemberForNow28-Feb-13 9:07 
GeneralRe: WorkBooks::OpenText file not loading PinmvpRichard MacCutchan28-Feb-13 22:47 
GeneralRe: WorkBooks::OpenText file not loading PinmemberForNow1-Mar-13 9:20 
GeneralRe: WorkBooks::OpenText file not loading PinmvpRichard MacCutchan2-Mar-13 0:46 
QuestionDISP_E_EXCEPTION & excepinfo->scode 800A03EC from WorkBooks::OpenText PinmemberForNow6-Feb-13 13:26 
AnswerRe: DISP_E_EXCEPTION & excepinfo->scode 800A03EC from WorkBooks::OpenText PinmvpRichard MacCutchan6-Feb-13 23:34 
QuestionWorkBooks::OpenText failure PinmemberForNow5-Feb-13 12: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 PinmemberGarth J Lancaster5-Feb-13 15:47 
QuestionDISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow29-Jan-13 15:04 
AnswerRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan29-Jan-13 22:16 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow30-Jan-13 9:36 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan30-Jan-13 10:35 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan30-Jan-13 10:39 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow30-Jan-13 10:58 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan30-Jan-13 11:10 
GeneralFound the Answer PLease Read PinmemberForNow30-Jan-13 11:34 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow30-Jan-13 15:51 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmvpRichard MacCutchan30-Jan-13 22:51 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames PinmemberForNow1-Feb-13 10:25 
QuestionAppCrash Issue related to COM? PinmemberTony Tullemans24-Jan-13 14:17 
AnswerRe: AppCrash Issue related to COM? PinmvpRichard MacCutchan25-Jan-13 0:01 
GeneralRe: AppCrash Issue related to COM? PinmemberTony Tullemans28-Jan-13 12:28 
GeneralRe: AppCrash Issue related to COM? PinmvpRichard MacCutchan28-Jan-13 23:32 
AnswerRe: AppCrash Issue related to COM? PinmemberStephen Hewitt27-Jan-13 15: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
Web04 | 2.8.150414.1 | Last Updated 17 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid