Pass parameters to a PPC VB .NET app

G

Guest

I'm launching my Pocket PC VB .NET application that sits on the device from
my computer using CeCreateProcess RAPI API. Is it possible to pass parameters
to it? How would I do that and how would the application extract them?

Thank you.
 
S

Sergey Bogdanov

The second parameter for CeCreateProcess is a command line. So it could
be used to pass parameters to application:

CeCreateProcess("\your app", "parameter1 parameter2" ...);

then in the VB.NET application:

Public Shared Sub Main(ByVal args() as String)
' args(0) -- the first parameter
' args(1) -- the second
End Sub


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
G

Guest

Thank you very much Sergey!

Sergey Bogdanov said:
The second parameter for CeCreateProcess is a command line. So it could
be used to pass parameters to application:

CeCreateProcess("\your app", "parameter1 parameter2" ...);

then in the VB.NET application:

Public Shared Sub Main(ByVal args() as String)
' args(0) -- the first parameter
' args(1) -- the second
End Sub


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 

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