what's wrong?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top