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
435 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
bdunz19 earned 50 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

691 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