Mfcer__
November 17th, 2003, 04:21 AM
this code don't work under Win98/ Please Help me!
SHELLEXECUTEINFOW SHExecInfo;
ZeroMemory(&SHExecInfo, sizeof(SHExecInfo));
WCHAR str[MAX_PATH],str1[MAX_PATH];
ConvertAnsiToWide(str,szPathProgramm,MAX_PATH);
MessageBoxW(0,str,0,0);
SHExecInfo.cbSize = sizeof(SHExecInfo);
SHExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
SHExecInfo.nShow = SW_SHOWNORMAL;
SHExecInfo.lpFile = str;
ConvertAnsiToWide(str1,">res.txt",MAX_PATH);
MessageBoxW(0,str1,0,0);
SHExecInfo.lpParameters = str1; //Parameters don't work
if(!ShellExecuteExW(&SHExecInfo)) {
MessageBox(0L,"Error",0,MB_OK);
return;
}
:(
SHELLEXECUTEINFOW SHExecInfo;
ZeroMemory(&SHExecInfo, sizeof(SHExecInfo));
WCHAR str[MAX_PATH],str1[MAX_PATH];
ConvertAnsiToWide(str,szPathProgramm,MAX_PATH);
MessageBoxW(0,str,0,0);
SHExecInfo.cbSize = sizeof(SHExecInfo);
SHExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
SHExecInfo.nShow = SW_SHOWNORMAL;
SHExecInfo.lpFile = str;
ConvertAnsiToWide(str1,">res.txt",MAX_PATH);
MessageBoxW(0,str1,0,0);
SHExecInfo.lpParameters = str1; //Parameters don't work
if(!ShellExecuteExW(&SHExecInfo)) {
MessageBox(0L,"Error",0,MB_OK);
return;
}
:(