I am trying to use gsdll32.dll in cmd (DOS) to "print" a ps to a bmp. if i use a too high dpi (like 200) i get the gdi error out of resources insufficent memory, when i use 75 dpi it works nice. This only happens on windows 2000 (maybe also lower but i am not interested on it), on xp vista and 2008 it does work properly. i already tried to change the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems\windows key so sharedsession has a higher value (the 3., and 4. value i changed). If I compile it as an windows application, and not a commandline application i get a color error but it does work...
I already changed it, my process uses only 50 handles, the problem is the size of the handle: Your link brought me to http://msdn.microsoft.com/en-us/library/ms532305(VS.85).aspx where it says: Windows 95/98/Me: The created bitmap cannot exceed 16MB in size. seems this is also valid for dos-windows in windows 2000. but i am not sure, can you confirm it?