Re: Trouble with IADs
- From: "Alf P. Steinbach" <alfps@xxxxxxxx>
- Date: Tue, 18 Mar 2008 11:47:19 +0100
* SvenC:
Hi Alf,
Don't use "bare" string literals with functions that expect
TCHAR's. Wrap literals with _T() macro.
In my humble opinion the "bare" strings are much, much better than
using those macros.
There is absolutely no good reason that I know of to use the _T
macros. They don't provide anything in modern Windows programming,
and I mean exactly zero, with regard to positive things. But there
are many good reasons to avoid them ...
How do you write code that compiles for Unicode as well as Ansi builds
without the _T macro?
What are you good reasons to avoid _T?
To quote myself from the article you responded to here (it's a good to read what you respond to, hint hint):
<q>
If compatibility with Windows 9x is required, consider using Microsoft's Layer for Unicode instead of the insane _T macros.
</q>
Why would you ever want an ANSI build (less efficient, loss of functionality)?
It doesn't make sense at all to me, but perhaps I haven't heard the argument you have in mind.
Cheers, & hth.,
- Alf
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
.
- Follow-Ups:
- Re: Trouble with IADs
- From: SvenC
- Re: Trouble with IADs
- References:
- Trouble with IADs
- From: Jimi
- Re: Trouble with IADs
- From: Alf P. Steinbach
- Re: Trouble with IADs
- From: Alex Blekhman
- Re: Trouble with IADs
- From: Alf P. Steinbach
- Re: Trouble with IADs
- From: SvenC
- Trouble with IADs
- Prev by Date: Re: Trouble with IADs
- Next by Date: Re: Trouble with IADs
- Previous by thread: Re: Trouble with IADs
- Next by thread: Re: Trouble with IADs
- Index(es):
Relevant Pages
|
Loading