Solved

SubClassing CFileDialog

Posted on 1997-03-20
2
391 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
[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
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

Independent Software Vendors: 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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

749 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