ytod wrote: ShellExecute(GetSafeHwnd(), NULL, csFilePath, "/w", NULL, SW_SHOWNORMAL); Use it this way
CString str;
str.Format("/w %s",lpFileNameToOpen)
then
ShellExecute(GetSafeHwnd(), NULL, csFilePath,str, NULL, SW_SHOWNORMAL);
"I Think this Will Help"
Alok Gupta
visit me at http://www.thisisalok.tk