Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: string to long part 2 Pin
RChin20-Jul-03 23:26
RChin20-Jul-03 23:26 
GeneralRe: string to long part 2 Pin
John M. Drescher18-Jul-03 4:23
John M. Drescher18-Jul-03 4:23 
GeneralForcefully closeing a Winsock connection Pin
Giles18-Jul-03 3:29
Giles18-Jul-03 3:29 
GeneralRe: Forcefully closeing a Winsock connection Pin
Mike Nordell19-Jul-03 4:31
Mike Nordell19-Jul-03 4:31 
GeneralRe: Forcefully closeing a Winsock connection Pin
Giles19-Jul-03 4:50
Giles19-Jul-03 4:50 
GeneralRe: Forcefully closeing a Winsock connection Pin
Mike Nordell19-Jul-03 6:32
Mike Nordell19-Jul-03 6:32 
Generalkey press Pin
Newborn Naughtysaint18-Jul-03 3:14
Newborn Naughtysaint18-Jul-03 3:14 
GeneralRe: key press Pin
Xander8018-Jul-03 4:44
Xander8018-Jul-03 4:44 
I found something, but I don't know if it's usefull.

MSDN:
_getch

Requirements
_getch <conio.h> Win 98, Win Me, Win NT, Win 2000, Win XP

Return Value
Returns the character read. There is no error return.

Remarks
The _getch and _getwch functions read a single character from the console without echoing. _getche and _getwche read a single character from the console and echo the character read. None of these functions can be used to read CTRL+C. When reading a function key or an arrow key, each function must be called twice; the first call returns 0 or 0xE0, and the second call returns the actual key code.

That would make:
<br />
char ch;<br />
<br />
ch = _getch(); <br />
ch = _getch(); //each function has to be called twice to read function or arrow keys<br />


Don't forget:

#include <conio.h>
GeneralRe: key press Pin
John M. Drescher18-Jul-03 8:34
John M. Drescher18-Jul-03 8:34 
GeneralBest way to test for file available Pin
captjack18-Jul-03 2:46
captjack18-Jul-03 2:46 
GeneralRe: Best way to test for file available Pin
Blake Miller18-Jul-03 5:33
Blake Miller18-Jul-03 5:33 
GeneralRe: Best way to test for file available Pin
captjack18-Jul-03 6:23
captjack18-Jul-03 6:23 
GeneralCopy/paste in CRichEditCtrl Pin
AnTri18-Jul-03 2:03
AnTri18-Jul-03 2:03 
GeneralRe: Copy/paste in CRichEditCtrl Pin
Dominik Reichl18-Jul-03 2:08
Dominik Reichl18-Jul-03 2:08 
QuestionHow to Capture HTML events in vc++? Pin
RaajaOfSelf18-Jul-03 2:02
RaajaOfSelf18-Jul-03 2:02 
GeneralDLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 1:59
ttran770018-Jul-03 1:59 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
Dominik Reichl18-Jul-03 2:03
Dominik Reichl18-Jul-03 2:03 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 4:49
ttran770018-Jul-03 4:49 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
Ilushka20-Jul-03 22:03
Ilushka20-Jul-03 22:03 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
John M. Drescher18-Jul-03 4:00
John M. Drescher18-Jul-03 4:00 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 4:50
ttran770018-Jul-03 4:50 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
Peter Weyzen18-Jul-03 6:44
Peter Weyzen18-Jul-03 6:44 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
Michael P Butler18-Jul-03 7:54
Michael P Butler18-Jul-03 7:54 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 9:05
ttran770018-Jul-03 9:05 
GeneralRe: DLL Hell Going From Win2000 to XP Pin
ttran770018-Jul-03 5:02
ttran770018-Jul-03 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.