Solved

richedit cotrol

Posted on 2002-03-19
3
225 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 71
Smart Camera scanning and reading information 3 121
zeroMAx challenge 20 126
how to split multiple lines delimiter : 8 119
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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 …
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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