Retrieving parameters

  • Thread starter Thread starter Xabi
  • Start date Start date
X

Xabi

Hello:

How can I retrieve one parameter in a compiled app.?

This means, I call my compiled app. from other app. made in eVb, and I must
pass one parameter to the exe.


Thanks and regards

Xabi
 
In C# you can do this by altering the default main function in your app to
accept an array of strings, into which will be passed the command line
arguments. e.g.
static void Main(string[] args)
{
if(args.Length >0)
{
do something with the arguments
}

Application.Run(new Form1());
}

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Back
Top