Solved

[MFC] Dialog not Showing

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now