M
Meier Rudolf
that's my code... what's wrong? I get the return value -2146823146 when I
call the function PrintOut
// Code (m_pAppWord is of type _Application* -> Pointer to Word, and it's
working -> I can manipulate the toolbars)
VARIANT Background; VariantInit(&Background); Background.vt = VT_I2;
Background.iVal = FALSE;
VARIANT Copies; VariantInit(&Copies); Copies.vt = VT_I4;
Copies.lVal = 1;
VARIANT vEmpty; VariantInit(&vEmpty); vEmpty.vt = VT_ERROR; vEmpty.scode =
DISP_E_PARAMNOTFOUND;
m_pAppWord->PrintOut(&Background, &vEmpty, &vEmpty, &vEmpty, &vEmpty,
&vEmpty, &vEmpty, &Copies, &vEmpty, &vEmpty, &vEmpty, &vEmpty, &vEmpty,
&vEmpty, &vEmpty, &vEmpty, &vEmpty, &vEmpty, &vEmpty);
// that's where I get the error -2146823146.... I don't even know what this
code means
call the function PrintOut
// Code (m_pAppWord is of type _Application* -> Pointer to Word, and it's
working -> I can manipulate the toolbars)
VARIANT Background; VariantInit(&Background); Background.vt = VT_I2;
Background.iVal = FALSE;
VARIANT Copies; VariantInit(&Copies); Copies.vt = VT_I4;
Copies.lVal = 1;
VARIANT vEmpty; VariantInit(&vEmpty); vEmpty.vt = VT_ERROR; vEmpty.scode =
DISP_E_PARAMNOTFOUND;
m_pAppWord->PrintOut(&Background, &vEmpty, &vEmpty, &vEmpty, &vEmpty,
&vEmpty, &vEmpty, &Copies, &vEmpty, &vEmpty, &vEmpty, &vEmpty, &vEmpty,
&vEmpty, &vEmpty, &vEmpty, &vEmpty, &vEmpty, &vEmpty);
// that's where I get the error -2146823146.... I don't even know what this
code means