Hi Friends,
I want to display a bitmap image in my C++ program running on Turbo C++ 3.0 (16 bit compiler)...
I'm doing a project on graphic calculator.....My code is nearly complete but I am not able to display a bitmap image......I have got a code

http://www.brackeen.com/home/vga/source/djgpp20/bitmap.c.html But that doesn't give the desired output nor any error....Please help me out

Recommended Answers

All 4 Replies

That program is meant to be compiled with DJGPP. Use the version meant to compile with Borland compilers: http://www.brackeen.com/home/vga/source/bc31/bitmap.c.html

Better yet, stop using such an old compiler and get Dev-C++ and install the SDL (which has built-in support for .BMP files, and with SDL_Image supports .pngs, .jpegs, .tiffs, and many others).

That program is meant to be compiled with DJGPP. Use the version meant to compile with Borland compilers: http://www.brackeen.com/home/vga/source/bc31/bitmap.c.html

Better yet, stop using such an old compiler and get Dev-C++ and install the SDL (which has built-in support for .BMP files, and with SDL_Image supports .pngs, .jpegs, .tiffs, and many others).

Separate codes aregiven for DJGPP
http://www.brackeen.com/home/vga/source/djgpp20/bitmap.c.html

and Turbo C

http://www.brackeen.com/home/vga/source/bc31/bitmap.c.html

I realize that, but I thought you didn't, because you said

I want to display a bitmap image in my C++ program running on Turbo C++ 3.0 (16 bit compiler)...

and linked to the DJGPP version.

Does the Borland version work?

I realize that, but I thought you didn't, because you said

and linked to the DJGPP version.

Does the Borland version work?

Oh sorry for that! Yeah the version worked but showed no output<<

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.