Hello,
I am trying to use GRAPHIC BITMAP LOAD. Whatever I try, I keep on getting "Cannot write to memory" exception failure at program end.
The graphics are only used for printing to a printer, so they are not attached to any window.
For use of GRAPHIC BITMAP END I need to do GRAPHIC ATTACH, but I have no graphic windows. Everything works fine, but the failure on exit doesn't look very nice...
Tried CloseHandle on hBmpCheck and hBmpUnCheck, with no results.
How should I close the Bitmaps?
I am trying to use GRAPHIC BITMAP LOAD. Whatever I try, I keep on getting "Cannot write to memory" exception failure at program end.
Code:
Graphic Bitmap Load "CHECK", 13, 13 To hBmpCheck XPrint Stretch hBmpCheck, 0 , (0,0) - (12,12) To (x+1*ppcmx, y+1*ppcmy) - (x+1*ppcmx + 60, y+1*ppcmy + 60) Graphic Bitmap Load "NOCHECK", 13, 13 To hBmpUnCheck XPrint Stretch hBmpUnCheck, 0 , (0,0) - (12,12) To (x+2*ppcmx, y+2*ppcmy) - (x+2*ppcmx + 60, y+2*ppcmy + 60)
For use of GRAPHIC BITMAP END I need to do GRAPHIC ATTACH, but I have no graphic windows. Everything works fine, but the failure on exit doesn't look very nice...
Tried CloseHandle on hBmpCheck and hBmpUnCheck, with no results.
How should I close the Bitmaps?
Comment