Borland Free Compiler console IO documentation

This is a discussion on Borland Free Compiler console IO documentation within the Windows Programming forums, part of the Platform Specific Boards category; I am learning C with the Borland Command line compiler. When looking at the library help files, some of the ...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    8

    Borland Free Compiler console IO documentation

    I am learning C with the Borland Command line compiler.
    When looking at the library help files, some of the IO functions state-

    int getch(void);
    Note: Do not use this function for Win32s or Win32 GUI applications.

    int getc(FILE *stream);
    Note: For Win32s or Win32 GUI applications, stdin must be redirected.

    Are window console aplications not Win32 applications ?

    If they are why should the getch(); function not be used.

    Thanks,

  2. #2
    Registered User
    Join Date
    Jan 2010
    Posts
    412
    Quote Originally Posted by cages View Post
    Are window console aplications not Win32 applications ?
    On a 32-bit windows version, yes they are.
    I think you are confusing win32 with win32s, they are not the same thing.
    Both getc and getch should be usable in a console app.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    8
    Yes I was confusing Win32 and Win32s.

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 10:13 AM
  2. OpenScript2.0 Compiler
    By jverkoey in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2003, 01:52 PM
  3. Compiler Design... Anyone That Can Help!
    By ComputerNerd888 in forum C++ Programming
    Replies: 3
    Last Post: 09-27-2003, 10:48 AM
  4. Comile problem using latest Dev C++ Compiler
    By shiny_dico_ball in forum C++ Programming
    Replies: 6
    Last Post: 06-06-2003, 06:32 PM
  5. Totally puzzling IO problem
    By Vorok in forum C++ Programming
    Replies: 5
    Last Post: 01-06-2003, 07:10 PM

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