Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 2:50
professional#realJSOP7-May-01 2:50 
GeneralRe: 'for' statement can't work! Pin
hearties9-May-01 5:55
hearties9-May-01 5:55 
GeneralRe: 'for' statement can't work! Pin
Wojciech Zaremba7-May-01 2:42
Wojciech Zaremba7-May-01 2:42 
Question[q] How to control the other program's scrollbar? Pin
linugee6-May-01 22:44
linugee6-May-01 22:44 
AnswerRe: [q] How to control the other program's scrollbar? Pin
Christian Graus6-May-01 23:49
protectorChristian Graus6-May-01 23:49 
GeneralRe: [q] How to control the other program's scrollbar? Pin
Hadi Rezaee7-May-01 2:52
Hadi Rezaee7-May-01 2:52 
GeneralRe: [q] How to control the other program's scrollbar? Pin
Christian Graus7-May-01 12:38
protectorChristian Graus7-May-01 12:38 
Generalpl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
6-May-01 21:02
suss6-May-01 21:02 
Hello everybody,
Iam a newbie to ATL&ADOs.I am developing an ATL component which is to store some binary data in to a table using ADOs.I have a problem with storing of binary data. I don't know how to pass a parameter along with the SQL query, that's why i am using a sample ADO dll(adosamp) which is there in MSDN samples. I am getting the binary data (which may have null characters in between) thru a ptr to the buffer (char*) from another dll, after that i am using CComVariant to encapsulate that buffer (char*) & passing along with SQL query as a parameter. In the data that i am getting, the second character itself is null char (ASCII 0). I tried asigning the buffer's data (char*) in 2 ways
one is
passing the char* in constructor of CComVariant as CComVariant vt(buff)
and passing it's length as 195. if i do so it's taking the CComVartiant as of type VT_BSTR, the data getting stored is first 2 chars only (terminated with null char).

Second is
i have assigned the char* to "pcVal" field of CComVariant and set type of the CComVariant as VT_BYREF|VT_I1 & passing the length of buffer as 195. when i did so it's giving an error stating that
" Invalid string or length".

The data in CComVariant variable is there till the execute command.

How can i solve this problem & insert binary data in table(Access)?
Also tell me how to pass the buffer along with the SQL query as a parameter?
Thanks in Advance.
My e-mail id kgrajashekar@usa.net
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
l a u r e n6-May-01 21:10
l a u r e n6-May-01 21:10 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
6-May-01 22:59
suss6-May-01 22:59 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
l a u r e n7-May-01 5:40
l a u r e n7-May-01 5:40 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
#realJSOP7-May-01 2:55
professional#realJSOP7-May-01 2:55 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
l a u r e n7-May-01 5:36
l a u r e n7-May-01 5:36 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
#realJSOP7-May-01 6:02
professional#realJSOP7-May-01 6:02 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
Ajit Jadhav7-May-01 7:10
Ajit Jadhav7-May-01 7:10 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
Ajit Jadhav7-May-01 7:26
Ajit Jadhav7-May-01 7:26 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
7-May-01 19:15
suss7-May-01 19:15 
GeneralTrimming spaces in a BSTR value Pin
yamini6-May-01 19:34
yamini6-May-01 19:34 
GeneralFinding coordinates of Focus rectangle Pin
6-May-01 19:33
suss6-May-01 19:33 
GeneralRe: Finding coordinates of Focus rectangle Pin
Christian Graus6-May-01 19:51
protectorChristian Graus6-May-01 19:51 
GeneralRe: Finding coordinates of Focus rectangle Pin
6-May-01 20:03
suss6-May-01 20:03 
GeneralRe: Finding coordinates of Focus rectangle Pin
6-May-01 20:38
suss6-May-01 20:38 
GeneralRe: Finding coordinates of Focus rectangle Pin
Christian Graus6-May-01 20:49
protectorChristian Graus6-May-01 20:49 
GeneralRe: Finding coordinates of Focus rectangle Pin
6-May-01 21:18
suss6-May-01 21:18 
GeneralRe: Finding coordinates of Focus rectangle Pin
#realJSOP7-May-01 1:09
professional#realJSOP7-May-01 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.