Hi, all,
I am doing some application on my WM5.0 smartphone by using VS 2005. How can I associate my app with one button I mean, when you push this button, my app will be executed, instead of every time going the directory and execute my app
Thanks for the reply!

how can i associate my app to one button?
sbuster
Thanks for your reply.... But I dont quite understand..... How creating a proecess can be related with one button launch application Could you please be more specific
Thanks a lot
lissbpp
Sounds like you need a service running in the background. You can activate a service by using ActivateService:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcecomm5/html/wce50lrfactivateservice.asp
Just to give you my 2 cents overriding a button on your cellphone is probably not a good idea. Other programs may be relying on that button and so if they need it, your app would always launch as well as performing the standard operation. This would lead to a very bad user experiance. Sort of like how popups are a bad user experience for IE.
M. Nicholas
Try using Create Process:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dllproc/base/createprocess.asp
jdang
Sorry for the confusion... Hope you can answer this..... Many thanks!
giko
Check out the reg key HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys and the shell function SHSetAppKeyWndAssoc.
http://msdn.microsoft.com/library/default.asp url=/library/en-us/wceshellui5/html/wce50lrfgeneralshellregistrysettings.asp
PatMcHargue