PDA

View Full Version : #define có underscore (vd _UNICODE) và không có underscore (vd UNICODE) ?



Xmen
06-04-2005, 15:55
tui đang lập trình visual C 6, xin các bác cho hỏi sự khác biệt giữa 2 cách define có unsderscore và không có underscore, xin cảm ơn nhiều.

QuanN
10-04-2005, 02:34
#define UNICODE for the Win32 header files and #define _UNICODE for the C Run-time header files.

The leading underscore indicates deviance from the ANSI C standard. Because the Windows header files are not part of this standard, it is allowable to use UNICODE without the leading underscore.

http://support.microsoft.com/default.aspx?scid=kb;en-us;99359