![]() |
![]() |
#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. |
![]() |
![]() |
#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 |
![]() |
![]() |
#5 (permalink) | |
Crazy
Location: Salt Lake City
|
Quote:
![]() Syncronizing the processes like ^^^ they said up there is probably easiest.
__________________
---<>---^^---<>---^^---<>--- ---^^---<>---^^---<>---^^--- ---<>---^^---<>---^^---><--- |
|
![]() |
Tags |
basic, question, visual |
|
|