Message-ID: <3A30F667.F161CE76@notifier-is.net> Date: Fri, 08 Dec 2000 09:55:35 -0500 From: david lindauer X-Mailer: Mozilla 4.51 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp Subject: Re: Porting DJGPP DPMI Apps-->Borland C++5.x References: <3A302D69 DOT 8020107 AT home DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: lou-ts14-2.iglou.com X-Original-NNTP-Posting-Host: lou-ts14-2.iglou.com X-Trace: 8 Dec 2000 09:55:02 -0500, lou-ts14-2.iglou.com Lines: 46 X-Original-NNTP-Posting-Host: news-incoming.iglou.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com hi, there are two problems; first is that BC5.02 does not come set up to create 32-bit DOS programs (although you may be able to coerce it). Version 5.5 that is freely available on the borland site probably will not create DOS programs at all. Second is that the borland DPMI setup is Version 1.0 DPMI, whereas all other existing DPMI setups are Version 0.9. I believe there are documents about this on ftp://x2ftp.oulu.fi. Bear in mind that borland implementations pretend they are windows programs; there is a DLL that acts like kernel32 with regards to console mode functions but not GUI functions. Eventually it all boils down to a DPMI call though when the compiler is loaded under DOS. David Russ Magee wrote: > 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