$TYPECHECK ON DECLARE SUB BMPresize() DECLARE SUB FormKeyPress(TheKey AS WORD, Shift AS INTEGER) DECLARE SUB OpenBMP DECLARE SUB FormRePaint $INCLUDE 'this allows the program to run easy! no DLL to find for user $RESOURCE jpeg_DLL AS "jpeg.dll" 'or use jpeg.dll '$RESOURCE NviewLib_DLL AS "nviewlib.dll" 'or use this IF NViewLibPresent = 0 THEN EXTRACTRESOURCE Resource(0), "jpeg.dll" NViewLibPresent = 2 'signal we have jpeg ' EXTRACTRESOURCE Resource(0), "nviewlib.dll" ' NViewLibPresent = 1 'signal nviewlib END IF CREATE Form AS QFORM Caption = "Click to open file