Home > Archive > Smartphone Developer Forum > March 2006 > Re: on WM5, ShellExecuteEx outputs garbled text on the debug output
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: on WM5, ShellExecuteEx outputs garbled text on the debug output
|
|
|
| The PocketTV Team wrote:
> i noticed that each time i call ShellExecuteEx, this routine outputs some
> garbled text on the debug output.
>
> the garbled text looks mostly like small squares (i.e. undefined glyphes),
> and there is bout 80 characters.
>
> for example, this happens when executing the following snipplet. in my test
> case, the file \\test_file.html, therefore PIE displays an error "Alert -
> page cannot be found", which is normal. what is not normal is the garbled
> output.
>
> and yes, i am 100% certain that it is ShellExecuteEx (or something that it
> calls) that causes this garbled output, since i have put breakpoints at the
> entrance of all my window procedures just before calling ShellExecuteEx, so
> none of my code executes and could cause the garbled output.
>
> here is the sniplet that i use:
>
> {
> BOOL yes;
> SHELLEXECUTEINFO exec_info = {0};
> exec_info.cbSize = sizeof exec_info;
> exec_info.fMask = SEE_MASK_NOCLOSEPROCESS;
> exec_info.hwnd = hWnd;
> exec_info.lpVerb = TEXT("open");
> exec_info.lpFile = TEXT(\\test_file.html);
>
> yes = ShellExecuteEx(&exec_info);
> }
>
> the garbled text occurs with the WM5 Smartphone emulator image (and also
> with Smartphone 2003 emulator image).
>
> With the WM5 Pocket PC emulator image, the same code outputs the following
> strange undocumented message (but no garbage):
>
> OEMIoControl: Unsupported Code 0x1010058 - device 0x0101 func 22
>
> So maybe the garbled text is somehow related to this "OEMIoControl"?
>
>
could be, have you tried using the SEE_MASK_FLAG_NO_UI flag?
riki
----
(when asked how much sleep he'd gotten...)"I'd have to do a 'last' to
find out when I went to bed last night."-- Mike Galluchon, Software
Developer
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
|
|
|
|
|