Thread: good habits - TCHAR, unicode, etc.

  1. #16
    Registered User
    Join Date
    Feb 2012
    Posts
    44
    OK. So far, so good.

    No more char in my program. Found int Wmain for passing command line args as TCHAR. Works already. No converting. All will be in TCHAR from now on. No more printf, etc.

    And a _tfopen (which only has 2 args vs. _ftopen 3??). And using the _fgetts.

    Can someone NAME (nomenclature) what things like stat, fstat, _tstat, _fgetts are called. "Standard C functions"? Do they have anything to do with Microsoft or Windows, per se? IOW, when I search on this stuff, I don't know what to call them to get an accurate google search.

    Thanks for offering the sound and sage advice. I'm wary being a dinosaur (50) and having programmed for 35 years that it's already harder to learn new tricks and I realize how the early learning can be ingrained quite heavily. So, here I am.

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    They are Microsoft extensions. That is why they are prefixed witb an underscore.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Old habits die hard
    By Yarin in forum General Discussions
    Replies: 11
    Last Post: 01-24-2012, 12:50 AM
  2. Bad coding habits
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 09-12-2005, 05:44 PM
  3. Unicode vurses Non Unicode client server application with winsock2 query?
    By dp_76 in forum Networking/Device Communication
    Replies: 0
    Last Post: 05-16-2005, 07:26 AM
  4. Professional Habits?
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 01-17-2003, 02:27 PM
  5. Unicode & Good Program Design :: C++
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-05-2002, 04:09 PM