Reputation: 3
Does that mean i'm writting 64 bit code for x64 OS?
Upvotes: 0
Views: 760
Reputation: 15289
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.
Upvotes: 4
Reputation: 163247
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.
Upvotes: 4