Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDataBase and ATL Pin
ov21-Feb-01 21:42
ov21-Feb-01 21:42 
GeneraliJpeg Image Pin
21-Feb-01 21:38
suss21-Feb-01 21:38 
GeneralRe: iJpeg Image Pin
22-Feb-01 1:46
suss22-Feb-01 1:46 
GeneralHELP! User-defined Msg caused illegal operation at run time Pin
21-Feb-01 19:23
suss21-Feb-01 19:23 
GeneralRe: HELP! User-defined Msg caused illegal operation at run time Pin
Tim Deveaux22-Feb-01 3:45
Tim Deveaux22-Feb-01 3:45 
GeneralWinsock & SOCKS Pin
Amit Jain21-Feb-01 16:28
Amit Jain21-Feb-01 16:28 
QuestionC++ equivalent of C getch()? Pin
21-Feb-01 15:41
suss21-Feb-01 15:41 
AnswerRe: C++ equivalent of C getch()? Pin
Amit Jain21-Feb-01 16:39
Amit Jain21-Feb-01 16:39 
It's a messed up question with a fairly messed up answer. If you're in Windows, the iostream libraries may not work the happy way you want. That's the easy copout answer.

The longer answer (page 72 of the March 2001 issue of C/C++ User's Journal, an EXCELLENT magazine) says that you have to go down below istream/ostream to the std::streambuf class. You'll want to look for streambuf::sbumpc as a possible solution to your problem.

Unfortunately, my expertise is in VBScript (ASP 2.0) and PHP, and my attempts to use C/C++ usually make me scream stuff that would get my booted from this board. But I HAVE had the same sort of problems you've had, you're not alone, and the solution is non-obvious. That, and I didn't fully understand enough of the article to explain it to you. Check out the magazine (http://www.cuj.com/) and good luck.

--
Pikapika,
Capt. Jean-Luc Pikachu
GeneralRe: C++ equivalent of C getch()? Pin
Christian Graus21-Feb-01 17:35
protectorChristian Graus21-Feb-01 17:35 
GeneralRecord Headers in ListBox and retrival Pin
Ariel21-Feb-01 14:21
Ariel21-Feb-01 14:21 
GeneralTrying to Lock some Records in ODBC - CRecordset Pin
Ariel21-Feb-01 14:13
Ariel21-Feb-01 14:13 
Generalplease...please... Pin
hahyojin21-Feb-01 13:24
hahyojin21-Feb-01 13:24 
GeneralRe: please...please... Pin
Le Ridder Noir21-Feb-01 22:03
Le Ridder Noir21-Feb-01 22:03 
GeneralRe: I know...ㅠㅠ Pin
21-Feb-01 22:09
suss21-Feb-01 22:09 
GeneralUpdate an array of strings in a DLL Pin
21-Feb-01 11:57
suss21-Feb-01 11:57 
GeneralRe: Update an array of strings in a DLL Pin
Julien22-Feb-01 16:22
Julien22-Feb-01 16:22 
GeneralRe: Update an array of strings in a DLL Pin
23-Feb-01 3:08
suss23-Feb-01 3:08 
GeneralCEdit::GetLine HELP!!! Pin
Antonio21-Feb-01 11:30
Antonio21-Feb-01 11:30 
GeneralRe: CEdit::GetLine HELP!!! Pin
l a u r e n21-Feb-01 20:53
l a u r e n21-Feb-01 20:53 
GeneralRe: CEdit::GetLine HELP!!! Pin
Julien22-Feb-01 16:35
Julien22-Feb-01 16:35 
GeneralSome help with rand()! Pin
21-Feb-01 11:25
suss21-Feb-01 11:25 
GeneralRe: Some help with rand()! Pin
Paolo Messina22-Feb-01 4:59
professionalPaolo Messina22-Feb-01 4:59 
GeneralMultidimentional CMap Pin
21-Feb-01 10:53
suss21-Feb-01 10:53 
GeneralRe: Multidimentional CMap Pin
10-Aug-01 6:49
suss10-Aug-01 6:49 
GeneralFloating Palette Bar Pin
21-Feb-01 10:08
suss21-Feb-01 10:08 

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.