Solved

OnOpenDocument Query

Posted on 1998-03-26
1
246 Views
Last Modified: 2013-11-20
In my CDocument class in OnOpenDocument() how do i specify a default directory and file extension for the files to be shown in the open file dialog box?  

Thanks

Jimbo
0
Comment
Question by:jimbo011697
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 50 total points
ID: 1317244
Use SetCurrentDirecory to set default directory. Extension is termined by your application document association. To change this behavoiur you must override CWinApp::OnFileOpen
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now