Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: thinBasic Beta 1.8.1.x

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    thinBasic Beta 1.8.1.x

    thinBasic Beta 1.8.1.0
    Download from: http://www.thinbasic.biz/projects/th...ic_1.8.1.0.zip


    A preliminar beta in order to see if it fixes installation problems reported by tekrat at http://community.thinbasic.com/index.php?topic=3444

    • thinBasic Setup: now using latest Innosetup available so far 5.3.10
    • thinAir: improved right click on top file tabs
    • thinCore: improved REDIM
    • thinCore: improved PARSE
    • thinCore: improved interfaces with external functions
    • UI: improved Canvas control with few new functions working on user input
    • Oxygen module: updated to the latest available on SVN server (examples included)
    • TBGL module: updated to the latest available on SVN server
    • SDK: added "thinBasic_DeclareFunction"

    ... see thinBasic help for complete and detailed list of changes.

    More updates in next few weeks

    Regards
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: thinBasic Beta 1.8.1.x

    For those developing thinBasic modules, few words on new SDK interface function "thinBasic_DeclareFunction".

    thinBasic_DeclareFunction is still experimental and can change in final thinBasic release.

    It is declared as follows:

    [code=freebasic] '----------------------------------------------------------------------------
    'thinBasic_DeclareFunction
    '----------------------------------------------------------------------------
    ' Add a new function using DECLARE statement and function pointer
    '----------------------------------------------------------------------------
    Declare Function thinBasic_DeclareFunction _
    Lib "thinCore.DLL" _
    Alias "thinBasic_DeclareFunction" _
    ( _
    ByVal sDeclare As String , _
    ByVal pFun As Dword _
    ) As Long[/code]

    Its purpose is to pass to thinBasic Core engine a string used to declare your module function plus your module function pointer.
    String passed to thinBasic Core follows the same syntax as a standard declare. In this way your module function can receive directly from thinBasic Core engine the necessary parameters without have to parse them in module.

    An example. Imagine you want to create your personalized Left$ function called MyLeft. Using thinBasic_DeclareFunction SDK function you can now do like the following.

    Create your module function in the classic way:
    [code=freebasic] '----------------------------------------------------------------------------
    Function MyInternalLeft(ByVal s As String, ByVal l As Long) As String
    '----------------------------------------------------------------------------
    Function = Left$(s, l) & "Whatever"
    End Function[/code]

    Inside "LoadLocalSymbols" function (it must always be present in your DLL in order to be a thinBasic module) define your new function in the following way:
    [code=freebasic]

    thinBasic_DeclareFunction "DECLARE FUNCTION MyLeft(BYVAL s as string, byval l as long) AS string", CodePtr(MyInternalLeft)

    [/code]

    thinBasic Core engine will parse your string declare and will automatically connect a new keyword called "MyLeft" with your "MyInternalLeft" registering all needed parameters and their passing methods.

    Again, this new SDK is experimental and more limited compared with classic way of creating module functions but can help.

    Regards
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3

    Re: thinBasic Beta 1.8.1.x

    This feature is going to make module writing much easier Eros. Many thanks!

    One question comes to mind: Do you support optional parameters in the declaration string?

    Charles

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: thinBasic Beta 1.8.1.x

    I would say yes because it uses the same code used for DECLARE inside script but I've not tested it.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    Junior Member
    Join Date
    Jun 2008
    Location
    Barcelona Spain
    Age
    81
    Posts
    13
    Rep Power
    17

    Re: thinBasic Beta 1.8.1.x

    Once more a false virus detection by ESET NOD32.

    See image attached.

    Jordi
    Attached Images Attached Images

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: thinBasic Beta 1.8.1.x

    Charles, this is for you
    It seems false positive are related to Oxygen scripts.

    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  7. #7

    Re: thinBasic Beta 1.8.1.x

    I get AVIRA to choke on them too when I do a checkout on Charles SVN stuff.

  8. #8

    Re: thinBasic Beta 1.8.1.x

    Sorry about that. I think the virus checker dislikes the executables, at least when they are being installed. I can try to ensure that compiled examples are absent from the package.

    You can delete the offending EXE and DLL example files. They are generated by some of the sample scripts.

    BTW:

    I have used the Avast virus checker for many years. It has never given me any problems and updates itself usually daily. I recommend it.

    http://en.wikipedia.org/wiki/Avast!

  9. #9
    Junior Member
    Join Date
    Jun 2008
    Location
    Barcelona Spain
    Age
    81
    Posts
    13
    Rep Power
    17

    Re: thinBasic Beta 1.8.1.x

    I feel very comfortable with the NOD32 antivirus. This product has solved me several problems and massive atacks and serious problems with the mail. Curiously, the only problems it has caused are related to ThinBasic and its components. Do not know why.

    Jordi

  10. #10
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: thinBasic Beta 1.8.1.x

    Quote Originally Posted by Jordi Vallès
    I feel very comfortable with the NOD32 antivirus. This product has solved me several problems and massive atacks and serious problems with the mail. Curiously, the only problems it has caused are related to ThinBasic and its components. Do not know why.
    Jordi
    Well, it is not the only script engine having problems with AV.
    Techniques used to embed script and DLLs into an EXE (like thinBasic does when creating bundled executables) and/or execute DLLs from memory (like some thinBasic modules do) are situations that can bring AV to determine false positive. Similar problems are possible with other scripting engine like AutoIt (used by thousands of users)
    Often the false positive occurs just for few days, the time to post a request to AV software (I did it in the past) and they to fix in next update.

    It is something we have to live with.
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Page 1 of 3 123 LastLast

Similar Threads

  1. thinBasic Beta 1.8.6.0
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 31
    Last Post: 07-05-2011, 11:06
  2. thinBasic Beta 1.8.2.x
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 13
    Last Post: 21-06-2010, 10:10

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •