delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/08/00:06:48

From: Jack Klein <jackklein AT spamcop DOT net>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: Porting DJGPP DPMI Apps-->Borland C++5.x
Message-ID: <B2kwOui9BIoTRazp+2993RUSZl2p@4ax.com>
References: <3A302D69 DOT 8020107 AT home DOT com>
X-Newsreader: Forte Agent 1.6/32.525
MIME-Version: 1.0
Lines: 36
Date: Fri, 08 Dec 2000 04:52:21 GMT
NNTP-Posting-Host: 12.75.156.41
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 976251141 12.75.156.41 (Fri, 08 Dec 2000 04:52:21 GMT)
NNTP-Posting-Date: Fri, 08 Dec 2000 04:52:21 GMT
Organization: AT&T Worldnet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Thu, 07 Dec 2000 17:38:01 -0700, Russ Magee
<rmageeNO_SPAM AT home DOT com> wrote in comp.os.msdos.djgpp:

> Hi all,
> 
> I'm an Instructional Assistant at my local college who's been asked by
> a prof to evaluate porting a curriculum in systems programming from
> DJGPP to Borland C++ 5.xx (mostly because of better integration with
> Borland's TASM and TDEBUG).
> 
> All the code examples for assignments use DJGPP with the DPMI interface,
> and we're wondering if it's feasible to port these to Borland C. (Students
> will only have to compile DOS apps, no Win32 stuff.)
> 
> Is this going to be a problem? My (limited) understanding is that DPMI is
> just an API for accessing DOS calls from protected mode. What changes,
> visible at the C-language level, will typically have to be made to make
> a DJGPP/DPMI app compile in Borland C?
> 
> Specifically, setting up registers, pointer declarations, data struct size
> limits...
> 
> (This didn't look to be covered in the FAQ; if it was, my apologies for
> missing it. I'm a 68000 hack, this x86 stuff is pretty foreign to me.)
> 
> Thanks,
> -Russ

Why do you assume you need DPMI at all?  You have no need whatsoever
to access DOS calls with BC 5.02.  Just build Win32 console
applications and you can use all of the standard C and C++ library
functions.  There is no need for DPMI.

Jack Klein
-- 
Home: http://jackklein.home.att.net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019