Solved

FileOpen/folder browsing dialog with WinCE.

Posted on 2004-09-20
14
900 Views
Last Modified: 2013-12-27
I am building a configuration app for PocketPC 2003 using WTL for WinCE.  One phase of my configuration is to associate/dissociate other applications with my own.  I am currently using the CFileOpen common dialog box, but in WinCE, this only allows me to browse certain folders, and not anywhere that .exe files are located.  This pretty much renders the CFileOpen dialog useless to me.

I have also tried to use the system GetOpenFileName() system call using the OPENFILENAME structure filled in, but this also is not working.

I would imagine that this is a common problem, does anyone know a solution?  How does one accomplish a full file-browsing dialog in WinCe?
0
Comment
Question by:halfinfinite
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
  • 3
14 Comments
 

Author Comment

by:halfinfinite
ID: 12106798
I tried the following:

CFileDialog dlg(TRUE, _T("exe"), NULL,
      OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST,
      _T("Applications\0*.exe\0All Files\0*.*\0"), this->m_hWnd);

if (dlg.DoModal()==IDOK)
{
      m_szAppName = (CString) dlg.m_szFileTitle;
 
      DoDataExchange(FALSE);
};

I tried to use the OpenFileName common dialog, but I cannot get it to work...OpenFileName is undefined, nor can I find it in commdlg.h.

0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12106842
evc or c++ .net
0
On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

 
LVL 48

Expert Comment

by:Mikal613
ID: 12106911
0
 

Author Comment

by:halfinfinite
ID: 12107021
I am using evc++ 4.0

I will also check out the codeguru link....thanks.
0
 
LVL 23

Expert Comment

by:chensu
ID: 12107597
What exactly is the symptom? What is your Windows Explorer setting (menu View/Options)?
0
 

Author Comment

by:halfinfinite
ID: 12115772
Hello-

The symptom is that the CFileDialog only permits browsing from the "My Documents" level on my WinCE device.  I need to be able to browse from the root, and cannot see any way of setting this dialog to do so.  
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12115937
take a look at this:

Its free

http://tillanosoft.com/ce/tgetfile.html
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 250 total points
ID: 12115945
0
 
LVL 23

Expert Comment

by:chensu
ID: 12116821
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12116864
what should he get from that answer?
0
 
LVL 23

Expert Comment

by:chensu
ID: 12117042
Oops, I guess that would be the same as your answer.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12117063
I saw your code and i even tried it thats what i was asking sorry,,,
0
 

Author Comment

by:halfinfinite
ID: 12117570
Hi, the tillanosoft .dll is the only solution I've found that works.  I'm not sure if I can get the budget to license it though! ;)  But thanks for all your help!

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to setup the internet connectivity on Windows Mobile Emulator.   I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studi…
When I was a beginner in Windows Mobile programming, even for small test I used to create a single MFC dialog-based application with one button, and put my test code in the OnLButtonDown method. For Pocket PC it worked fine, on some Windows CE d…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question