We tested it under Windows 2003 server, Windows Xp and Windows 7 so far and it seems to work ok.
We added a small check inside the image.c code, to see if the windows version running is a server OS or not.
Inside the HMG_LoadPicture function we added the following:
1) at Line 221:
Code: Select all
OSVERSIONINFOEX osvi;
GetVersionEx((LPOSVERSIONINFO )&osvi);
Code: Select all
if (osvi.wProductType == VER_NT_SERVER)
{
hBitmap_New = bt_bmp_create_24bpp (New_Width, New_Height);
}
else
{
hBitmap_New = CreateCompatibleBitmap (hDC, New_Width, New_Height);
}
We will keep testing it in our application and in case we notice something we will post in the forums.
I hope it will be useful to someone else maybe who had the same or a similar problem.
Once more thanks again to everyone for their help.
Update: The problem still persists when we build the libraries with ANSI. The above solution doesn't work.
If we build the libraries with UNICODE there is no problem at all.