Thread: Borland 5.5 - Graphics??

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    28

    Borland 5.5 - Graphics??

    Hi

    Does anybody know how to use graphics in borland c++ 5.5, I just want to get to screen 13h but most examples on the web don't seem to work!

    Thanks...
    ...

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Mode13


    int main()
    {

    //Set up mode13 graphics mode
    asm mov ax, 13h;
    asm int 10h;

    //Return to text mode
    asm mov ax, 03h;
    asm int 10h;

    return 0;
    }


    You cannot use the Win32 compiler to compile this code, use the DOS compiler (bcc -ml 'filename'), or select DOS (standard) under TARGETEXPERT - PLATFORM.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Turtle Graphics, how does it work?
    By freddyvorhees in forum C++ Programming
    Replies: 15
    Last Post: 08-28-2009, 09:57 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 05:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM