Click here to Skip to main content
15,904,415 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionequivalent of VB's Debug.Print in vc 6 Pin
ns1-Mar-06 8:52
ns1-Mar-06 8:52 
AnswerRe: equivalent of VB's Debug.Print in vc 6 Pin
David Crow1-Mar-06 9:26
David Crow1-Mar-06 9:26 
GeneralRe: equivalent of VB's Debug.Print in vc 6 Pin
ns1-Mar-06 10:35
ns1-Mar-06 10:35 
AnswerRe: equivalent of VB's Debug.Print in vc 6 Pin
Wes Aday1-Mar-06 9:29
professionalWes Aday1-Mar-06 9:29 
QuestionParsing Pin
cuteee1-Mar-06 8:40
cuteee1-Mar-06 8:40 
AnswerRe: Parsing Pin
David Crow1-Mar-06 9:25
David Crow1-Mar-06 9:25 
QuestionSerial Communication Pin
Macerick1-Mar-06 8:18
Macerick1-Mar-06 8:18 
AnswerRe: Serial Communication Pin
David Crow1-Mar-06 9:10
David Crow1-Mar-06 9:10 
GeneralRe: Serial Communication Pin
Ryan Binns1-Mar-06 17:17
Ryan Binns1-Mar-06 17:17 
GeneralRe: Serial Communication Pin
David Crow2-Mar-06 3:11
David Crow2-Mar-06 3:11 
QuestionIHttpNegotiate BeginningTransaction Pin
acroitor1-Mar-06 8:03
acroitor1-Mar-06 8:03 
QuestionHow to realize a textbox in client area? Pin
xyhan1-Mar-06 7:10
xyhan1-Mar-06 7:10 
QuestionRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 9:09
David Crow1-Mar-06 9:09 
AnswerRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 9:55
xyhan1-Mar-06 9:55 
QuestionRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 10:30
David Crow1-Mar-06 10:30 
AnswerRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 10:46
xyhan1-Mar-06 10:46 
GeneralRe: How to realize a textbox in client area? Pin
David Crow1-Mar-06 10:55
David Crow1-Mar-06 10:55 
GeneralRe: How to realize a textbox in client area? Pin
xyhan1-Mar-06 12:20
xyhan1-Mar-06 12:20 
GeneralRe: How to realize a textbox in client area? Pin
David Crow2-Mar-06 3:15
David Crow2-Mar-06 3:15 
AnswerRe: How to realize a textbox in client area? Pin
Nish Nishant1-Mar-06 11:19
sitebuilderNish Nishant1-Mar-06 11:19 
QuestionEOF for cygwin executable? Pin
9ine1-Mar-06 6:00
9ine1-Mar-06 6:00 
AnswerRe: EOF for cygwin executable? Pin
Dan McCormick1-Mar-06 7:32
Dan McCormick1-Mar-06 7:32 
GeneralRe: EOF for cygwin executable? Pin
9ine1-Mar-06 22:18
9ine1-Mar-06 22:18 
GeneralRe: EOF for cygwin executable? Pin
Dan McCormick2-Mar-06 1:33
Dan McCormick2-Mar-06 1:33 
GeneralRe: EOF for cygwin executable? Pin
9ine2-Mar-06 5:02
9ine2-Mar-06 5:02 
Console app which reads stdin with fgets() untill it returns NULL.
If string read, fgets returns non-zero value, if ctrl+z\n read, fgets returns NULL.


case 1: VC compiled console app!
subcase A: lunch it from command line, type strings, type ctrl+z\n to quit it
subcase B: lunch it from win app thru createprocess(), write strings thru pipe to it, write \032\n bytes seq to pipe, console app will quit!


case 2: cygwin compiled console app!
subcase A: equal to subcase A in case 1.
subcase B: equal to subcase B in case 1. except that \032\n seq is interpreted as a string and does not force to return NULL function fgets() as in case 1, subcase B!!!


What to write to pipe of case 2,subcase B, to make cygwin compiled console app fgets() function to return NULL??????


9ine

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.