Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Problem with SQLGetData in VC++/MFC

klic2rohitklic2rohit Member Posts: 1
Hi All,

I am building desktop appln. in VC++ 6/MFC with Oracle DB connection.

Please see the below API which works fine on windows XP but displays some garbage value(junk chars.) when used on windows 2000, 2003 server.

When [b]SQL_BINARY [/b]datatype is changed to [b]SQL_CHAR [/b]it is displaying correct values but the processing time of getting the data is increasing significantly(which is not avoidable).

[color=Blue] rc = SQLGetData(hStatement,

1,

SQL_BINARY,

vl_buf,

32768,

&vl_dwActualLength);[/color]


Can you please suggest on the which parameter should used or any other alternative api/method to do the same thing ?



Rohit
Sign In or Register to comment.