]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/chartype.h
use CLSCTX_ALL instead of CLSCTX_LOCAL_SERVER in CreateInstance() (#9868)
[wxWidgets.git] / interface / wx / chartype.h
CommitLineData
23324ae1 1/////////////////////////////////////////////////////////////////////////////
7c913512 2// Name: chartype.h
e54c96f1 3// Purpose: interface of global functions
7c913512
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
3950d49c 9/** @ingroup group_funcmacro_string */
7c913512 10//@{
3950d49c 11
23324ae1 12/**
3950d49c
BP
13 This macro can be used with character and string literals (in other words,
14 @c 'x' or @c "foo") to automatically convert them to Unicode in Unicode
15 builds of wxWidgets. This macro is simply returns the value passed to it
16 without changes in ASCII build. In fact, its definition is:
23324ae1 17
3950d49c
BP
18@code
19#ifdef UNICODE
20# define wxT(x) L ## x
21#else // !Unicode
22# define wxT(x) x
23#endif
24@endcode
25
26 @see @ref overview_unicode
27
28 @header{wx/chartype.h}
29*/
30#define wxT(string)
23324ae1 31
23324ae1
FM
32/**
33 wxS is macro which can be used with character and string literals to either
34 convert them to wide characters or strings in @c wchar_t-based Unicode
35 builds or keep them unchanged in UTF-8 builds. The use of this macro is
3950d49c
BP
36 optional as the translation will always be done at run-time even if there
37 is a mismatch between the kind of the literal used and string or character
38 type used in the current build, but using it can be beneficial in
39 performance-sensitive code to do the conversion at compile-time instead.
7c913512 40
e54c96f1 41 @see wxT()
3950d49c
BP
42
43 @header{wx/chartype.h}
23324ae1 44*/
3950d49c
BP
45#define wxS(string)
46
47/**
48 This macro is exactly the same as wxT() and is defined in wxWidgets simply
49 because it may be more intuitive for Windows programmers as the standard
50 Win32 headers also define it (as well as yet another name for the same
51 macro which is _TEXT()).
52
53 Don't confuse this macro with _()!
23324ae1 54
3950d49c
BP
55 @header{wx/chartype.h}
56*/
57#define _T(string)
58
59//@}