Is there anyway to put or insert a picture in c++ code?

Recommended Answers

All 4 Replies

yes. depends on what operating system, compiler and graphics library you are using. c++ itself doesn't support anythijng like that.

there is no way using windows.h to do it?

Member Avatar for iamthwee

there is no way using windows.h to do it?

There is but it is long winded.

there is no way using windows.h to do it?

One way is to use MFC, which has a picture control that lets you easily attach a picture (*.BMP file) to it. C# probably does too. I don't know how difficult is with plain-jane win32 api functions.

Be a part of the DaniWeb community

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