09-02-2003, 09:10 AM | #1 (permalink) |
Riiiiight........
|
C++ / Visual Basic question
So i have a executable written in C++, and i wish to call this executable in Visual Basic, and be able to read results from running the C++ program.
The C program outputs its results in a text file when it's done running. So my question is, how do I check, from Visual Basic for Applications, that the C program is done running? thanks. |
09-02-2003, 04:36 PM | #3 (permalink) |
Banned
Location: Greater Vancouver
|
I would use Shell, get the process ID, and use OpenProcess with the SYNCHRONIZE flag set.
Then, with the handle obtained from OpenProcess, use WaitForSingleObject |
09-10-2003, 08:51 PM | #5 (permalink) | |
Crazy
Location: Salt Lake City
|
Quote:
Syncronizing the processes like ^^^ they said up there is probably easiest.
__________________
---<>---^^---<>---^^---<>--- ---^^---<>---^^---<>---^^--- ---<>---^^---<>---^^---><--- |
|
Tags |
basic, question, visual |
|
|