_tmain()

This is a discussion on _tmain() within the C++ Programming forums, part of the General Programming Boards category; Anybody know what the diff is between _tmain() and plain old main()? Where can I read about it? obviously I ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    28

    _tmain()

    Anybody know what the diff is between _tmain() and plain old main()? Where can I read about it? obviously I haven't been too successful finding anything.

    Thanks
    rc7j

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    When things are preceded by _t, it indicates that the program wants it to use Unicode. Unicode is basically a different way than ASCII of storing characters and numbers. It takes up more memory, but also has characters that ASCII does not have. Searching google will provide lots of info.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    its most likely a redefined main() for an api or something similar. SDL redefines your main to SDLmain() or so. mybe you should look for the "t" api or something. i heard some peole talking about some "t" thing on irc. maybe you should check the stl references.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    beat me to it!! your answer seems a bit more .... correct .

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21