LB Booster
General >> Announcements >> LB Booster version 2.70 released

LB Booster version 2.70 released
Post by Richard Russell on Sep 3rd, 2014, 5:57pm

I am pleased to announce the release of LB Booster version 2.70. It may be downloaded from here: (IDE/compiler) (optional runtime engine)

You will need administrative privileges when running the program for the first time after upgrading (in Windows Vista, 7 and 8/8.1, with UAC enabled, use 'Run as administrator').

Changes in this version include:
  1. Native arrays of structures are introduced! See below for details of the syntax.

  2. A second joystick is supported using READJOYSTICK 2.

  3. BMPBUTTON accepts a wider range of BMP file formats.

  4. When compiled to an EXE, END terminates the process (even if the mainwin is open).

  5. A couple of bugs have been fixed (my thanks to stefanh and rodsweb).

  6. APLIB.DLL has been updated to the latest version. This may help in avoiding false positive virus detections.

Arrays of structures may be any size and have any number of dimensions, limited only by available memory. A structure array is created using this syntax:

    STRUCT name(dims), member1 AS type, member2 AS type.... 

A member of a structure array is accessed as follows:

    name(index).member.struct = value
    PRINT name(index).member.struct 

Here is an example of calling a Windows API (Polygon) which takes a structure array as a parameter:

    open "Structure array" for graphics as #w
    #w "trapclose [quit]"
    hw = hwnd(#w)
    calldll #user32, "GetDC", hw as ulong, hdc as ulong

    npoints = 3
    struct points(npoints-1), x as long, y as long
    for i = 0 to npoints-1
        points(i).x.struct = 120 + 120 * cos(2*i)
        points(i).y.struct = 150 + 120 * sin(2*i)
    calldll #gdi32, "Polygon", hdc as ulong, _
      points() as struct, npoints as long, r as long

    close #w

Re: LB Booster version 2.70 released
Post by Richey on Sep 4th, 2014, 10:38pm

Thank you Richard - downloaded!
Re: LB Booster version 2.70 released
Post by James on Sep 7th, 2014, 06:00am

Thank you Mr. Russell!