Click here to Skip to main content
15,911,132 members

Comments by Boffin_Boy (Top 1 by date)

Boffin_Boy 24-Jan-12 16:39pm View    
Deleted
Reason for my vote of 4.
The article lacks clarity and accuracy.
There are Windows data types. Their complete list is here: http://msdn.microsoft.com/en-us/library/aa383751(v=vs.85).aspx. Data types TCHAR, LPTSTR, LPCTSTR intended for use in Win32 API functions (GetSysytemInfo, GetVersionEx, etc.). TCHAR is a generic data type. After compiling it is converted into a char or wchar type.
To use TCHAR you need a few things.
The program begins with the line #include <windows.h>
If you plan to use the generic string functions (_tprintf, _tcscat, _tcslen et al.), add #include <tchar.h> after the previous one. Main function have to be _tmain().
Then if you want to get a program with Unicode characters put #define UNICODE at the beginning (before the #include <windows.h>), if with ANSI symbols – put nothing. That’s all.