Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Profiling in Visual Studio Pin
Hamid_RT30-Jun-08 18:47
Hamid_RT30-Jun-08 18:47 
GeneralRe: Profiling in Visual Studio Pin
AndreFratelli14-Jul-08 10:10
AndreFratelli14-Jul-08 10:10 
Questionsql server using ODBC in a MFC application Pin
jiangbing27-Jun-08 21:41
jiangbing27-Jun-08 21:41 
AnswerRe: sql server using ODBC in a MFC application Pin
Ștefan-Mihai MOGA28-Jun-08 3:42
professionalȘtefan-Mihai MOGA28-Jun-08 3:42 
GeneralRe: sql server using ODBC in a MFC application Pin
jiangbing28-Jun-08 16:10
jiangbing28-Jun-08 16:10 
AnswerRe: sql server using ODBC in a MFC application Pin
Mark Salsbery28-Jun-08 7:56
Mark Salsbery28-Jun-08 7:56 
AnswerRe: sql server using ODBC in a MFC application Pin
Hamid_RT30-Jun-08 18:47
Hamid_RT30-Jun-08 18:47 
QuestionHelp with getting a spawned process's return value Pin
XKonSoftware27-Jun-08 21:26
XKonSoftware27-Jun-08 21:26 
Hello,
I am working with Visual C++ 6.0
I know how to spawn an external program from my c++ app.
What I am trying to figure out how to do is this:
1. MyApp calls testprog.exe
2. testprog.exe does it's thing while MyApp waits
3. when testprog.exe is FINISHED, it will return a value
4. MyApp should then do something useful based on that value

So, in a nutshell, my program needs to call an external program (which I can do), wait for it to finish, and then do something useful with the value returned by the spawned program. I am having trouble figuring out exactly HOW I can get the spwaned program's ACTUAL return value (not the value returned because the program was started successfully.

Trying to clarify more:
1. Start MyApp
2. MyApp calls TestProg
3. TestProg is finished
4. Return value from TestProg is (DWORD)0xe0018d06
5. *PROBLEM HERE* MyApp needs to retrieve (DWORD)0xe0018d06 that was returned by TestProg, then resume execution and perform actions based on whether TestProg returned (DWORD)0xe0018d06 or 0x00000000

Any help would be IMMENSELY appreciated!
Thanks in advance!
-Steve
AnswerRe: Help with getting a spawned process's return value Pin
CPallini27-Jun-08 21:53
mveCPallini27-Jun-08 21:53 
GeneralRe: Help with getting a spawned process's return value Pin
MANISH RASTOGI27-Jun-08 22:54
MANISH RASTOGI27-Jun-08 22:54 
GeneralRe: Help with getting a spawned process's return value Pin
CPallini28-Jun-08 2:24
mveCPallini28-Jun-08 2:24 
GeneralRe: Help with getting a spawned process's return value Pin
MANISH RASTOGI28-Jun-08 2:35
MANISH RASTOGI28-Jun-08 2:35 
QuestionReceive messages in dialog based application through socket Pin
Mushtaque Nizamani27-Jun-08 20:50
Mushtaque Nizamani27-Jun-08 20:50 
QuestionCompare two strings Pin
manju#12327-Jun-08 20:49
manju#12327-Jun-08 20:49 
GeneralRe: Compare two strings Pin
CPallini27-Jun-08 21:48
mveCPallini27-Jun-08 21:48 
GeneralRe: Compare two strings Pin
manju#12327-Jun-08 21:50
manju#12327-Jun-08 21:50 
GeneralRe: Compare two strings Pin
CPallini27-Jun-08 21:55
mveCPallini27-Jun-08 21:55 
GeneralRe: Compare two strings Pin
manju#12327-Jun-08 22:42
manju#12327-Jun-08 22:42 
AnswerRe: Compare two strings Pin
Ștefan-Mihai MOGA28-Jun-08 3:56
professionalȘtefan-Mihai MOGA28-Jun-08 3:56 
QuestionHelp on Multi-Threaded applicaiton [modified] Pin
Kiran Satish27-Jun-08 12:48
Kiran Satish27-Jun-08 12:48 
AnswerRe: Help on Multi-Threaded applicaiton Pin
Saurabh.Garg27-Jun-08 18:23
Saurabh.Garg27-Jun-08 18:23 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Kiran Satish27-Jun-08 19:02
Kiran Satish27-Jun-08 19:02 
AnswerRe: Help on Multi-Threaded applicaiton Pin
Mark Salsbery28-Jun-08 9:15
Mark Salsbery28-Jun-08 9:15 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Kiran Satish28-Jun-08 12:52
Kiran Satish28-Jun-08 12:52 
GeneralRe: Help on Multi-Threaded applicaiton Pin
Mark Salsbery28-Jun-08 12:59
Mark Salsbery28-Jun-08 12:59 

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.