32bit 16bit compilers

This is a discussion on 32bit 16bit compilers within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Using 16bit compilers its easy to create dos aplications and I can easily draw images to the screen. But with ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    161

    32bit 16bit compilers

    Using 16bit compilers its easy to create dos aplications and I can easily draw images to the screen. But with 32bit compilers (MSVC or GCC) how can I goto full screen and draw images?

    Thanx in advance!

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Well first off we need to get some symantics straight here. MSVC can only do graphics via DirectX. Windows also will not allow MSVC to directly access video hardware or inovoke interrupts. To setup DirectX I recommend buying a book and coding as you go. Andre Lamothe's Tricks of the Windows Game Programming Gurus is a great starting point for learning DirectX programming. MSVC calls DirectX functions via pointers which in turn point to code either in the HAL (hardware abstraction layer) or HEL (hardware emulation layer). The HEL is written by Microsoft and the HAL is written by your video card vendor. Microsoft provides the prototypes and calling conventions and your vendor provides the proprietary code for your video card - ala drivers.

    When you say GCC I assume you mean something like DJGPP or something similar. With DJGPP you can get access to the linear frame buffers via near pointers but you must turn off the protection mechanisms of protected mode to do it correctly. There are a ton of resources on the internet concerning graphics in DJGPP as well as a game library called Allegro and a link to more help on this topic in the DJGPP html help file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  2. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  3. Compilers for Windows
    By LegendsEnd in forum Windows Programming
    Replies: 2
    Last Post: 03-26-2004, 07:03 AM
  4. 32bit -> 16bit color problems
    By Hubas in forum Windows Programming
    Replies: 2
    Last Post: 03-30-2003, 09:14 AM
  5. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 03:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21