BBC BASIC for Windows
Programming >> Graphics and Games >> Problem with GFXLIB2
http://bb4w.conforums.com/index.cgi?board=graphics&action=display&num=1305936559

Problem with GFXLIB2
Post by binder on May 21st, 2011, 12:09am

When trying GFXLIB2 for the first time (in Windows XP) the following error report appears:

"no such variable in module C:\Program Files\BBC BASIC for Windows\lib\GFXLIB2 at line 0"

The following have been placed in C:\Program Files\BBC BASIC for Windows\lib\

GFXD3D9LIB (folder), GFXLIB_modules (folder), GFXD3D9LIB.bbc, GFXLIB2.bbc

The error seems to be caused by the 3rd line in the example program:

MODE 8
INSTALL @lib$ + "GFXLIB2"
PROCInitGFXLIB( d{}, 100 )
SYS GFXLIB_Clr%, d{}, FNrgb( 180, 90, 0 )
FOR I%=1 TO 100
SYS GFXLIB_Plot%, d{}, bm32%, 64, 64, RND(640), RND(512)
NEXT I%
PROCdisplay