![]() |
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. |
You have to use ShellandWait I think from advapi32.dll.
|
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 |
So am I out of line in suggesting you simply throw a COM interface on the C++ program and load it from VB to get a rich programatic exchange?
|
Quote:
Syncronizing the processes like ^^^ they said up there is probably easiest. |
Crud. I find VB one of the most annoying languages ever. What a lax grammar they build that language on.
I'd much rather C, C++, C#, Java, Lisp, JScript, Fortran... |
All times are GMT -8. The time now is 09:41 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project