SNAPI - EnableApplicationLauncher?

  • Thread starter Thread starter Brip
  • Start date Start date
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
 
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
 
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
 
Back
Top