I believe that is for backwards compatibility (this is how GetOpenFileName |
Peter Foot posted on Monday, April 21, 2008 6:37 AM
|
I believe that is for backwards compatibility (this is how GetOpenFileName
works on Pocket PC/Professional edition). If you use GetOpenFileNameEx
directly you can specify an initial directory.
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility |
 |
|
GetOpenFileName bug on WM 6.1 Standard (Smartphone) |
Fabien posted on Monday, April 21, 2008 9:45 PM
|
Hi,
It is not a bug, chack out this for a workaround :
http://tillanosoft.com/ce/tgfsdk.html
BR
Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/
ne
C |
 |
|
what do you mean, Peter? |
The PocketTV Team posted on Monday, April 21, 2008 11:29 PM
|
what do you mean, Peter?
on Pocket PC/Professional edition, GetOpenFileName will take the initial
directory into account.
but does it take it into account? because with GetOpenFileName, we can also
specify an initial directory, and we do that, but it ignores it!
i didn't know that GetOpenFileNameEx had a different behavior, we'll look
into it. but since lpstrInitialDir can be passed to GetOpenFileName, it
would seem logical that it takes it into account, just like it does on
Pocket PC/Professional edition. ideally, also, the file name specified
should be selected if it exists in the folder specified, must that's
probably asking for too much :)
backwards compatibility of GetOpenFileName on Smartphone makes little sense,
since GetOpenFileName was seriously broken (causing application to freeze or
crash) on Smartphones prior to Windows Mobile 6.1. we tried to use it on WM5
and WM6 Smartphones, since we need it, but it was not working, so we had to
use the tGetFile replacement dll instead.
-- |
 |
|
thanks, we have known about this "workaround" for 5 years. |
The PocketTV Team posted on Monday, April 21, 2008 11:32 PM
|
thanks, we have known about this "workaround" for 5 years.
but it is a bug (or a bad feature, if you prefer). GetOpenFileName is
supposed to be now fixed on WM6.1 Smartphones and work just the same as on
Pocket PC.
the problem using tGetFile is that you need to localize it for all the
languages that your application support. GetOpenFileName is of course
already localized by Microsoft.
that's why we prefer using the standard library GetOpenFileName.
--
Hi,
It is not a bug, chack out this for a workaround :
http://tillanosoft.com/ce/tgfsdk.html
BR
Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/ |
 |
|
GetOpenFileName on Pocket PC/Professional does not fully support |
Peter Foot posted on Tuesday, April 22, 2008 4:45 AM
|
GetOpenFileName on Pocket PC/Professional does not fully support
InitialDirectory. It does not accept paths outside of My Documents, and you
can only specify subfolders of My Documents (or I believe first level
folders of a storage card) for example "My Pictures" rather than "\\My
Documents\\My Pictures".
GetOpenFileNameEx on both Smartphone/Standard and Pocket PC/Professional
fully supports any path for the initial directory.
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility |
 |
|
GetOpenFileName bug on WM 6.1 Standard (Smartphone) |
The PocketTV Team posted on Wednesday, April 23, 2008 4:42 AM
|
well, yes, it accepts only folders that can be browsed with the
GetOpenFileName dialog, i.e. My Documents or first level of storage card.
and in that case, it does open the right folder upon dialog start-up.
i was just expecting the Smartphone version to do the same :)
ok, good to know, thanks for the explanation and clarification!
do you know in what version of Windows Mobile this GetOpenFileNameEx
appeared, and more importantly, in what version of Windows Mobile Standard
this GetOpenFileNameEx works?
i.e. we know that GetOpenFileName is completely broken on Windows Mobile
Standard before 6.1, but is it the same for GetOpenFileNameEx?
-tristan |
 |
|
GetOpenFileNameEx is implemented in all editions of Windows Mobile 5. |
Peter Foot posted on Wednesday, April 23, 2008 11:30 AM
|
GetOpenFileNameEx is implemented in all editions of Windows Mobile 5.0 and
upwards. Prior to 5.0 AKU 2.0 though the details view does not correctly
size the columns and so it is essentially unusable.
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility |
 |
|
GetOpenFileName bug on WM 6.1 Standard (Smartphone) |
Rick C posted on Wednesday, April 23, 2008 4:57 PM
|
http://msdn2.microsoft.com/en-us/library/ms854142.aspx says
GetOpenFileNameEx is supported as of WinMo 5 for both PPC and Smartphone. |
 |
|
thanks! |
The PocketTV Team posted on Wednesday, April 23, 2008 10:28 PM
|
thanks!
by any chance, does anyone know the WinCE version and build number that
corresponds to 5.0 AKU 2.0?
-t |
 |
|
GetOpenFileName bug on WM 6.1 Standard (Smartphone) |
Christopher Fairbairn posted on Thursday, April 24, 2008 8:02 AM
|
Hi,
You can find a list of AKUs and related build numbers on the Channel 9
Windows Mobile Developer wiki at
http://channel9.msdn.com/wiki/default.aspx/MobileDeveloper.ListOfAKUs
Hope this helps,
Christopher Fairbairn |
 |
|
oh, very useful, thanks! |
The PocketTV Team posted on Tuesday, April 29, 2008 6:29 AM
|
oh, very useful, thanks! |
 |
|