Solved

richedt and win2k

Posted on 2002-07-19
2
144 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
[X]
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
2 Comments
 
LVL 7

Accepted Solution

by:
Cynna earned 50 total points
ID: 7164447
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
ID: 7164483
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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