Results 1 to 3 of 3

Thread: bmp in dos

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    179

    bmp in dos

    hi
    how can i open a .bmp file through c in dos mode directly on the screen.help me with the code please

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    What compiler are you using? If it's DJGPP, you're best off looking at Allegro for the display. MSDN has the file format

    Oh, if it's a 16-bit compiler, I would suggest making the move to 32-bit, since 16-bit segmented (ugh) mode is going to die
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    The short answer is: you can't.

    The GDI graphics engine must be available to translate the BMP into screen pixel values. A Console window (DOS mode) does not provide access to GDI.

    What are you trying to do? Open a BMP on an old 386 DOS machine?

    Plus, Parskie is right - you need windowing support.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width