• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 693
  • Last Modified:

compile TP 7.0 DOS code in TPW 1.5

Is there any way to compile a program written using TP DOS 7.0 graphic functions in TPW 1.5 and have it work just as it would in TP DOS 7.0?
0
delocke
Asked:
delocke
  • 2
1 Solution
 
mitchell042997Commented:
I am not familiar with TPW, but I have had experience with Visaul C++, both, if I am not mistaken about TPW are for programming in Windows.  You can translate your code into TPW code, changing some numbers and values for the given mapping mode you're using in TPW.  You cannot directly port in your code from TP DOS into TPW and expect it to work (assuming TPW is indeed strictly Window's Programming).  Windows using its own device drivers for graphics, they are fairly powerful, so get to know them, or translate your old stuff into TPW code...  I would highly recommend the former suggestion over the latter.
0
 
delockeAuthor Commented:
i know that you can port text-based code by changing
Uses
CRT

to
uses
WinCRT

but i need to compile graphics functions too, and i don't want to have to learn GDI programming, especially working in Win95 with an environment written for Win3.1
0
 
omsecCommented:
if ya mean the BGI with "graphics function" you can't. Borland's Graphics Interface is not supported under windows. I think it depends what ur program does, so in any case you will find routines in Windows - Units/DLLs that do same but are called diffrent.
0
 
delockeAuthor Commented:
i see . . . too bad.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now