LB Booster
« LB Booster version 2.70 released »

Welcome Guest. Please Login or Register.
Nov 24th, 2017, 7:23pm


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
LB Umbrella 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 1417 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1279
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:

http://lbbooster.com/LBB.exe (IDE/compiler)
http://lbbooster.com/LBBRUN.exe (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:

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

A member of a structure array is accessed as follows:

Code:
    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:

Code:
    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)
    next
    calldll #gdi32, "Polygon", hdc as ulong, _
      points() as struct, npoints as long, r as long
    wait

[quit]
    close #w
    end 

Richard.
User IP Logged

Richey
New Member
Image


member is offline

Avatar




PM


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

James
New Member
Image


member is offline

Avatar




PM


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 »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls