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
Solved

RTF format showing in my program...

Posted on 2003-12-08
6
219 Views
Last Modified: 2010-04-01
Hi,

I need to know how to make a program, witch could show text and PICTURES like MS Word. I need to be able to write something in Word then copy it and paste into my program. I know that rtf can be shown using rich edit, but it doesnt show pictures... Any suggestions?

Thanx for reading...
0
Comment
Question by:MatriX
  • 3
  • 2
6 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9902269
Use CRichEditCtrl or CRichEditView. You can use Paste Special to insert any type of insertable objects into rich edit control.
Check out WORDPAD MFC sample.
0
 

Author Comment

by:MatriX
ID: 9910048
Hmm, you should know, that i'm only a beginer in windows programming with only OOP and i dont know how to use that CRichEditCtrl. I'm using VC++ 6 and when i try to use that CRichEditCtrl my program just doesnt work; it compiles but doesnt appera when i run it. I am using class CRichEditCtrl on Rich Edit field, maybe thats my problem... And right now i cant find that WORDPAD example... Please help!
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9910194
1) 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.

2) Type WORDPAD in MSDN index and open topic WORDPAD sample (MFC).
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 400 total points
ID: 9910196
I mean: Type WORDPAD in MSDN Library index.
0
 

Author Comment

by:MatriX
ID: 9910387
Hmm, thanx for help... i now have an example which does what i want. Unfortunately it does a lot more... :( and i'm not that experienced that i could find what i need easily... U know, i'm only 17 years old... Hmm, any help on how to get what i need from it and throw out all those other nonsences?
BTW, i need only to be able to show all those things that that wordpad shows. It would be great to be able to show it in dialog box in some object... And those editing things... Well, maybe i could use those, but it may be too hard for me :(
I'm creating a program which could show text like that wordpad does, but in one part or maybe version of my program i need only to show it, and in the other, maybe, edit it... also i'll need saving and loading, but i hope that that wont be too hard, i hope...
well, thatnx for your help again, any more help on how to extract the things i need from it? :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

840 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