have code for icon association w/eVb and eVC++...but...
-
this is the code i used in eVC++, in the Windows CE API in the WinMain function, from grattan's, [i]pocket pc development in the enterprise.[/i] SHELLEXECUTEINFO sei; TCHAR tFile[255]; if (lpCmdLine[0]==0) wsprintf(tFile, TEXT("\\ePowerDiagnostic.vb")); else wsprintf(tFile, lpCmdLine); ZeroMemory(&sei, sizeof(sei)); sei.cbSize = sizeof(sei); sei.lpFile = tFile; return ShellExecuteEx(&sei); return 0; supposedly, since the eVB application (project1.vb, [i]ePowerDiagnostic.vb in my case[/i])is "associated with the pvbload.exe, the ShellExecuteEx will load the pvbload.exe file with the project1.vb as a parameter ( just as if we were tapping the project1.vb file from the start menu or programs folder. however, i followed the instruction, imported an icon, and compiled by using the relase suffix and building the project. i copied the lauch app to the device. however, the error msg i keep getting on the pocket pc is " 'ePowerDiagnostic' is not a valid Pocket PC application " I'm not sure where I went wrong.... thx.
-
this is the code i used in eVC++, in the Windows CE API in the WinMain function, from grattan's, [i]pocket pc development in the enterprise.[/i] SHELLEXECUTEINFO sei; TCHAR tFile[255]; if (lpCmdLine[0]==0) wsprintf(tFile, TEXT("\\ePowerDiagnostic.vb")); else wsprintf(tFile, lpCmdLine); ZeroMemory(&sei, sizeof(sei)); sei.cbSize = sizeof(sei); sei.lpFile = tFile; return ShellExecuteEx(&sei); return 0; supposedly, since the eVB application (project1.vb, [i]ePowerDiagnostic.vb in my case[/i])is "associated with the pvbload.exe, the ShellExecuteEx will load the pvbload.exe file with the project1.vb as a parameter ( just as if we were tapping the project1.vb file from the start menu or programs folder. however, i followed the instruction, imported an icon, and compiled by using the relase suffix and building the project. i copied the lauch app to the device. however, the error msg i keep getting on the pocket pc is " 'ePowerDiagnostic' is not a valid Pocket PC application " I'm not sure where I went wrong.... thx.
Check my reply on PPCDN. Also, check the target CPU.