Re: Are _T() and TEXT() macros equivalent?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I always use _T(), but I'm guessing it wouldn't matter. You could easily define these macros in any port you did and there are so many other things that would cause you grief doing a port that this would likely not be top on your pain list.

Tom

"Martin" <martin-g@xxxxxxx> wrote in message news:1175788201.721580.207470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 5, 6:31 pm, "Martin" <marti...@xxxxxxx> wrote:
Hello everybody!

I'd like to find out once and for all: can I always use _T() in place
of TEXT() and vice versa? If yes, why has _T() been added into
tchar.h? Wasn't TEXT() enough for us?

Thanks in advance
Martin

Hmm, I think I found the reason for defining '_T()'. 'TEXT()' is a
Windows specific macro (it's defined in winnt.h), so _T() is more
portable, am I right, what do you think?

Thanks,
Martin


.



Relevant Pages

  • port I/O abstraction macros
    ... Earlier I posted some macros that allow you to easily define binary ... hardware design or layout iteration - when most of the signals have ... These macros allow you to make easy abstraction of I/O port & pin ... - Writing to port registers: (these are meant to be used as ...
    (comp.arch.embedded)
  • Re: Macro Code-Generation Too Ugly?
    ... there appeared to be consensus that using macros to automatically expand as code for serializing and deserializing and defining ... Other methods can be quite easy to port. ... degree of complexity. ...
    (comp.lang.c)
  • Re: Macro Substitution Help Request
    ... arguments" when compiling with Imagecraft ICCAVR. ... I have written a set of macros that can be used to logically set or reset a specified port bit. ... Other code that you might want to include in your macro is saving output bytes/words in a "shadow" array, so that if you cannot read the output port directly, it will combine the new output bitwith the current value of other bits in the output port. ...
    (comp.lang.c)
  • Re: Should the Command Line Be Deep-Sixed?
    ... Didn't someone port Microsoft's Mr Clippy to vim? ... vi macros are Turing complete so that abomination's ...
    (rec.arts.sf.fandom)
  • Re: macros that build macros
    ... The macros produce code in support of type-safe inter-process message ... There were for digital I/O ports, ... port, PIN for reading input, PORT for writing output, and DDR (Data ... If the hardware changes, and the status LED moved to port B, pin 3, ...
    (comp.lang.c)