SNAPI - EnableApplicationLauncher?

B

Brip

Anyone,

try as I might I can't seem to get a command line argument(s) passed
into my application when it is called by the system as a result of enabling
application launching, see code line below;

_ssCradle.EnableApplicationLauncher("Cradle State Change");

What am I doing wrong? The commandline of the application, when
executed by the system is devoid of arguments.

VS2005/CF2/WM5.0

Brip
 
D

Daniel Moth

Have you tried the other overload of the method? It takes 2 more arguments:
the path to your exe and the command line args you wish to receive.

Cheers
Daniel
 
B

Brip

Daniel,

How many times must I have read that documentation................Doh.

You are quite correct I changed the line to;
_SystemState.EnableApplicationLauncher("CradleApp", "/Program
Files/CradleApp/CradleApp.exe", "30");

Now '30' gets passed as a command line argument when executed by the system.

Many thanks,
Brip
 

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