Results 1 to 2 of 2

Thread: #Compiled Language = PowerBasic

  1. #1
    Member
    Join Date
    Feb 2023
    Location
    London, Ontario, Canada
    Posts
    35
    Rep Power
    5

    #Compiled Language = PowerBasic

    Well, I have configured thinBasic to use PowerBasic for creating a DLL, instead of FreeBasic.
    '---Load Console Module
    uses "Console"
    
    #Compiled Language = PowerBasic
    
    sub SayHelloFromPowerBasic cdecl alias "SayHelloFromPowerBasic" (byref sMessage as string) export
      '#COMPILER PBWIN 10
      dim hWin as LONG 
      TXT.WINDOW(EXE.Name$, 10, 10, 25, 80) TO hWin
      TXT.PRINT sMessage
      TXT.PRINT "EXE.Full$: ";
      TXT.PRINT EXE.Full$
      TXT.PRINT "Press a key to close this window"
      TXT.WAITKEY$
      TXT.END
    end sub
    
    #EndCompiled
    
    ' Thanks to thinBASIC autodetection,
    ' the PowerBasic function is discovered automatically
    SayHelloFromPowerBasic("Hello, BASIC")
    printl "Press a key to end..."
    waitKey
    
    This works as it should,
    and presents many a possibility.

    Joe

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

    Next thinBasic will have some new features on this side.
    First of all you will have user config file for compilers so when you install new thinBasic versions they will not rewrite your own configurations.
    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

Similar Threads

  1. #compiled freeBasic sections and thinBundle
    By DirectuX in forum thinBundle
    Replies: 2
    Last Post: 04-11-2019, 21:10
  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. Replies: 4
    Last Post: 11-07-2007, 19:24

Members who have read this thread: 4

Posting Permissions

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