Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CFileDialog initial directory

Posted on 1999-07-12
1
Medium Priority
?
457 Views
Last Modified: 2013-11-20
hi all,
I implement a CFileDialog, and I want it to be opened in a specific directory. hoe do I do it?
0
Comment
Question by:RanBN
[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
1 Comment
 

Accepted Solution

by:
pau_serra earned 40 total points
ID: 1309595
Before u call DoModal(), set the variable member 'm_ofn.lpstrInitialDir'

ex:
CFileDialog of( TRUE, ".SHP", NULL, OFN_ENABLESIZING|OFN_ALLOWMULTISELECT, "Shape Files (*.shp)|*.shp|All Files (*.*)|*.*||", NULL );
of.m_ofn.lpstrInitialDir = "C:\\ESRI\\DATA\\";

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

670 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