Solved

SubClassing CFileDialog

Posted on 1997-03-20
2
387 Views
Last Modified: 2013-11-20
In my application, I need to customize CFileDialog based on FILEOPENORD dialog template, which is an old style dialog ( Windows NT 3.51 ). I also need to modify the dialog template to add a few controls to it. The code is working fine in a test application. But it's failing when I use this CMyFileDialog class in an extended DLL and invoking it from main application. There are no failure messages of Windows or MFC ( e.g. ASSERTions ). When I call DoModal(), no dialog is getting displayed.
Please let me know if you have any idea about this problem.
Thanks,
Rajesh
0
Comment
Question by:rajesh032097
2 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1300188
You'll have to roll up your sleeves and do some debugging: it's  as simple as that. Trace into DoModal() and figure out why it's failing.

Odds are that it's failing because MFC can't find the dialog resource template that you've defined.  Depending on how you're calling your DLL, you might ened to use an AFX_MANAGE_STATE() macro to make sure MFC knows what the module handle is supposed to be so it can properly load the template.

.B ekiM


0
 

Expert Comment

by:test031097
ID: 1300189
What a stupid answer from Mikeblas
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

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

11 Experts available now in Live!

Get 1:1 Help Now