When using VC and ADO technology to read and write ntext fields of Database SQL, the written content will be garbled.
Cause: encoding problem
By default, VC does not support Unicode. How to make Vc support Unicode.
The procedure is as follows:
Select "project | Settings" in the main menu to open the Project Settings dialog box => then select the "C/C ++" label => Add Unicode or _ Unicode preprocessing macro commands in the "Preprocessor definitions" edit box.
This will cause lnk2001 errors.
Solution:
Select "project | Settings" in the main menu to open the Project Settings dialog box => then select link ---> select output in category and writeWwinmaincrtstartup
For details, see msdn98 "Unicode programming summary"
Visual c ++ documentation ------ using Visual C ++ -------------- visual c ++ programmer's guide -------
Adding program functionalty ---------------- details ------------------- interantional proramming topics
---------- Support for Unicode ------- Unicode programming Summary
Unicode programming related connections: http://www.vckbase.com/document/viewdoc? Id = 642