RE: Passing a binary(16) parameter to a stored procedure in C++
From: Jim Cutler (JimCutler_at_discussions.microsoft.com)
Date: 08/23/04
- Previous message: Jim Cutler: "Multi-threading with ADO"
- In reply to: Jim Cutler: "Passing a binary(16) parameter to a stored procedure in C++"
- Next in thread: Jim Cutler: "RE: Passing a binary(16) parameter to a stored procedure in C++"
- Reply: Jim Cutler: "RE: Passing a binary(16) parameter to a stored procedure in C++"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Aug 2004 12:31:02 -0700
Hi all,
I'm sorry, I forgot to mention that I am using C++ 6.0 with smart pointers.
"Jim Cutler" wrote:
> How do I do this? This code will pass in a character string:
> pPrm = new _ParameterPtr("ADODB.Parameter");
> pPrm->Type = adVarChar;
> pPrm->Direction = adParamInput;
> pPrm->Size = dwLen;
> pPrm->Value = _variant_t((PCHAR)pcValue);
> mpCmd->Parameters->Append(pPrm);
> I can set pPrm->Type to adVarBinary; but what do I set pPrm->Value to?
> _variant_t((PBYTE) pbValue) doesn't work.
>
> Thanks,
> Jim
>
>
- Previous message: Jim Cutler: "Multi-threading with ADO"
- In reply to: Jim Cutler: "Passing a binary(16) parameter to a stored procedure in C++"
- Next in thread: Jim Cutler: "RE: Passing a binary(16) parameter to a stored procedure in C++"
- Reply: Jim Cutler: "RE: Passing a binary(16) parameter to a stored procedure in C++"
- Messages sorted by: [ date ] [ thread ]