Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Differences??? Pin
ashwath197912-Feb-07 22:13
ashwath197912-Feb-07 22:13 
GeneralRe: Differences??? Pin
toxcct13-Feb-07 0:25
toxcct13-Feb-07 0:25 
GeneralRe: Differences??? Pin
ashwath197912-Feb-07 22:14
ashwath197912-Feb-07 22:14 
GeneralRe: Differences??? Pin
toxcct12-Feb-07 22:25
toxcct12-Feb-07 22:25 
GeneralRe: Differences??? Pin
ashwath197912-Feb-07 22:33
ashwath197912-Feb-07 22:33 
GeneralRe: Differences??? Pin
toxcct12-Feb-07 22:39
toxcct12-Feb-07 22:39 
GeneralRe: Differences??? Pin
ashwath197913-Feb-07 0:19
ashwath197913-Feb-07 0:19 
QuestionGetchar and getche problem Pin
sachin ahuja12-Feb-07 21:26
sachin ahuja12-Feb-07 21:26 
Hi All
I am using one console application and using getche and getchar function in this application.
ch = getchar();
ch1 = getche();
I found that using getchar when I press enter I get value 10(LF) in ch.
and when I press enter for getche() function i get value 13(CR) in ch1.
Why am I not getting the same value in both function?
When enter is pressed then two values are passed.that are 10(LF) and 13(CR).
So value of ch1 must also be 10 in place of 13.
Can anyone help me why I am getting different values in both functions.



Thanks in advance
BR
Sachin Ahuja

AnswerRe: Getchar and getche problem Pin
kasturi_haribabu12-Feb-07 21:50
kasturi_haribabu12-Feb-07 21:50 
GeneralRe: Getchar and getche problem Pin
sachin ahuja13-Feb-07 16:46
sachin ahuja13-Feb-07 16:46 
QuestionZip/Unzip from VC++ using zip32.dll/unzip32.dll Pin
prabhudurai12-Feb-07 21:09
prabhudurai12-Feb-07 21:09 
AnswerRe: Zip/Unzip from VC++ using zip32.dll/unzip32.dll Pin
Programm3r12-Feb-07 22:27
Programm3r12-Feb-07 22:27 
QuestionSetting Threading Model in VC++ Pin
AbbyIndian12-Feb-07 21:01
AbbyIndian12-Feb-07 21:01 
Questionmultithreading Pin
neha.agarwal2712-Feb-07 20:09
neha.agarwal2712-Feb-07 20:09 
AnswerRe: multithreading Pin
kasturi_haribabu12-Feb-07 21:19
kasturi_haribabu12-Feb-07 21:19 
AnswerRe: multithreading Pin
Suresh H12-Feb-07 22:02
Suresh H12-Feb-07 22:02 
QuestionHow to get the format of users local date and time? Pin
Hemant kulkarni12-Feb-07 19:55
Hemant kulkarni12-Feb-07 19:55 
AnswerRe: How to get the format of users local date and time? Pin
kasturi_haribabu12-Feb-07 21:35
kasturi_haribabu12-Feb-07 21:35 
QuestionHardware detection in VC++ Pin
Karismatic12-Feb-07 19:49
Karismatic12-Feb-07 19:49 
AnswerRe: Hardware detection in VC++ Pin
Hamid_RT12-Feb-07 20:00
Hamid_RT12-Feb-07 20:00 
QuestionEditing in CListCtrl Pin
Hadi Dayvary12-Feb-07 19:39
professionalHadi Dayvary12-Feb-07 19:39 
AnswerRe: Editing in CListCtrl Pin
Mark Salsbery13-Feb-07 7:28
Mark Salsbery13-Feb-07 7:28 
QuestionProblem with CString Datatype Pin
Vichitram12-Feb-07 19:20
Vichitram12-Feb-07 19:20 
QuestionRe: Problem with CString Datatype Pin
prasad_som12-Feb-07 19:26
prasad_som12-Feb-07 19:26 
AnswerRe: Problem with CString Datatype Pin
Vichitram12-Feb-07 19:30
Vichitram12-Feb-07 19:30 

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.