为什么 vc ado 调用存储过程 adBigInt 数据类型出错? 每当 〉2^32时。
Hi, i was wondering may be somebody can help me with my a little problem which is:
... objMyParam = ovjCommand->CreateParameter( ..,, adParamInput, adBigInt, ); ....
objMyParam->Value = __int64(myId); // tagVARIANT.vt = 20 (VT_I8)
NOW every time when i'm trying to set __in64 value as the parameter value i receive
an error 'Bad variable type', but the very same code works in the case
objMyParam->Value = long(myId); // or any other numeric date type
so my question is there any problem with using VT_I8 / __int64 as a parameter value,
especially on Win2000 .
Thanks, Konstantin