Solved

SubClassing CFileDialog

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how do i create updater to My Activex application? 3 74
has22 challenge 11 71
pre4 challenge 19 88
Fibonacci challenge 11 82
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…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

20 Experts available now in Live!

Get 1:1 Help Now