James--
Small example of console application i am using to quick test GDImage in 64-bit unicode mode.
int _tmain(int argc, _TCHAR* argv[]) {
WCHAR sImgName[MAX_PATH] = {0}
BOOL bRet = BOOL(Load_GDIPLUS());
LONG_PTR hGDIplus = zGdipStart();
RegisterGDImageClass(); // GDImage class
RegisterGLImageClass(); // OpenGL class
long nWidth = 0, nHeight = 0;
wcscpy_s(sImgName, L"c:\\travail\\gdimage\\bimbo2.png");
ZI_GetImageSizeFromFile(&sImgName[0], nWidth, nHeight);
HWND hParent = GetForegroundWindow();
HWND hWnd = ZI_CreateWindowFromImage (WS_POPUP, sImgName, 800, 100, hParent, 0, 0, ZD_TOPLEFTCOLOR);
wcout << L"Window is " << (long) hWnd << endl;
if (!IsWindowVisible(hWnd)) {
ZI_SetLayeredAlpha(hWnd, 0);
ShowWindow(hWnd, SW_SHOW);
SetFocus(WasFocus);
for (long K = 0; K < 256; K +=2) {
ZI_SetLayeredAlpha(hWnd, (BYTE) K);
Sleep(1); ZD_DoEvents();
ZI_UpdateWindow(hWnd, 1);
}
ZI_SetLayeredAlpha(hWnd, 255);
}
wcout << endl;
system("pause"); // Halts execution; shows the "Press any key to continue..." prompt
zGdipEnd(hGDIplus);
return 0;
}