EDN Admin
Well-known member
Hi,<br/>Im using ActiveX ADO and targeting Windows 7 in both 32 and 64 bit versions. The following code fails in 64 bit only. It works in 32 bit.<br/><span style="font-size:x-small <span style="font-size:x-small <span style="font-size:x-small
_ParameterPtr pPar = pCmd->CreateParameter(_bstr_t(<span style="color:#a31515;font-size:x-small <span style="color:#a31515;font-size:x-small "SomeValue"<span style="font-size:x-small ), adVarWChar, adParamOutput, 50, vtMissing);
<span style="font-size:x-small
pCmd->Parameters->Append(pPar); : This line of code fails with "Unhandled exception .." although i do enclose the call in try/catch. The <span style="font-size:x-small _com_error however only says: "Unknown error .."<span style="font-size:x-small
I have tried several things:<br/>Supplying NULL in the CreateParameter call instead of vtMissing<br/>Supplying a local <span style="font-size:x-small _variant_t vtMissingYours(DISP_E_PARAMNOTFOUND, VT_ERROR) in the CreateParameter call instead of vtMissing<br/>Using adParamInputOutput as ParameterDirectionEnum<br/><br/>Is this a bug?
View the full article
_ParameterPtr pPar = pCmd->CreateParameter(_bstr_t(<span style="color:#a31515;font-size:x-small <span style="color:#a31515;font-size:x-small "SomeValue"<span style="font-size:x-small ), adVarWChar, adParamOutput, 50, vtMissing);
<span style="font-size:x-small
pCmd->Parameters->Append(pPar); : This line of code fails with "Unhandled exception .." although i do enclose the call in try/catch. The <span style="font-size:x-small _com_error however only says: "Unknown error .."<span style="font-size:x-small
I have tried several things:<br/>Supplying NULL in the CreateParameter call instead of vtMissing<br/>Supplying a local <span style="font-size:x-small _variant_t vtMissingYours(DISP_E_PARAMNOTFOUND, VT_ERROR) in the CreateParameter call instead of vtMissing<br/>Using adParamInputOutput as ParameterDirectionEnum<br/><br/>Is this a bug?
View the full article