12-13-2008 01:14 PM
I have a LabWindows/CVI application (executable) that must launch a second executable via the "LaunchExecutableEx" library function. When the second executable terminates, it must return an integer value to the first executable. Other than the horrid solution of using a disk file, how can this be done?
Maybe by using a shared DLL?
Thanks.
12-15-2008 03:36 AM
Check out the sample code at ...CVI70\samples\sdk\sharemem. I have successfully used dlls based on this approach quite a few times now, to achieve the same objectives that you need.
JR
12-15-2008 07:14 AM
as specified in the documentation:
"If you want to wait for the program to exit, use the system function in the ANSI C Library."
since your first executable is a CVI program, i assume that it is made of a user interface that you would want to be responsive while the second software is executing. then, create a new thread, in which you use the system() function call, store the result, you are done...