Re: wchar_t* variable

From: Hanna-Barbera (NULL_at_excite.com)
Date: 02/19/05


Date: Sat, 19 Feb 2005 11:57:28 -0500

I think it let's compiler know to store the text as wide char 16bits each
instead of the usual 8 bit per char.
This is for unicode. There is also a _T"" operator which is conditional on
if you compile your project with unicode or not.

"Vinter" <Vinter@malloc.com> wrote in message
news:eYMRlnlFFHA.2736@TK2MSFTNGP09.phx.gbl...
> Hi,
> In some book I see a function which expects a parameter in the form of
> wchar_t* . In another place the code calls this function with the
parameter
> L"predetermind string".
>
> I have 2 questions:
> 1. What is this operator "L" - does it convert the string to wchar_t*. I
> couldn't find any help in the MSDN.
>
> 2. I need to call the same function but with dynamic data , say some
CString
> variable.
> Can someone direct me with code how to do it?
>
> Thanks in advance
>
> Vinter
>
>



Relevant Pages

  • Re: CFile::Read problem ???
    ... As far as the C compiler is concerned, ... you can pretty much always assign a char ... as ASCII and wchar_t as Unicode. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Unicode strings vs. traditional C strings
    ... Compiler does what you'd expect it to. ... internally with a char *, ... It's really only the Win32 API that is primarily UNICODE. ... T or F - A function such as strchrfor ANSI strings does not exist but I ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: CFile::Read problem ???
    ... As far as the C compiler is concerned, ... you can pretty much always assign a char ... > as ASCII and wchar_t as Unicode. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Portability: Harmony between PC and microcontroller
    ... This will be char if the range ... of the value fits in, it will be int, long or long long otherwise. ... If you use char to store numbers on a PC, ... that your compiler produced from it. ...
    (comp.lang.c)
  • Re: strings in C++
    ... store ASCII, aka narrow, characters (as opposed to wide or Unicode ... Instead, if you want to store text in Unicode UTF-8, you can use char. ...
    (microsoft.public.vc.language)

Loading