Thread: unicode text macros

  1. #1
    Registered User meson's Avatar
    Join Date
    Oct 2006

    Question unicode text macros


    c++ stanard says first underscore not allowed but windows have _T macro for making unicode words like. Why windows pee on standar? Or is macros okay?

    here is it, I think
    each name that begins with an underscore is reserved to the implementation
    Thanks. sorry my english not to good.

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Portland, Or
    The implementation is the given compiler and/or library. In this case, only the compiler itself and or the std lib is allowed to have underscores at the beginning of a macro name.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    And _T is not part of Windows. TEXT() is. _T is part of tchar.h, which is a compiler-specific extension.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. Making a unicode text file
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 02-15-2008, 08:21 PM
  3. Text adventure engine idea. thoughts?
    By suzakugaiden in forum Game Programming
    Replies: 16
    Last Post: 01-15-2006, 05:13 AM
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM
  5. Replies: 1
    Last Post: 07-13-2002, 05:45 PM