get no-integer returned from exe

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can an EXE return Strings ? or exceptions? How?
(I see so far that integers is the only thing to return).
 
raulavi said:
Can an EXE return Strings ? or exceptions? How?
(I see so far that integers is the only thing to return).

No, they cannot. What exactly do you want to archieve? Maybe there is a
better solution...
 
this exe can return one of 10 different msgs .
then, what I am doing for now is to return an integer value (I want a string).
If this is so,then from whatever i call the exe and get one of these
numbers then, I have to translate the number to a msg.

Tia

(as a rule we dont write txt files nor use the registry.)
 
raulavi said:
this exe can return one of 10 different msgs .
then, what I am doing for now is to return an integer value (I want a
string).
If this is so,then from whatever i call the exe and get one of these
numbers then, I have to translate the number to a msg.

You can write text to the console (maybe on the 'Console.Error' stream) and
read the output in your other application
(<URL:http://dotnet.mvps.org/dotnet/samples/misc/RedirectConsole.zip>).
 

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

Back
Top