Re: AfxMessageBox?
- From: "Mihai N." <nmihai_year_2000@xxxxxxxxx>
- Date: Fri, 24 Nov 2006 11:13:00 -0800
I disagree. MS already has a compiler option to "treat chars as unsigned",Not the same case. The standard does not specify if the chars are signed or
this new option "treat chars as wide" would be the same situation.
not.
And the standards committees could make this a standard also.Ok then, MS is waiting for this to happen.
I suggest something like the ATL libraries have used XCHAR and YCHAR.This means that you have to be aware and write your code with Y,
These
change meaning depending on whether UNICODE is defined. XCHAR is like
TCHAR... YCHAR is the opposite of XCHAR, at least I think that's how it
works.
So if UNICODE is defined, "Hello" is Unicode, and Y"Hello" is ANSI. If
UNICODE is not defined, "Hello" is ANSI and Y"Hello" is Unicode. Both of
these are easier to type than _T("").
instead of _T. Back to square 1.
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.
- Follow-Ups:
- Re: AfxMessageBox?
- From: David Ching
- Re: AfxMessageBox?
- References:
- AfxMessageBox?
- From: pvdg42
- Re: AfxMessageBox?
- From: Mihai N.
- Re: AfxMessageBox?
- From: pvdg42
- Re: AfxMessageBox?
- From: Mark Randall
- Re: AfxMessageBox?
- From: David Ching
- Re: AfxMessageBox?
- From: Tom Serface
- Re: AfxMessageBox?
- From: Mihai N.
- Re: AfxMessageBox?
- From: Tom Serface
- Re: AfxMessageBox?
- From: Mihai N.
- Re: AfxMessageBox?
- From: David Ching
- Re: AfxMessageBox?
- From: Mihai N.
- Re: AfxMessageBox?
- From: David Ching
- AfxMessageBox?
- Prev by Date: MFC Strings English -> German ?
- Next by Date: Re: Send Message(string) c# exe to vc++ exe(unmanaged) using WindowsSendMessage
- Previous by thread: Re: AfxMessageBox?
- Next by thread: Re: AfxMessageBox?
- Index(es):
Relevant Pages
|