Click here to Skip to main content
15,917,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is IDR_MAINFRAME? Pin
derek71-Mar-06 3:51
derek71-Mar-06 3:51 
QuestionRe: what is IDR_MAINFRAME? Pin
David Crow1-Mar-06 4:00
David Crow1-Mar-06 4:00 
QuestionInternet access application Pin
sanjaylk1-Mar-06 3:27
sanjaylk1-Mar-06 3:27 
AnswerRe: Internet access application Pin
walter761-Mar-06 3:44
walter761-Mar-06 3:44 
GeneralRe: Internet access application Pin
sanjaylk1-Mar-06 4:09
sanjaylk1-Mar-06 4:09 
Questionline counter code Pin
nanjesh1-Mar-06 3:21
nanjesh1-Mar-06 3:21 
AnswerRe: line counter code Pin
toxcct1-Mar-06 3:25
toxcct1-Mar-06 3:25 
Questionsuper node technologies Pin
J51219821-Mar-06 3:09
J51219821-Mar-06 3:09 
AnswerRe: super node technologies Pin
David Crow1-Mar-06 3:36
David Crow1-Mar-06 3:36 
QuestionNAT Pin
J51219821-Mar-06 3:06
J51219821-Mar-06 3:06 
AnswerRe: NAT Pin
Ryan Binns1-Mar-06 3:11
Ryan Binns1-Mar-06 3:11 
GeneralRe: NAT Pin
J51219821-Mar-06 4:00
J51219821-Mar-06 4:00 
Questiongeneral window UI design Pin
derek71-Mar-06 2:32
derek71-Mar-06 2:32 
AnswerRe: general window UI design Pin
toxcct1-Mar-06 2:43
toxcct1-Mar-06 2:43 
GeneralRe: general window UI design Pin
derek71-Mar-06 3:35
derek71-Mar-06 3:35 
GeneralRe: general window UI design Pin
toxcct1-Mar-06 3:55
toxcct1-Mar-06 3:55 
Questionhow set a global message, same in all process. Pin
FlyWithYou1-Mar-06 2:00
FlyWithYou1-Mar-06 2:00 
AnswerRe: how set a global message, same in all process. Pin
ThatsAlok1-Mar-06 2:39
ThatsAlok1-Mar-06 2:39 
AnswerRe: how set a global message, same in all process. Pin
Ryan Binns1-Mar-06 2:40
Ryan Binns1-Mar-06 2:40 
AnswerRe: how set a global message, same in all process. Pin
jhwurmbach1-Mar-06 3:00
jhwurmbach1-Mar-06 3:00 
QuestionClass Design Question Pin
ldsdbomber1-Mar-06 1:43
ldsdbomber1-Mar-06 1:43 
AnswerRe: Class Design Question Pin
walter761-Mar-06 2:17
walter761-Mar-06 2:17 
GeneralRe: Class Design Question Pin
ldsdbomber1-Mar-06 5:32
ldsdbomber1-Mar-06 5:32 
GeneralRe: Class Design Question Pin
walter761-Mar-06 5:38
walter761-Mar-06 5:38 
QuestionCracking console app that takes data to stdin. Pin
9ine1-Mar-06 1:02
9ine1-Mar-06 1:02 
I written win app to launch console app write data to it and read results from it thru pipes.

My Console app on launch from command line:
type numbers:
//I'm then typing floating point numbers
1.1\n
2.2\n
3.3\n
\032\n <------ ctrl-z and new line forcing console to stop reading
//produce some output

My win app:
creates pipes;
create process; //console app
write to stdinWPipe; //console read it from its end of pipe stdinRPipe
fprintf(stdinWPipe,"%f\n",numb[i]);
frpintf(stdinWPipe,"\032\n"); //write ctrl-z symbol
closehandle(stdinWPipe); //close write end of stdin pipe
closehandle(stdoutWPipe); //close write end of stdout pipe before read
ReadFile(stdoutRPipe, ...); //read from read end of stdout pipe

This all works fine with my test console app and my win app to launch it, write data to its stdin and read data from its stdout throu pipes.

But there is just executable console which I need to lunch the same mode.
After it is ran from just command prompt it behaves exactly the same as my test console app:
type numbers: //writing prompt for typing in
1.1\n //and all the same typing numbers
2.2\n
3.3\n
\032\n //ctrl+z + \n
//and then it outputs results

But when I run this unknown console app from my win app function ReadFile(stdoutRPipe,... ) hangs itself never returning?? That is no data written to stdoutWPipe from console app. Whats the hell??





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.