Solved

[MFC] Dialog not Showing

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

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This is about my first experience with programming Arduino.
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 …

737 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