Solved

Win32 Rich Edit Control Problem

Posted on 1997-09-05
4
357 Views
Last Modified: 2013-11-20
I have problems using the Rich Edit Control under Win32. I use VC5 to create a dialog based MFC application and put the Rich Edit Control onto the dialog. After I execute this app it terminates without any notice. The debugger shows "creation of dialog failed" or something like that. My app has ActiveX support enabled and I tested it also with OLE Automation enabled. I didn't change the dialog resource. I only created a new rich edit control. A simple edit control and the Microsoft ActiveX Rich Edit Control, Version 5.0 works. Where is my failure? Please help.
0
Comment
Question by:Duebel
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
davmarc earned 100 total points
ID: 1305818
Just a wild guess - does it work if you call?

Davide Marcato.
0
 
LVL 4

Expert Comment

by:davmarc
ID: 1305819
...if you call InitCommonControls(), of course :-)

Davide Marcato.
0
 

Author Comment

by:Duebel
ID: 1305820
No, it doesn't work even if I call InitCommonControls. But displaying the rich edit controls isn't longer a problem. I used a edit control as a place holder, grab its styles and size, destroyed the edit control and created a new rich edit control in OnInitDialog. Now the dialog pops up. I can write text but I cannot paste any OLE objects into it. What I'm doing wrong now?
0
 
LVL 4

Expert Comment

by:davmarc
ID: 1305821
Call AfxInitRichEdit() in InitInstance(), probably you forgot this.

Davide Marcato.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand LInux Boot partition remotly 3 96
has22 challenge 11 105
ShiftLeft challenge 21 86
Is there a simple front-end menu system. 9 105
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.

830 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