Hi guys,
If exe A calls exe B, using winexec() or waitrun(), how to get the value returned by exe B?
TIA
BCC5.82/BCC7.3
xHarbour/Harbour
Hi guys,
If exe A calls exe B, using winexec() or waitrun(), how to get the value returned by exe B?
TIA
WaitRun() is expected to return the exitcode of executed exe.
But somehow I could not get reliable results.
You may try testing it.
Thanks for the reply Rao.
I didn't manage to get it too and when I check the documentation it says waitrun() returns hInstance.
So I just wrote a workaround by having exe B dumped the return value in a file for exe A to read. It serve the purpose but not as neat as having exe A reading directly exe B's return value.
hb_retnl( dwExitCode );So I just wrote a workaround by having exe B dumped the return value in a file for exe A to read
To communicate two exes programs. Send parameters or returns information:
Thanks for the input Paco
You can try INI files too
Thanks for the input Antolin. I do use ini file quite a lot.
Speaking of ini file, I find it annoying that it doesn't leave a blank space in between sections. It makes it hard to read and edit manually