Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Rich Edit Control Crashes dialog before it's shown

Posted on 2006-07-13
1
Medium Priority
?
746 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
[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
1 Comment
 
LVL 7

Accepted Solution

by:
yotamsher earned 1000 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

Industry Leaders: 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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day 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 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…

688 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