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
433 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
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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 65
Replacement selected text 2 62
Whole sheet autoscrub still needed 19 51
Change to event 1 115
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

825 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