Solved

richedit cotrol

Posted on 2002-03-19
3
227 Views
Last Modified: 2013-11-20
i use win xp and visual c++6.0.whenever i place a richedit control and try to execute,my exe does not get
executed,but i get no compilation erroe.
at the same time the same project with the richedit control executes fine under win 98.

what is the problem?should i register any .ocx control or it is the error of xp.

help me.
0
Comment
Question by:mimd
[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 23

Expert Comment

by:Roshan Davis
ID: 6881969
From MSDN

"Important:-   If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program’s InitInstance member function. You do not need to call it for each time you display the dialog box, only the first time. You do not have to call AfxInitRichEdit if you are working with CRichEditView."


Roshmon
0
 
LVL 30

Accepted Solution

by:
SteveGTR earned 100 total points
ID: 6882535
Be sure to check the return value of AfxInitRichEdit(). A value of FALSE indicates that the RICHED32.DLL could not be loaded.

if (!AfxInitRichEdit())
  {
  // RichEdit controls did not initialize!
  }

Good Luck,
Steve
0
 

Author Comment

by:mimd
ID: 6887592
thank you it worked for me.
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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

728 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