Solved

[MFC] Dialog not Showing

Posted on 2004-04-24
3
231 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
[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
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

Technology Partners: 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

In this post we will learn different types of Android Layout and some basics of an Android App.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

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