|
Posted by qhe on 03/07/06 07:22
Hi, all:
My VC6 MFC application is recognized as a Unicode application by the driver
manager, so when I read nchar fileds in MS SQL Server database, the
SQL_WCHAR does not convert to SQL_CHAR, and the application ASSERT failure
at CRecordset::GetDefaultFieldType function.
But I don't have "_UNICODE" defined, and have no "W" suffix functions
called, and my old version program compiled on Feb 2004 just work fine.
(source code lost unfortunatally)
I read docs like:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcfunction_mapping_in_the_driver_manager.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcunicode_drivers.asp
but can't find the right answer.
Could any one tell me how dow the driver manager judge the application to be
Unicode aware?
Best Regards,
Qiang He
(remove the "nospam." to email me, thanks)
[Back to original message]
|