By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,693 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,693 IT Pros & Developers. It's quick & easy.

get no-integer returned from exe

P: n/a
Can an EXE return Strings ? or exceptions? How?
(I see so far that integers is the only thing to return).
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"raulavi" <ra*****@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/>

Nov 21 '05 #2

P: n/a
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.)

"Herfried K. Wagner [MVP]" wrote:
"raulavi" <ra*****@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/>

Nov 21 '05 #3

P: n/a
"raulavi" <ra*****@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/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.