Solved

richedt and win2k

Posted on 2002-07-19
2
142 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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