?
Solved

From Pascal to Delphi

Posted on 2003-03-10
5
Medium Priority
?
268 Views
Last Modified: 2010-04-04
Hi,

I'm porting programs written in pascal to delphi 1.

In one program, TextColor procedure is been used which is defined in 'crt' library.
But, the same procedure is not defined in 'WinCrt', which I've defined to run in Delphi. So, i'm getting error in 'TextColor'. This is the same case for other procedures like TextBackground, TextMode etc.

Please tell me how can I solve this problem.

Thanks,

Suresh
0
Comment
Question by:SureshC
[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
5 Comments
 
LVL 21

Expert Comment

by:ziolko
ID: 8109096
Some Delphi controls has Canvas property, this property is used for drawing. But some Pascal properties are renamed, TextColor is Canvas.Font.Color. When You start new project in Delphi You can draw anything You want on Your form like this:
  Canvas.Font.Color:=clRed;
  Canvas.TextOut(20,20,'drawing in delphi is piece of cake!');
  Canvas.Pen.Color:=clBlue;
  Canvas.LineTo(100,100);
  Canvas.Brush.Color:=clGreen;
  Canvas.Ellipse(140,140,80,180);

ziolko.
0
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 200 total points
ID: 8124739
0
 

Expert Comment

by:CleanupPing
ID: 9316847
SureshC:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 10095812
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
http://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: DragonSlayer

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

...Snehanshu
EE Cleanup Volunteer
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

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…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

762 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