?
Solved

richedt and win2k

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month8 days, 22 hours left to enroll

765 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