Hi ,
Have a Visual C++ app that use odbc to access sql server database.
Doing a select to get value of binary field and bind a char to that
field as follows , field in database in binary(16)
char lpResourceID[32+1];
rc = SQLBindCol(hstmt, 1, SQL_C_CHAR, &lpResourceID,
RESOURCE_ID_LEN_PLUS_NULL , &nLen1);
and this works fine , however trying to move codebase to UNICODE an
tested the following
WCHAR lpResourceID[32+1];
rc = SQLBindCol(hstmt, 1, SQL_W_CHAR, &lpResourceID,
RESOURCE_ID_LEN_PLUS_NULL , &nLen1);
but only returns 1/2 the data .
Any ideas , thoughts this would work fine , nit sure why loosing data
All ideas welcome.
JOhn