473,947 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VC++/ Rich Edit Dialog

7 New Member
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 4969
Banfa
9,065 Recognized Expert Moderator Expert
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 New Member
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 Recognized Expert Moderator Expert
Have you added a call to AfxInitRichEdit () in the InitInstance() member of your class derived from CWinApp?
Jul 22 '08 #4
San07
7 New Member
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
1574
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 (click IDC_EDIT) and want to connect a variable to it I can choose between some different choices. So, if I choose to make an int, how can i use this ? I guess there should be some way to simplify using numbers in the box, or am I way off here ?...
1
3785
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
7785
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 had trouble with COMCTL.SBarCtrl in recreating the status bar. Does anyone have any experience with these or know of any website that explaines how to use these? http://www.access-programmers.co.uk/forums/attachment.php?attachmentid=5545 ...
1
1061
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. The executable bulit before reinstallation is still working perfectly now. However, after reinstallation, the executable built now is not working any more. One of the odd thing is this: In a dialog, there are these items: text edit box...
2
3031
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 this: #include "pathname/file"
4
1397
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 box when double clicking on a edit box. I tried using the OnLButtonDblClk, but it does not work when double clicking on the edit box though it does work when double clicking on the form itself. Z.K.
1
2876
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 funtions which i have coded. there is no problem if i worked only with the dialog box. but when i focussed anyother application and then return to this dialog and then focus any edit box say second then its focus function should be called no....
16
11153
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 know one way or the other whether that was true or not, or could point me to an article or help text that would. What I have seen so far online and in Access 2007 help seems to confirm the above. But that (or at least (b)) seems incredible that it...
2
5270
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" ?? other control works OK.
0
10164
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10694
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9895
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6118
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6336
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4948
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.