LB Booster
« LB Booster version 2.70 released »

Welcome Guest. Please Login or Register.
Mar 20th, 2018, 11:19pm

Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: LB Booster version 2.70 released  (Read 1538 times)
Richard Russell

member is offline


Homepage PM

Posts: 1346
xx LB Booster version 2.70 released
« Thread started 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

User IP Logged

New Member

member is offline



Posts: 14
xx Re: LB Booster version 2.70 released
« Reply #1 on: Sep 4th, 2014, 10:38pm »

Thank you Richard - downloaded!
User IP Logged

New Member

member is offline



Posts: 42
xx Re: LB Booster version 2.70 released
« Reply #2 on: Sep 7th, 2014, 06:00am »

Thank you Mr. Russell!
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls