Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / a simple question

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. a simple question
#4839
Posted by: 2004-07-17 00:09:02
When writing lines like:

-> wxT("A generic string")

What's the importance of specifyng wxT("...")?
Thanks and bye.
Marco Benvenuto
Message2. Re: a simple question
#4842
Posted by: upCASE 2004-07-17 22:52:02
Hi!
Quoting from the docs:
"wxT() is a macro which can be used with character and string literals (in other words, 'x' or "foo") to automatically convert them to Unicode in Unicode build configuration. Please see the Unicode overview for more information.

This macro is simply returns the value passed to it without changes in ASCII build. In fact, its definition is:

#ifdef UNICODE
#define wxT(x) L ## x
#else // !Unicode
#define wxT(x) x
#endif"
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0