Load a png resource into a CBitMap
- by Rohit Sasikumar
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?