?
Solved

richedt and win2k

Posted on 2002-07-19
2
Medium Priority
?
147 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 150 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month15 days, 18 hours left to enroll

850 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