Home All Groups Group Topic Archive Search About

get no-integer returned from exe

Author
5 Apr 2005 1:23 PM
raulavi
Can an EXE return Strings ? or exceptions? How?
(I  see so far that integers is the only thing to return).

Author
5 Apr 2005 3:49 PM
Herfried K. Wagner [MVP]
"raulavi" <raul***@discussions.microsoft.com> schrieb:
> 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...

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
5 Apr 2005 4:23 PM
raulavi
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.)



Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "raulavi" <raul***@discussions.microsoft.com> schrieb:
> > 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...
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
>
Author
5 Apr 2005 4:33 PM
Herfried K. Wagner [MVP]
"raulavi" <raul***@discussions.microsoft.com> schrieb:
> 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>).

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>