c++ - Executing a program on PocketPC Today Items doesn't work -


i have following problem. using dll add new menu item today item list on pocketpc 2002. have tested written dll on windows mobile 6.5.3 works on there.

on pocketpc path contains space , guess don't escape string right. consider following snippet problem occurs:

        char commandline[100];         strcpy(commandline, "\\sdmmc disk\\test\\test.exe");         startupinfo si = { sizeof(si) };         int len;         int slength = (int)strlen(commandline) + 1;         len = multibytetowidechar(cp_acp, 0, commandline, slength, 0, 0);          wchar_t* buf = new wchar_t[len];         multibytetowidechar(cp_acp, 0, commandline, slength, buf, len);          process_information pinfo;         ::createprocess(buf, buf, null, null, false, 0, null, null, &si, &pinfo);  

now trying escape path executable this:

strcpy(commandline, "\"\\sdmmc disk\\test\\test.exe""); 

but unfortunately not work. did escape string in wrong way?

i'd appreciate help, thank you.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -