Original Post
I'm using GDI+ and I'm trying to call DrawImage() with ImageAttributes, this is what my call looks like:
grx.DrawImage(ImgIter->second.pImage, (Gdiplus::RectF*)&rc, ImgIter->second.XPos,ImgIter->second.YPos, ImgIter->second.Width, ImgIter->second.Height, Gdiplus::UnitPixel, &ia);
I get this error:
error C2664: 'Gdiplus::Status Gdiplus::Graphics::DrawImage(Gdiplus::Image *,Gdiplus::REAL,Gdiplus::REAL,Gdiplus::REAL,Gdiplus::REAL,Gdiplus::REAL,Gdiplus::REAL,Gdiplus::Unit)' : cannot convert parameter 2 from 'Gdiplus::RectF *' to 'Gdiplus::REAL'
As you can see the compiler is calling the version with almost all Reals as params, but thats not what I'm passing to the function. I tried explicitly naming (casting to themselves) the parameters, but still nothing. What could be causing this?