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
varfalse.intVal = 0;
varfalse.vt = VT_INT;
is this correct ?