Guest Chaitanya Posted January 8, 2004 Report Posted January 8, 2004 How to execute an application at startup on SmartPhone 2002 and 2003 devices? I have placed the application in the StorageWindowsStart Menu folder and a shortcut to the application in the StorageWindowsStartUp folder. But its not working. And also the CeRunAppAtEvent doesn't work on SmartPhone device as it works on PocketPC
Guest Lopio Posted January 8, 2004 Report Posted January 8, 2004 Put the shortcut at IPSMWindowsStartup :)
Guest Chaitanya Posted January 8, 2004 Report Posted January 8, 2004 Storage folder is for SmartPhone 2003, similar to IPSM in previous version. Placing the shortcut doesn't work.
Guest maxh2003 Posted January 8, 2004 Report Posted January 8, 2004 Hi Chaitanya - welcome to the forum! Are you quite sure that putting the shortcut in StorageWindowsStartUp isn't working? I just tried it out myself, by creating a shortcut to Orneta Notepad and putting that shortcut into StorageWindowsStartUp. I then rebooted my phone. The Home screen appeared as normal, but by calling up xbar I was able to see that Orneta Notepad had indeed started up, and was running in the background. What application are you trying to run, out of interest? Is it a released app or is it home-made? I'm guessing you've written it yourself, judging by your post on another forum. If it *is* home-made, possibly you could post the app so I/anyone else can see if we have any more luck?
Guest Chaitanya Posted January 9, 2004 Report Posted January 9, 2004 Hi, Thanks for the response. Yeah, its a home-made application. I haven't tested it with XBar, but am trying to create a shortcut to another application using the SHCreateShortcut method, just to check if the application is running in the background on startup or not. Here is the code that I am using - /////////////////////////////////////////////////////////////////////////////////// File : SampleApp.cpp TCHAR* strProgPath = _T("WindowsStart MenuNewTest2k3.exe"); TCHAR* strSCPath = _T("WindowsStart MenuNewTest2k3.lnk"); BOOL bCreateShCut = ::SHCreateShortcut((LPTSTR)(LPCTSTR)strSCPath, (LPTSTR)(LPCTSTR)strProgPath); /////////////////////////////////////////////////////////////////////////////////// I have an existing application NewTest2k3.exe which is placed in the Start Menu folder. In the SampleApp application, I am trying to create a shortcut to the NewTest2k3.exe and place it in Start Menu folder. I have created a shortcut to the SampleApp application and placed it in the StartUp folder. So, when the device is powered on, and if the SampleApp runs in the background, it should be able to create a shortcut to NewTest2K3 application in the Start Menu folder, which its not. I have also tried to place the shortcuts for Calendar.exe and other predefined applications like Calculator, IE and Contacts. Everytime, it works well with the Calendar program but doesn't work with the remaining applications. Is there any specific sequence that the application and the shortcut have to be placed? Or is it anything related to signing the application? My application is signed with the default certificate that is obtained on installing SmartPhone 2003 SDK. Once again thanks for the response. Regards, Chaitanya.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now