473,320 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

VC++/ Rich Edit Dialog

7
Hi All,
I don't know whether this is the right place to post my query.

Query:
This is in VC++. I have created a blank Dialog-based project with VC++ 6.0. When I run, I am able to see the Dialog. But If I just Drag & Drop a RichEdit2.0 Control on the Dialog and try to run, its failing.
Is there any specific initialization I need to have for Rich Edit or any project settings?
(It works fine if I drag and drop a static/Edit Controls i.e., a Dialog with a static/edit control is displayed when I run the application )
Jul 22 '08 #1
4 4943
Banfa
9,065 Expert Mod 8TB
its failing
How? It doesn't compile? It crashes when run? It doesn't have the expected behaviour?

Your description of the problem is so lacking in detail that it is almost impossible to tell.

However I would say this, if you are just starting out on this program/C++ programming then ditch MSVC++ 6.0, it is around about a decade old and there have been 3 new versions since it came out (Visual Studio .NET (2003?), Visual Studio 2005 and Visual Studio 2008).

Personally I only use VC++ 6.0 when I have to support projects that where originally written in it (because generally changing compilers is not something you do to a project in support). For everything else I am currently using Visual Studio 2005 and that is only because when we tried to compile the project in Visual Studio 2008, which is supposed to be compatible, it produced non-working executables, upgrade is on our list of things to do when time permits.

Both Visual Studio 2005 and Visual Studio 2008 have versions you can download for free from Microsoft.
Jul 22 '08 #2
San07
7
Following are the steps I followed.

1. Open Visual Studio 2003.
2. Create new project. (Visual C++ -> MFC Application)
3. In the wizard, made the application type as 'Dialog- Based'.
4. If I compile and Run, its shows the Dialog.
5. I Draged & Droped a Rich Edit 2.0 Control.
6. I Built the Proj.
7. If I run the application, Its failing - Its not displaying the Dialog.
Jul 22 '08 #3
Banfa
9,065 Expert Mod 8TB
Have you added a call to AfxInitRichEdit() in the InitInstance() member of your class derived from CWinApp?
Jul 22 '08 #4
San07
7
Hey Its working after calling AfxInitRichEdit() method.
Thanks
Jul 22 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: H | last post by:
Hello, So, can anyone help explaining this to me, or tell where to post to get some help.. In VC++ 6, I can make a dialog, with an edit box in it (call it IDC_EDIT). If I go to the classwizard...
1
by: IkBenHet | last post by:
Hello, I found this script to create a simple rich text form (http://programmabilities.com/xml/index.php?id=17): <html> <head> <title>Rich Text Editor</title> </head> <body>
1
by: PC User | last post by:
I found this Rich Text Editor and I've been trying to recreate it in my own application. I've had trouble with the COMCTL.ImageListCtrl and the COMCTL.Toolbar to recreate the toolbar. And I've...
1
by: Michael Yao | last post by:
I am using VC++6.0 with Visual Fortran 6.6.B. A few weeks ago, I rebuilt my PC and reinstalled the same VC++ and VF. The same codes of the VC++ part built before the reinstallation used to work....
2
by: Susan Baker | last post by:
Hi, I am (trying) to compile some code I downloaded from the internet. The sources contain references to header files - using the form : #include <pathname/file> If I change the form to...
4
by: Z.K. | last post by:
I was wondering if someone could tell me how or point me to an appropriate web page that will show me how to subclass a control in vc++.net 2002. What I want to do is to be able to pop up a dialog...
1
by: pradeeba31 | last post by:
i was given a task in which i have to do the ui part using MFC. im having three editboxes. i used setfocus function for these edit(text boxes). when the user focus this text box it should do some...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
2
by: zhang | last post by:
I create a project (base dialog) just use the mouse ,It can work if I do not add " Rich Edit 2.0 Control". and the dialog diappeard after I add it. why???I can not use "Rich Edit 2.0 Control"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.