home *** CD-ROM | disk | FTP | other *** search
- DECLARE SUB Grasp (grcmd$)
- ' $INCLUDE: 'QB.BI'
- DEFINT A-Z
- DIM Inregs AS RegType, OutRegs AS RegType
-
- ' QuickBasic Version 4 GRASP Interface Demo Program
- ' Be sure to load QuickBasic with the /L command line option to include
- ' the library containing the CALL INTERRUPTX routine
-
- ' Load and display a picture
- CALL Grasp("Pload grasp,1")
- CALL Grasp("Pfade 1,1")
- CALL Grasp("Waitkey")
- END
-
- SUB Grasp (grcmd$)
- DIM Inregs AS RegTypeX, OutRegs AS RegTypeX
-
- DEF SEG = VARSEG(grcmd$)
- offset% = (256 * (PEEK(VARPTR(grcmd$) + 3))) + PEEK(VARPTR(grcmd$) + 2)
- DEF SEG
-
- Inregs.dx = offset%
- Inregs.ax = &H4700
- Inregs.cx = LEN(grcmd$)
- Inregs.es = -1
- Inregs.ds = -1
- CALL INTERRUPTX(&H10, Inregs, OutRegs)
- END SUB
-
-