LB Booster
« LB Booster version 2.70 released »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:40am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
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
BBC BASIC Home Page
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 1566 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
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 »

| |

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