Hi Jose
Where can I download GDIPlus_Simple.inc and other GDIPlus includes ?
Many Thanks
My own, from 2002, is still available on the PowerBASIC forum here
https://forum.powerbasic.com/forum/user-to-user-discussions/source-code/24211-gdiplus-inc-for-pb-win-part-1
Note: I do have also a procedural version to work in C++ 64-bit (and full UNICODE), that is calling directly the core Flat API, using LoadLibrary and GetProcAddress like this
HMODULE gdiplib() {
static HMODULE hGdip;
if (hGdip == 0) { hGdip = LoadLibrary(L"GDIPLUS"); }
return hGdip;
}
long Load_GDIPLUS() {
long nRet = 0;
if (gdiplib()) { nRet = -1; }
return nRet;
}
long GdiplusStart(OUT LONG_PTR &hGDIplus, GdiplusStartupInput &inputbuf, IN LONG_PTR outputbuf) {
long nRet = -1; // Error
HMODULE hModule = gdiplib();
if (hModule) {
long_proc(LONG_PTR*, GdiplusStartupInput*, LONG_PTR);
zProc hPROC = (zProc)GetProcAddress(hModule, "GdiplusStartup");
if (hPROC) {
nRet = hPROC(&hGDIplus, &inputbuf, outputbuf);
}
}
return nRet;
}
long GdiplusShutdown(IN LONG_PTR hGDIplus) {
long nRet = -1; // Error
HMODULE hModule = gdiplib();
if (hModule) {
long_proc(LONG_PTR);
zProc hProc = (zProc)GetProcAddress(hModule, "GdiplusShutdown");
if (hProc) { nRet = hProc(hGDIplus); }
}
return nRet;
}
...
The C++ FLAT API version is here:
http://www.objreader.com/index.php?topic=72.msg312#msg312
...
Many Thanks Patrice