[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can I load an image (JPG) from a file (not resource) and display it on a CStatic object(picturebox)?

Posted on 2006-11-22
3
Medium Priority
?
438 Views
Last Modified: 2013-11-20
How can I load an image (JPG) from a file (not resource) and display it on a CStatic object(picturebox)?

any help will do. sample code will be a good help.


Thanx
0
Comment
Question by:haroldxious
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
bdunz19 earned 150 total points
ID: 18001284
Hi haroldxious,

In my experience the CImage class is the way to go for all image operations.

Please look at this tutorial as halfway down it describes exactly what you are asking for:

http://www.codeguru.com/cpp/com-tech/atl/graphics/article.php/c3597/

Good luck,
Brandon
0
 
LVL 4

Expert Comment

by:bdunz19
ID: 18372218
Hi Dan,
My solution, as long as haroldxious posted his question correctly, is 100%.

Thanks,
Brandon
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question