Page 1 of 1

Folder open dialog

PostPosted: Oct 15, 2004 @ 12:39pm
by MuchaM
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

PostPosted: Oct 15, 2004 @ 1:26pm
by Dan East
Are you linking to aygshell.lib?

Dan East

PostPosted: Oct 15, 2004 @ 1:59pm
by MuchaM
I link Ceshell.lib, but it's the same error after including aygshell.lib.

PostPosted: Oct 15, 2004 @ 2:38pm
by Dan East
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

PostPosted: Oct 15, 2004 @ 3:00pm
by MuchaM

PostPosted: Oct 15, 2004 @ 3:17pm
by Dan East