change the folder
-
hi am using vc++ mfc and pocket pc6.0. i has 2 file in a same name. 1.windows\paul 2.temp\paul i was used a code shellexecuteex to open files. but it defaultly open windows\paul file. to change the folder, what is the procedure? can anybody help me?
paulraj
-
hi am using vc++ mfc and pocket pc6.0. i has 2 file in a same name. 1.windows\paul 2.temp\paul i was used a code shellexecuteex to open files. but it defaultly open windows\paul file. to change the folder, what is the procedure? can anybody help me?
paulraj
Hi paulraj, Can you share the code you use to call ShellExecuteEx? Windows CE (and hence Windows Mobile) have no concept of a current working directory. So for APIs such as ShellExecuteEx you need to specify the full path to the file you want to display. An exception to this rule is that some APIs will automatically look in the \windows folder if a path is not specified. Are you by chance asking ShellExecuteEx to open "paul" instead of "\temp\paul"? Hope this helps, Christopher Fairbairn Windows Mobile Development blog http://www.christec.co.nz/blog/