Solved

[MFC] Dialog not Showing

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

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

Title # Comments Views Activity
Using YubiKey with REST API application 2 108
What is Python programming? 3 103
Installed softare without GUID 6 66
MacOS and programming in React 7 28
This is about my first experience with programming Arduino.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

867 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

18 Experts available now in Live!

Get 1:1 Help Now