Results 1 to 8 of 8

Thread: thinBasic Beta 1.9.12.0

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

    Lightbulb thinBasic Beta 1.9.12.0

    Here we are with another Beta version: ThinBASIC Beta 1.9.12.0

    Download from: http://www.thinbasic.biz/projects/th...c_1.9.12.0.zip


    In this Beta Version the direction is: ThinBASIC OOPification (like some users suggested here in forum)
    Added: TYPEs extensions using Extends clause to Types. This allow Types derivation more or less like Class inheritance in real OOP Languages
    Also added a new interesting way of defining variables extending the AS clause and adding the LIKE clause

    All will be documented when Beta phase will last (hopefully very soon)

    Have fun
    Last edited by ErosOlmi; 19-03-2014 at 00:38.
    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
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736
    Few examples of the enhancements for those who don't have time to browse whole forum.

    OOPification by example
    While thinBasic modules already enable way to declare and use classes, thinBASIC itself makes its first brave steps on the road to enable object oriented design. Functions inside type? Inheritance? Read more here

    New possibilities of variable declaration
    Just a brief example, for more info read here.
    Dim v As Long ' -- Classical way
    
    Dim v2 As v ' -- Now it get's interesting, v2 will become of Long data type, just as v is
    
    String sTypeInString = "DWord"
    Dim v3 Like sTypeInString ' -- Dynamic declaration of type, based on string variable content -> v3 will be DWord
    
    Expanded OS module power
    OS_WinVersionText, OS_WinVersionTimeline with support for Windows 8, 8.1, Server 2012 now!
    OS_ProcessGetFullPath to get full information from processID, like:
    Uses "OS"
      
    DWord pID = OS_ProcessGetId("thinBasic.exe")
    String sPath = OS_ProcessGetFullPath(pID)
      
    MsgBox 0, sPath
    
    ...and much more. See the What's new section in ThinBASIC help file, as usual


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    Bundle does not create executeable files with this version. It creates some .exe but it's unable to run these.
    I think there are missing some Forum-sections as beta-testing and support

  4. #4
    Junior Member
    Join Date
    Feb 2013
    Location
    Induno Olona (VA) Italy
    Age
    51
    Posts
    15
    Rep Power
    16

    Unable to create .exe file

    I can confirm, on Windows XP not able to create executeable bundle

  5. #5
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    Bad bundle-bug bump...
    There should be paid some attention on by currently appearing understaffed developement division.
    Attached Images Attached Images
    Last edited by ReneMiner; 14-04-2014 at 13:32.
    I think there are missing some Forum-sections as beta-testing and support

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736
    I can confirm that

    Even with Isolation flag enabled there is a problem. I think the EXE file creation could be checked automagically when building new release - I will prepare the test to prevent this from happening.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  7. #7
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736
    Hi guys,

    in case you need to build the EXE, you can do it by script - tested right now and works.

    Feel free to use this template as base for your experiments:
    Uses "Console", "Bundle", "File"
    
    Function TBMain()
    
      String sRoot = APP_SourcePath
      String sSourcePath = sRoot + "Source\"    ' -- Place your source files there
      String sBinPath = sRoot + "Bin\"
      
      ' -- Input validation
      If Not DIR_Exists(sSourcePath) Then
        DIR_MakeAll(sSourcePath)
        PrintL "Please place your script to:"
        PrintL sSourcePath
        
        PrintL
        PrintL "Press any key to quit..."
        WaitKey    
      End If
      
      DIR_MakeAll(sBinPath)
      
      Print "Prepare the bundle..."  
        Bundle_Reset
        Bundle_SetCreationFolder(sBinPath)
        Bundle_SetBundleName("Test.exe")        ' -- Feel free to change
      PrintL "OK"  
      
      Print "Add files..."
        Bundle_SetScriptName(sSourcePath + "Script.tBasic") ' -- You need to specify the MAIN script file this way           
        Bundle_AddFile(APP_Path + "Lib\thinBasic_File.dll") ' -- You need to specify the modules and other files this way
      PrintL "OK"  
      
      Print "Make EXE..."
        Bundle_Builder  ' -- This invokes the build dialog
      PrintL "OK"                                         
      
      PrintL 
      
      PrintL "Press any key to quit..."
      WaitKey
      
    End Function
    

    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  8. #8
    Thanks Petr,

    Also the Atan2 (math module) needs to be redefined - it outputs degrees i.o. radians like the other arc functions.

    best

    Rob

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
  •