Solved

[MFC] Dialog not Showing

Posted on 2004-04-24
3
226 Views
Last Modified: 2011-09-20
All~~

This is driving me nuts for a day now...
A have an extension DLL which contains several dialogs. The first dialog I wrote and tested worked just fine.
I have inserted now a second (modal) dialog but for some reason beyond my comprehension (hence this post) it won't show up.
The return value of DoModal is of course -1, but I can't find additional information about this.
I've checked and double checked the resource identifiers and also did the trick of changing the resource handle at dialog construction but nothing 'appens.

I am really, really annoyed by this. One dialog shows up and the other one wont. Basically, there is NO difference between the two.

Any ideas anybody???

~~Razvan
0
Comment
Question by:Nosfedra
3 Comments
 
LVL 3

Author Comment

by:Nosfedra
ID: 10906828
Oh, for God's Sakes!

I got it... In the second dialog I was using a rich-edit control which failed to be created. After forcing the cryptic "No Fail Create" flag of the dialog I discovered the problem.

After placing in the dialog constructor the AfxInitRichEdit() call things FINALLY started moving.

The weird thing though is that the MSDN states on AfxInitRichEdit() :
<<If you use rich edit via CRichEditCtrl, CRichEditView, or CRichEditDoc, you don't need to call this function.>>

Things seem to be different when using an Extension DLL... Or am I missing something?

Thanks anyway to anybody who read this post and thought about it.
~~Razvan
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 11135691
PAQed, with points refunded (250)

Computer101
E-E Admin
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mapAB Challlenge 35 144
word0 challenge 4 68
move one pixel 4 67
Is doing tutor.com teaching in my situation advisable? 2 87
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

770 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