Retrieving parameters

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
 
P

Peter Foot [MVP]

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
 

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

Top