hi
how can i open a .bmp file through c in dos mode directly on the screen.help me with the code please
Printable View
hi
how can i open a .bmp file through c in dos mode directly on the screen.help me with the code please
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 ;)
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.