I am trying to use GDI+ for the first time in C++Builder.
I have a DirectDrawSurface7 that I want to manipulate using GDI+. I created an HDC object that points to the surface and used it to make a graphics object. Everything compiles and links fine. I call the rotate and translate functions and my surface comes back in the same orientation as it would be if I had never called these. Here is the code.
Created default VC++ 6.0 Hello world no MFC app.
Add to StdAfx.h after windows.h
using namespace Gdiplus
Directories changed to MSSDK\include, MSSDK\lib
gdi initialized and so on. Just stupidly took code from MSDN gdi+ example...
c:\sdk\microsoft sdk\include\gdiplusimaging.h(67) : error C2501: 'MIDL_INTERFACE' : missing storage-class or type specifiers
c:\sdk\microsoft sdk\include\gdiplusimaging.h(67) : error C2440: 'initializing' : cannot convert from 'char ' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast