Results 1 to 3 of 3

Thread: #compiled freeBasic sections and thinBundle

  1. #1

    Question #compiled freeBasic sections and thinBundle

    Ciao Eros,

    I am curious about thinBundle behaviour towards freeBasic code : are #Compiled sections removed from script after compilation but before bundling ? In other words, are #Compiled sections compiled each time or it's a .dll that is bundled and corresponding code taken out from script ?
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    I wanted to answer this question by retrieving DLL timestamp, but it seems there is no DLL produced in Bundled mode.

    It can be demonstrated by running this example from thinAir (okay), and from Bundled EXE (not okay, the DLL is not there).

    uses "console", "file"
    
    
    #Compiled
    
    
    sub SayHi cdecl alias "SayHi"() export
      print "Ciao"
    end sub
    
    
    #EndCompiled
    
    
    printl "Output" in 14
    printl Compiled_LastCompile_Output
    
    
    printl "DLL name" in 14
    printl Compiled_DLL_FileName
    printl "DLL " + iif$(FILE_Exists(Compiled_DLL_FileName)>0, "EXISTS", "DOES NOT EXIST")
    printl
    
    
    printl "Function call" in 14
    SayHi()
    
    
    waitkey
    


    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
    Eros,

    Outstanding news that you are moving on from PowerBasic. I was hoping O2 but FreeBasic is a step in the right direction.
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

Similar Threads

  1. Replies: 4
    Last Post: 04-03-2014, 16:05
  2. Replies: 5
    Last Post: 18-03-2010, 08:28
  3. interpred vs compiled Thin Basic
    By gordona in forum COMM (Serial communication)
    Replies: 2
    Last Post: 25-05-2009, 07:43
  4. Game Code Sections
    By Michael Clease in forum CM contest 2009
    Replies: 1
    Last Post: 04-10-2008, 10:36
  5. Replies: 4
    Last Post: 11-07-2007, 19:24

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

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