Re: AfxMessageBox?



Why didn't they do this?
Because "Hello" and L"Hello" are both standard C/C++.
Making "Hello" to mean Unicode string means the compiler
is not standard compliant.

The MS compilers moved towards being more standard compliant lately
(and is a good thing).

Plus there are situations when one might want to use narrow strings
in an Unicode application. If "Hello" means Unicode, then what?


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.



Relevant Pages

  • Re: Writing UTF-8 string to UNICODE file
    ... > I am having no fun at all trying to write utf-8 strings to a unicode file. ... it were a distinct encoding. ... is a byte stream and unicode has nothing to do with bytes. ... If you write a unicode string to something that wants a byte stream, ...
    (comp.lang.python)
  • Re: Sorting a list of Unicode strings?
    ... Unicode strings, and I want to sort these alphabetically, then it ... places those that begin with unicode characters at the bottom. ... different sorting criteria; indeed, in some countries, different sorting ... The .translate method of Unicode string objects may ...
    (comp.lang.python)
  • Best ways of managing text encodings in source/regexes?
    ... those strings contain only ASCII or ISO-8859-1 chars? ... standard library modules such as re don't declare an encoding, ... then read the source file into a unicode string with codecs.read, ...
    (comp.lang.python)
  • Re: Convert DOS Cyrillic text to Unicode
    ... > You would use Encoding.GetEncoding to get the DOS Cyrillic Encoding ... > Encoding.GetString to convert to a Unicode String. ... > Dim bytesAs Byte ...
    (microsoft.public.dotnet.languages.vb)
  • Re: WTF? Printing unicode strings
    ... 'ascii' codec can't encode character u'\xff' in ... unicode string. ... In order to convert unicode strings to byte strings without an ... explicit .encode() method call, Python uses the default encoding which is ...
    (comp.lang.python)