|
Posted by The PocketTV Team on December 14, 2006, 2:41 am
Please log in for more thread options
show/hide quoted text
> a dirty work-around is to clear the GetLastError error-code immediateky
> before calling GetOpenFileName, and hope it will be set to a non-zero
> value by GetOpenFileName only if a real error occurs in GetOpenFileName.
actually this does not even work: GetOpenFileName sets GetLastError to 6
(Invalid Handle) on a WM5 Smartphone (Samsung Blackjack) when the dialog is
cancelled using the BACK key.
so it looks like there is no way to correctly detect the error case...
|
> before calling GetOpenFileName, and hope it will be set to a non-zero
> value by GetOpenFileName only if a real error occurs in GetOpenFileName.