How to put array Value in C++
From: Tim (anonymous_at_discussions.microsoft.com)
Date: 05/23/04
- Next message: Jerry Pisk: "Re: Can I use the ADO to get the server' time"
- Previous message: Carl Prothman [MVP]: "Re: Can I use the ADO to get the server' time"
- Next in thread: Jerry Pisk: "Re: How to put array Value in C++"
- Reply: Jerry Pisk: "Re: How to put array Value in C++"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 23 May 2004 00:31:02 -0700
SAFEARRAY *psa;
How to put an array value into recordset Value property? What's wrong with this code?
LPSTR HUGEP *psb;
VARIANT v;
VariantInit(&v);
psa=SafeArrayCreateVector(VT_UI1,0,400);
SafeArrayAccessData(psa,(void HUGEP**)&psb);
memcpy((LPSTR)psb,fv,400);
v.vt=VT_ARRAY|VT_UI1;
v.parray=psa;
pRS->Fields->GetItem("DATA")->put_Value(v);
also tried
pRS->Fields->GetItem("DATA")->appendChunk(v);
Both failed.
Thanks.
- Next message: Jerry Pisk: "Re: Can I use the ADO to get the server' time"
- Previous message: Carl Prothman [MVP]: "Re: Can I use the ADO to get the server' time"
- Next in thread: Jerry Pisk: "Re: How to put array Value in C++"
- Reply: Jerry Pisk: "Re: How to put array Value in C++"
- Messages sorted by: [ date ] [ thread ]