Solved

Rich Edit Control Crashes dialog before it's shown

Posted on 2006-07-13
1
735 Views
Last Modified: 2013-11-13
I'm having a problem using RichEdit 2.0 controls in a MFC dialog application. I'm using MSVC++.NET.
Whenever there's a RichEdit 2.0 control in my main dialog, the dialog fails to show up (probably because OnInitDialog fails).

Anybody know how to properly create this control?
0
Comment
Question by:RageDBL
1 Comment
 
LVL 7

Accepted Solution

by:
yotamsher earned 250 total points
ID: 17103472
this problem is old and very anoying

you need to add the following line:

AfxInitRichEdit();

before you try to show the dialog

here is MS reference:
http://support.microsoft.com/kb/q166132/

Yotam
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
thread-safe code in c++ 2 72
wordsWithout 49 80
array220 challenge 8 48
Recommendation vb6 to vb.net or others 14 44
This is an explanation of a simple data model to help parse a JSON feed
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.
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 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 …

744 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