Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
Mobile Apps GroupsView
Pocketpc
Pocketpc Activesync
Pocketpc Developer
Pocketpc Phone_Edition
Windowsce App Development
Windowsce Embedded
Windowsce Platbuilder

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Apps
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft Pocketpc Developer Posts  Ask A New Question 

GetOpenFileName bug on WM 6.1 Standard (Smartphone)

The PocketTV Team posted on Thursday, April 17, 2008 9:43 PM

it's a good thing that now GetOpenFileName works on Smartphones (it was
completely broken on Smartphone until WM 6.1).

however there is an ennoying bug: when lpstrInitialDir is specified in the
OPENFILENAME structure, GetOpenFileName should open the specified folder.

on WM 6.1 Smartphones, it seems to open always the "\My Documents" folder,
even when lpstrInitialDir is set to "\Storage Card", for example.

this is particularly ennoying when the files to open are located on a
Storage Card.  it requires navication by the user, i.e. Menu, select

Microsoft people (or MVP), please log a bug report on this. we hope this one
will be fixed so that the Smartphone version works as well as the Pocket PC
(WM Professional) version.

thanks!
reply

 

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
reply

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
reply

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.

--
reply

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/
reply

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
reply

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
reply

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
reply

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.
reply

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
reply

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
reply

oh, very useful, thanks!

The PocketTV Team posted on Tuesday, April 29, 2008 6:29 AM

oh, very useful, thanks!
reply

 
 

Previous Microsoft Pocketpc Developer conversation.