Return value from VB EXE

C

CIDU

I am calling a VB exe from another applciation, the EXE opens a word document and then do some formatting job. I need to have a return from the EXE, eg. return 1 shows successful, 0 shows failure to do the formatting. Someone says using : Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long), Call ExitProcess(1)
But it's still not working for me, always return 0. Any comments will be much appreciated
-CID
 
P

Perry

Can't you use an ASCII, INI file or even the registry to
push values to Word?

This way, y don't have to go through the
API hassle, eventhough this should be possible.

Krgrds,
Perry

CIDU said:
I am calling a VB exe from another applciation, the EXE opens a word
document and then do some formatting job. I need to have a return from the
EXE, eg. return 1 shows successful, 0 shows failure to do the formatting.
Someone says using : Private Declare Sub ExitProcess Lib "kernel32" (ByVal
uExitCode As Long), Call ExitProcess(1)
 
C

CIDU

Thanks for the reply
I am trying to return this value from this EXE back to another applciation, in this case, PeopleSoft App Engine.
Can you explain a little detail about how to use INI file for this case.
 
P

Perry

How to pull the value in Word from VBA, once the
value is pushed from a VB.exe to an INI file is rather simple.
This *was* yr inital question...

But y're now refering to a PeopleSoft application, needing to
pick up the value pushed from VB ...?
I'm lost here ...

As to how to proceed in this situation:
Y'll have to ask the Application Manager of the PeopleSoft application
whether this application is able to pick up values stored in ASCII- or INI
files....

Krgrds,
Perry

CIDU said:
Thanks for the reply!
I am trying to return this value from this EXE back to another
applciation, in this case, PeopleSoft App Engine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top