Message-ID: <3600A9DB.EAA61280@mailexcite.com> Date: Thu, 17 Sep 1998 02:19:08 -0400 From: Doug Gale MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and windows? References: <6shli3$ke4$1 AT news DOT cin DOT net> <35F6C16C DOT 1AF8 AT cableol DOT co DOT uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: oshawappp23.idirect.com Organization: "Usenet User" Lines: 49 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Allens wrote: > GaurdianRox wrote: > > > > Is it possible to program windows in djgpp? If so, where can I get a good > > FAQ or tutorial on moving from DOS programming to windows? > > Easy and highly recomended answer, no, get lcc-win32 for c only windows > programming. Proper answer, you could get RSXNTDJ from the place you > got djgpp, but it is incompatible with gcc 2.8.1, without some really > complicated instructions which don't work for me and a lot of others. > Also, get a book for learning windows, as it is a big move. > > Recomended: > Windows 95 programming in c and c++ by Herbert Schildt > > Peter Allen Hmmm. Bashing RSXNTDJ a teensy weensy bit? I got it, and so far have built Winsock apps (FTP download, SMTP mail send, POP3 mail receive), OpenGL program (I've learned enough to load models, control rendering detail, and fly around the scene, and with 3dfx OpenGL drivers, it would scream out polygons!), a couple of half-done tray utilities... There were two parts that weren't easy though, I will admit. Getting the tools and build environment from microsoft, 12MB + 5MB of downloading I think, but allowed me to use the real headers (a patch is included that patches the headers because of a few declaration styles differ between MS C and GNU C). Since I have installed it, I can switch back and forth between DOS code and Win32 code by swapping ld.exe and djgpp.env (I do it with a batch file). Also, you don't HAVE to make true "windows" programs, you can call winsock, or opengl, or almost any API from what they call "console" win32 apps. It looks like a DOS window, but it is true Win32 code. You can still use printf(), scanf(), and all that fun standard C stuff without going nuts learning about messages, window handles, DC contexts, RegisterClass(), BeginPaint(), BitBlts, and all that other fun GDI and window class stuff. I'm pretty sure you can call DirectDraw (Direct3D, DirectEverythingElse) from a console app too. (Accessing COM objects (like DirectX) does require some singing and dancing in your program to initialize everything, so, be warned) Oh yeah...I use rsxntdj with gcc 2.8.1 and haven't noticed the 'incompatibility' you are talking about. Doug Gale