Solved

Win32 Rich Edit Control Problem

Posted on 1997-09-05
4
355 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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 91
sumHeights  challenge 17 71
Problem to event 3 97
Increment column based of a FK 8 23
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 …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 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