This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Folder open dialog


Folder open dialog

Postby MuchaM » Oct 15, 2004 @ 12:39pm

Hi,
I'm using eVC++ 4.0 with SP4.0 and the Pocket PC 2003 SDK. I need to create a dialog to chose from the tree a folder like the standard dialog used in file explorer, but only for folders. I tried to use SHBrowseForFolder function, but get the error:

error LNK2019: unresolved external symbol __imp__SHBrowseForFolder referenced in function "protected: void __thiscall CScanerDlg::OnButton1(void)" (?OnButton1@CScanerDlg@@IAEXXZ)

This function is described in Pocket PC 2003 SDK. The requirements are:
OS Versions: Windows CE .NET 4.0 and later.
As far as I know the WM 2003 Snd is based on os 4.21.

Is anyone help me with this?
Thanks,

MuchaM
MuchaM
pm Member
 
Posts: 3
Joined: Oct 15, 2004 @ 12:29pm


Postby Dan East » Oct 15, 2004 @ 1:26pm

Are you linking to aygshell.lib?

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby MuchaM » Oct 15, 2004 @ 1:59pm

I link Ceshell.lib, but it's the same error after including aygshell.lib.
MuchaM
pm Member
 
Posts: 3
Joined: Oct 15, 2004 @ 12:29pm


Postby Dan East » Oct 15, 2004 @ 2:38pm

The PPC 2002 SDK does not list that function. So either someone goofed and documented an API that actually isn't supported (which I've seen happen a few times over the years), or you are using a slightly older SDK than what is required.

Also, assuming that SHBrowseForFolder behaves similarly to GetOpenFileName, then the user will be restricted to the My Documents folder, which may not be useful to you in the first place.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby MuchaM » Oct 15, 2004 @ 3:00pm

MuchaM
pm Member
 
Posts: 3
Joined: Oct 15, 2004 @ 12:29pm


Postby Dan East » Oct 15, 2004 @ 3:17pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum