Defaut Character Set 'Unicode' in Visual Studio 2005
Does that mean i'm writting 64 bit 开发者_C百科code for x64 OS?
No. It means that TCHAR
is mapped to wchar_t
and all functions that take TCHAR
or LPTSTR
arguments are mapped to their Unicode variants. For example CreateWindow
is mapped to CreateWindowW
and not to CreateWindowA
.
And this is completely unrelated to CPU architecture. You can write Unicode and Multibyte programs for 32 or 64 bit platforms.
If you want to build for x64, you need to go to add another platform in the Configuration Manager. Here's the how-to from Microsoft.
No. Unicode is a character encoding, not a measure of CPU bits. You can write 64-bit code without using Unicode, and you can write 32-bit code while using Unicode. Neither requires the other. You can use both together if you want. You can also use neither.
精彩评论