Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDetecting Loss of Client With CSockets Pin
softwaremonkey14-Jun-06 4:21
softwaremonkey14-Jun-06 4:21 
AnswerRe: Detecting Loss of Client With CSockets Pin
Neil Van Eps14-Jun-06 6:07
Neil Van Eps14-Jun-06 6:07 
GeneralRe: Detecting Loss of Client With CSockets Pin
softwaremonkey14-Jun-06 6:56
softwaremonkey14-Jun-06 6:56 
GeneralRe: Detecting Loss of Client With CSockets Pin
JonEngle14-Jun-06 11:02
JonEngle14-Jun-06 11:02 
QuestionCreateProcess Redirect output [modified] Pin
nmx_de14-Jun-06 4:06
nmx_de14-Jun-06 4:06 
GeneralRe: CreateProcess Redirect output Pin
Laxman Auti14-Jun-06 4:11
Laxman Auti14-Jun-06 4:11 
GeneralRe: CreateProcess Redirect output Pin
nmx_de14-Jun-06 4:19
nmx_de14-Jun-06 4:19 
AnswerRe: CreateProcess Redirect output Pin
Laxman Auti14-Jun-06 4:28
Laxman Auti14-Jun-06 4:28 
nmx_de wrote:
The problem has nothing to do with ipconfig.exe itself. It was only an example.
I want to be able to call any program (like ipconfig.exe or anything else that returns text) from my program and receive the result.


I think we can't return data from EXE because it runs in seperate address space.

You may achive this by using Shared data and Spawn functions

Where you can modify the shared data/variables into spawned process and use that data in the parent process .Unsure | :~

And other way is Create a DLL where methods returns whatever you wantSmile | :)

Knock out 't' from can't,
You can if you think you can
Cool | :cool:
GeneralRe: CreateProcess Redirect output Pin
Cedric Moonen14-Jun-06 4:42
Cedric Moonen14-Jun-06 4:42 
GeneralRe: CreateProcess Redirect output Pin
nmx_de14-Jun-06 4:45
nmx_de14-Jun-06 4:45 
AnswerRe: CreateProcess Redirect output Pin
Laxman Auti14-Jun-06 17:52
Laxman Auti14-Jun-06 17:52 
AnswerRe: CreateProcess Redirect output Pin
David Crow14-Jun-06 5:04
David Crow14-Jun-06 5:04 
AnswerRe: CreateProcess Redirect output Pin
Michael Dunn14-Jun-06 18:43
sitebuilderMichael Dunn14-Jun-06 18:43 
QuestionRe: CreateProcess Redirect output Pin
nmx_de15-Jun-06 3:50
nmx_de15-Jun-06 3:50 
QuestionTextOut of CDC Pin
ns14-Jun-06 3:54
ns14-Jun-06 3:54 
AnswerRe: TextOut of CDC Pin
James R. Twine14-Jun-06 3:58
James R. Twine14-Jun-06 3:58 
AnswerRe: TextOut of CDC Pin
Laxman Auti14-Jun-06 3:59
Laxman Auti14-Jun-06 3:59 
AnswerRe: TextOut of CDC Pin
Mahesh Kulkarni14-Jun-06 3:59
Mahesh Kulkarni14-Jun-06 3:59 
QuestionRe: TextOut of CDC Pin
David Crow14-Jun-06 4:00
David Crow14-Jun-06 4:00 
AnswerRe: TextOut of CDC/thanks all Pin
ns14-Jun-06 4:17
ns14-Jun-06 4:17 
AnswerRe: TextOut of CDC Pin
Hamid_RT14-Jun-06 6:01
Hamid_RT14-Jun-06 6:01 
QuestionExternal program launch issue Pin
Tnarol14-Jun-06 3:22
Tnarol14-Jun-06 3:22 
AnswerRe: External program launch issue Pin
Laxman Auti14-Jun-06 3:31
Laxman Auti14-Jun-06 3:31 
AnswerRe: External program launch issue Pin
Naveen14-Jun-06 3:32
Naveen14-Jun-06 3:32 
AnswerRe: External program launch issue Pin
toxcct14-Jun-06 3:32
toxcct14-Jun-06 3:32 

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.