C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-19-2010, 09:02 PM   #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,
cages is offline   Reply With Quote
Old 02-20-2010, 01:06 AM   #2
Registered User
 
Join Date: Jan 2010
Posts: 238
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.
_Mike is offline   Reply With Quote
Old 02-20-2010, 06:31 AM   #3
Registered User
 
Join Date: Apr 2005
Posts: 8
Yes I was confusing Win32 and Win32s.

Thanks
cages is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 12:12 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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