2 Replies - 10501 Views - Last Post: 17 July 2012 - 02:48 AM Rate Topic: -----

#1 Salba  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 27-April 12

How to insert images in C++?

Posted 16 July 2012 - 10:33 PM

How can i insert bmp images in turbo c++ without using external libraries? Is there any built in function for it? I need it for my project.
Is This A Good Question/Topic? 0
  • +

Replies To: How to insert images in C++?

#2 jimblumberg  Icon User is offline

  • member icon


Reputation: 3993
  • View blog
  • Posts: 12,323
  • Joined: 25-December 09

Re: How to insert images in C++?

Posted 16 July 2012 - 10:56 PM

I would first recommend that you study the following link. BMP file format. If you don't want to use any external library you will need to first understand the file format.

Jim
Was This Post Helpful? 0
  • +
  • -

#3 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 765
  • View blog
  • Posts: 2,226
  • Joined: 20-March 10

Re: How to insert images in C++?

Posted 17 July 2012 - 02:48 AM

Hi,

You can have a look at my tutorial
Please read all of it carefully.

My Tutorial

Pay particular attention to the

WM_PAINT section

Since you are just wanting to display a bmp
inside a window you can ignore the sections
on printing to a printer and saving to disk.

You are using a very old IDE and compiler
Can I suggest you either switch to

Code::Blocks with the MinGW install or
Pelles C

I would recommend Visual Studio Express with the
Windows 7 sdk but it might be too tricky for you to
Set up.

Thanks

Snoopy

This post has been edited by snoopy11: 17 July 2012 - 02:50 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1