From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: help... Date: Thu, 05 Dec 1996 19:33:47 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 48 Message-ID: <32A7941B.55B3@cs.com> References: <32A6CC29 DOT 2773 AT netasia DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp211.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Michael O. C. Tan" DJ-Gateway: from newsgroup comp.os.msdos.djgpp Michael O. C. Tan wrote: > > The problem came when we translated 16bit code to 32 bit... the network > cards we used was 3COM 3C509 and the packet driver was from CRYNWR. > because of the memory addressing scheme of 32 bit protected mode, there > always appear to have a "hang" or discontinuance of the packet driver > send or receive. The group is now planning to shift to either DJGPP, > or Borland C++ (16 or 32 bit mode). But before we make a decision, i > would like to know that is there a way of transforming the crynwr 16 bit > pkt driver into 32 bit mode? next would be, what files do i download in > order to run DJGPP and from what site is it complete? The primary distribution site for DJGPP is . Get the file v2/readme.1st first so you know what you need to download and how to configure DJGPP for your system. If you need a closer ftp site (simtel.net is in the US), go to and look at the list of SimTel mirrors in the Distribution Sites section. Graphics programming in general is far more powerful under DJGPP than Watcom or any other commercial DOS compiler. However, because DJGPP uses protected-mode instead of real mode, you will need to learn a whole new way of accessing hardware. The DJGPP Frequently Asked Questions list (v2/faq202b.zip) has an extensive section on the various pitfalls of translating 16-bit code to 32-bit; look specifically in chapters 10, 17, and 18 for most of the answers. For extensive tutorials on graphics programming under DJGPP, visit the DJGPP Book Project at and follow the links. These resources should give sufficient tips to allow you to translate your packet driver's source code to be 32-bit compatible, but you may need to contact its developers or write new software from scratch. AFAIK there is no way to directly translate real mode programs into DPMI, especially ones that access hardware and/or use interrupts. For any further questions, feel free to ask here on the newsgroup. :) Good luck! -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Plan: To find ANYONE willing to | http://www.cs.com/fighteer | | play Descent 2 on DWANGO! | Tagline: | ---------------------------------------------------------------------