Solved

Rich Edit Control Crashes dialog before it's shown

Posted on 2006-07-13
1
741 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …

828 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