Load a png resource into a CBitMap
Posted
by Rohit Sasikumar
on Stack Overflow
See other posts from Stack Overflow
or by Rohit Sasikumar
Published on 2010-06-09T12:18:54Z
Indexed on
2010/06/09
12:22 UTC
Read the original article
Hit count: 641
mfc
How do i load a png resource into a CBitMap? When i try this it doesnt work.
CImage image;
image.LoadFromResource(AfxGetInstanceHandle(), IDB_PNG1);
bitmap.Attach(image.Detach());
It gives me an error resource type not found. Is there any other way to load a PNG resource?
© Stack Overflow or respective owner