Thread: Using fstream.h or stdio.h in WinApps

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    32

    Question Using fstream.h or stdio.h in WinApps

    Hello ~

    I wrote a set of functions that read and write ID3 tags for a console mode application recently using stdio.h for the file I/O. Could I use these functions in the WinAPI created Windows Application? It's all in C++. If not, how could I attempt do do the same thing for a WinApp?

    I hope that I have been clear. Thanks;

    ~ Chris Howarth

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You can still use the standard file I/O for manipulating the file system.

    But you have to use the likes of DrawText() for actually displaying text on screen, in a window.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2007
    Posts
    32
    Oh good, that fine.. Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error: stdio.h: No such file or directory
    By MindLess in forum C Programming
    Replies: 9
    Last Post: 12-20-2007, 08:11 AM
  2. stdio.h
    By Vertex34 in forum C Programming
    Replies: 2
    Last Post: 07-12-2004, 10:18 AM
  3. error in -stdio.h __VALIST
    By JaWiB in forum C++ Programming
    Replies: 3
    Last Post: 09-20-2003, 12:22 PM
  4. taylor series using only stdio.h
    By faruque in forum C Programming
    Replies: 1
    Last Post: 02-13-2003, 12:50 PM
  5. Modifying stdio.h
    By Spectrum48k in forum C Programming
    Replies: 10
    Last Post: 05-29-2002, 08:30 AM