关于gdi+中image.save的问题!
Bitmap bmp(pdlg->CatchScreen(rc),0);
img = bmp.GetThumbnailImage(bmp.GetWidth(),bmp.GetHeight());
if (!pdlg->GetImageCLSID(L"image/jpeg",&clsid))
{
AfxMessageBox("clsid error!");
return;
}
name.Format("g:/temp%d.jpg",index);
Status sta = img->Save(name.AllocSysString(),&clsid);
有段代码是这样的,拷全屏,然后转为JPG保存在文件中,
但不知道为什么循环执行到第二十六次的时候就会出错,sta= InvalidParameter;
请高手帮忙解决一下!一到二十五次很正常很顺利的!