You are here: How does databse driver manager know the application is "Unicode aware" ? « MsSQL Server « IT news, forums, messages
How does databse driver manager know the application is "Unicode aware" ?

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)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация