Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I read from a question on this forum .exe's can be made to accept parameters on startup, almost like you are calling a method and passing some variables. If this is true, can the same be done if I want the .exe to return values (like when a ref or out keyword is used in methods)?

Again, if this is at all possible, how do I implement this into exe's? Can I maaybe be given some resources to read through on this?
Posted

yes its possible

read this link.
 
Share this answer
 
Comments
LanFanNinja 3-Feb-12 2:31am    
+5
Winston_D 3-Feb-12 3:40am    
Thanks a thousand
 
Share this answer
 
Comments
LanFanNinja 3-Feb-12 2:31am    
+5
Winston_D 3-Feb-12 3:39am    
BIG thanx:):)
CRDave1988 3-Feb-12 4:34am    
welcome
Well Main() can return an integer does that help?? Here is an example of how this might be used.

Main() Return Values[^]
 
Share this answer
 
Comments
Winston_D 3-Feb-12 3:39am    
Thanks a thousand
LanFanNinja 3-Feb-12 3:47am    
You're welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900