Re: C/C++ equivalent of dos,crt Pascal units

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Dhruba Bandopadhyay wrote:
I am trying to port an old Pascal DOS game to DOS C/C++. I am
wondering if anyone is familar with the dos & crt Pascal units and
whether there are C/C++ equivalent libraries. Maybe dos.c & crt.c?

Below lists names of variables, functions, types & weird interrupt
procedures found in Pascal. Am wondering what can be done to get
around them for use in C/C++.

This is not primarily a Borland Pascal vs. C++ issue. Rather, it's a DOS,
writes directly to screen memory versus Windows issue. Windows does not
permit a program to directly write to screen memory, access I/O ports, issue
interrupts, etc.

You'll need to figure out what the code is doing, and then ask questions
about specific things that you don't know how to do under Windows because
there is no simple substitute or header file that will magically make this
code work outside of DOS.

-cd


.



Relevant Pages

  • Re: Outsmarting DOS C compiler to print to USB printer -- use DOS interrupt?
    ... Every time I go into DOS ... > It occured to me that if I called an interrupt from my DOS program, ... I also assume that you have a Windows driver for the usb printer. ... That will set the dos lpt1: printer hook to the windows usb driver. ...
    (comp.lang.c)
  • Re: how do I do "int86x" in VC 6.0?
    ... can't use the BIOS interrupts like that. ... If you write a DOS program, Windows ... if you could call this interrupt, your program could not be that simple. ...
    (microsoft.public.vc.language)
  • Re: Gates on Win95 and DOOM
    ... says "Don't interrupt me.". ... As someone who installed games on DOS and then ... Windows 95, ... With DOS it could be a pain in the ass. ...
    (comp.sys.mac.advocacy)
  • looking for file access monitor tool (windows)
    ... Back in the DOS days I used to have a tool that hooked an interrupt ... vector and intercepted&logged all file access attempts. ... something like that exists for windows but I haven't been able to ...
    (alt.lang.asm)
  • ~~~~~~~~~~~~~~ FILE NAME ~~~~~~~~~~~~~~
    ... adapter description file file name extension ... apple script to change file names ... batching file name changes in windows ... change short file names in dos ...
    (sci.misc)