需要有关TCHAR的帮助 [英] Need help on TCHAR

查看:76
本文介绍了需要有关TCHAR的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

在Windows中,根据

将TCHAR转换为wchar或char是否定义了UNICODE。根据操作系统给编译器手柄编号UNICODE(定义

或不定义)?


非常感谢

Hi, all.
IN Windows, TCHAR is translated to be wchar or char according to
whether UNICODE is defined. Dose the complier handle the UNICODE(define
or not define) according to the OS ?

Many thanks

推荐答案

gshy2 ... @ gmail.com写道:
gshy2...@gmail.com wrote:
大家好。
在Windows中,TCHAR被翻译为wchar或根据
是否定义了UNICODE。根据操作系统给编译器处理UNICODE(定义
或未定义)?
Hi, all.
IN Windows, TCHAR is translated to be wchar or char according to
whether UNICODE is defined. Dose the complier handle the UNICODE(define
or not define) according to the OS ?




这个新闻组处理标准C ++,而不是编译器特定的功能。 br />
请参阅

新闻组建议的target =_ blank> http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
。 />
Jonathan



This newsgroup deals with standard C++, not compiler specific features.
Please see
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9 for
newsgroup suggestions.
Jonathan


gshy2014写道:
gshy2014 wrote:
在Windows中,TCHAR被翻译为wchar或根据
是否定义了UNICODE。根据操作系统给编译器处理UNICODE(定义
或不定义)?
IN Windows, TCHAR is translated to be wchar or char according to
whether UNICODE is defined. Dose the complier handle the UNICODE(define
or not define) according to the OS ?




宏UNICODE(和_UNICODE)是编译时常量。这意味着他们在编译时设置了
。没有用C ++编写的程序可以在运行时更改#define

或/ D常量。使用和不使用/ DUNICODE进行编译将给出两个不同的可执行文件,这些可执行文件在

相同的机器上运行时会有不同的行为。


警告:C ++是此新闻组的主题。不是UNICODE,或Win32,或Win98和WinNT或VC ++编译器之间的

差异。你必须在适当的

新闻组中单独询问

关于这些事情的完整问题,以获得最佳答案。您当前的问题是关于主题的(通过

意外),但您的下一个问题(编译器和头文件如何响应UNICODE标志的
)将是偏离主题的在这里,所以你应该用谷歌来找
找到最好的新闻组。


-

Phlip
http://c2.com/cgi/wiki?ZeekLand < - NOT一个博客!!!



The macro UNICODE (and _UNICODE) are compile time constants. That means they
are set at compile time. No program written in C++ can ever change a #define
or /D constant at run-time. Compiling with and without /DUNICODE will give
you two different executables that will behave differently when run on the
same machine.

Warning: C++ is the topic of this newsgroup. Not UNICODE, or Win32, or the
differences between Win98 and WinNT, or the VC++ compiler. You must ask
complete questions about these things, individually, on their appropriate
newsgroups, to get the best answers. Your current question is on-topic (by
accident), but your next question (how the compiler and header files respond
to the UNICODE flag) will be off-topic here, so you should use Google to
find the best newsgroup.

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!


Jonathan Mcdougall写道:
Jonathan Mcdougall wrote:
在Windows中,TCHAR被翻译根据
是否为UNCODE定义为wchar或char。根据操作系统给编译器处理UNICODE(定义
或不定义)?
IN Windows, TCHAR is translated to be wchar or char according to
whether UNICODE is defined. Dose the complier handle the UNICODE(define
or not define) according to the OS ?



这个新闻组处理标准C ++



This newsgroup deals with standard C++



再次阅读问题。 ;-)


-

Phlip
http://c2.com/cgi/wiki?ZeekLand < - 不是博客!!!



Read the question again. ;-)

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!


这篇关于需要有关TCHAR的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆