General discussion

Locked

Call app from VB and get results

By rutsogn ·
Hi, I have a C++ command line app which when executed returns an integer value. I am trying to run this app from VB and display the return value and thought I could do something like:
retval = Shell("C:\test\dssLEN.exe", 1)
but it just returns a program id. Is there a way to get the integer value returned from the application?
Thanks,
Ron Utsogn

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Call app from VB and get results

by earona In reply to Call app from VB and get ...

Try to call a .bat , in .bat:
dssLEN.exe > Test.txt
And then read test.txt file to get resuts.
Or
retval = Shell("C:\test\dssLEN.exe > Test.txt", 1)
And then read test.txt file to get resuts.
This is the easier way.

I wish that they'll begood for you
Exequiel Arona

Collapse -

Call app from VB and get results

by rutsogn In reply to Call app from VB and get ...
Collapse -

Call app from VB and get results

by rutsogn In reply to Call app from VB and get ...

This question was closed by the author

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums