#include <atlimage.h>
CImage img; //JPG / JPEG / GIF / PNG 格式的图片
HRESULT ret = img.Load(FileName); // filename 是要加载的文件名(包含路径)
HBITMAP bitmap = img.Detach();
CBitmap bmp;
bmp.Attach(bitmap);
img.Save("c://B.bmp");
img.Detach();
HRESULT ret = img.Load(FileName); // filename 是要加载的文件名(包含路径)
HBITMAP bitmap = img.Detach();
CBitmap bmp;
bmp.Attach(bitmap);
img.Save("c://B.bmp");
img.Detach();