Re: Print of power point file on desktop hangs on WaitforSingleObject
- From: "Someone" <nobody@xxxxxxx>
- Date: Wed, 21 Sep 2005 13:12:36 -0400
This looks like a C++ code, and therefore off topic. However, I noticed
something in your code...
> ShExecInfo.hwnd = NULL;
Try setting this to:
ShExecInfo.hwnd = GetDesktopWindow();
"Rajesh" <rajeshb79@xxxxxxxxx> wrote in message
news:1127272040.626953.70480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I'm trying to print a MS powerpoint file on the desktop and it seems to
> hang on WaitForSingleObject
>
> SHELLEXECUTEINFO ShExecInfo;
> memset(&ShExecInfo,0,sizeof(SHELLEXECUTEINFO));
> ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
> ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_DDEWAIT;
> ShExecInfo.hwnd = NULL;
> ShExecInfo.lpVerb = /*NOXLATE*/_T("print");
> ShExecInfo.lpFile = fileName;
> ShExecInfo.lpParameters = NULL;
> ShExecInfo.lpDirectory = NULL;
> ShExecInfo.nShow = SW_HIDE;
> ShExecInfo.hInstApp = NULL;
> BOOL bRet = FALSE;
> bRet = ShellExecuteEx(&ShExecInfo);
> WaitForSingleObject( ShExecInfo.hProcess, INFINITE );
>
> Any help is appreciated.
>
.
- References:
- Prev by Date: Re: DrawIconEx weirdness under Win2K
- Next by Date: Re: Transparent Checkbox
- Previous by thread: Re: Print of power point file on desktop hangs on WaitforSingleObject
- Index(es):
Relevant Pages
|
Loading