09-07-2010 02:54 AM
Hi,
I am trying to get the value return by a .exe file started with LaunchExecutable(). Do you think it is possible or I am going the wrong way ?
Thanks !
Adrien T.
Solved! Go to Solution.
09-07-2010
07:24 AM
- last edited on
03-18-2025
05:01 PM
by
Content Cleaner
Adrien:
If you launch an executable CreateProcess(), you can then use GetExitCodeProcess() to read the results.
See more details here: http://digital.ni.com/public.nsf/allkb/E250246D65A6A18D8625659F0065F310
Note that you need to have the Windows SDK (aka Win32 API) installed to use CreateProcess/GetExitCodeProcess. The SDK is included with CVI, but is not installed by default. If you don't have it installed, reinstall CVI, selecting only SDK or Win32API (depending on which version of CVI you have).
09-07-2010 08:39 AM
Ok, I have already tried with CreateProcess() and had some link errors. It was mainly a header issue...
Thanks you made my day