Solved

richedt and win2k

Posted on 2002-07-19
2
138 Views
Last Modified: 2013-11-22
I've written a program with delphi5.
It uses a richedit (property plaintext=false) to view and edit a rich text format file.
When running this program on w95 or w98 or wMe there's no problem. Running the program however on win2k or winXp then richedit shows all the formating codes and not the formatted text.
The program was originaly build on w98.
Rebuilding on win2k gives the same results.

What is the reason for this behavior and what can i do ?
0
Comment
Question by:Ben_Schonenberg
2 Comments
 
LVL 7

Accepted Solution

by:
Cynna earned 50 total points
Comment Utility
Ben,

I think the problem is different dlls that richedit control uses in Win2K/XP. So, if you're using rtf file produced with one (earlier) rtf spec, it is interpreted on Win2K/XP with different (recent) rtf standard.

There is no real solution for this, but, as a workaround, you might try to copy richedit dll from Win98 to your application folder on Win2K/XP machine.  Search for riched*.dll in a system folder on your Win98 machine - I think it is richedit32.dll, but I'm not quite sure...This should override the use of recent RE dlls shipped with Win2K/XP for your application.
0
 

Author Comment

by:Ben_Schonenberg
Comment Utility
I didn't replace the dll, but opened a new file.
after saving this file, i opend it again and how nice then text was correctly formatted, even on w98 en w95 machines the text in the new file showed correctly formatted.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now