Results 1 to 3 of 3

Thread: Embed thinBasic as scripting language to visual studio

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,527
    Rep Power
    170

    Embed thinBasic as scripting language to visual studio

    I stumbled across some instructions how to implement scripting languages into ms visual studio and perhaps that could be more interesting than creating dlls and wrap functions to have them accessible by directly accessing it and use the ease and logical rules following syntax of thinBasic to get a stubborn fat old dog to move and listen - instead to lay around lazy and only to fart if it wants an update...
    maybe can this http://www.voidcn.com/article/p-wqhdgtzz-yw.html work with tB? I fear i do not have all the required sources to try
    I think there are missing some Forum-sections as beta-testing and support

  2. #2

    Post

    That's the interesting part :

    Configuring Visual Studio. We need to configure Visual Studio to let it know where and what libraries and header files to look for when compiling our project. Configuring Visual Studio after you have Lua library file is really simple.

    Open up Visual Studio and create a new project. (File->New->Project)
    Select an Empty Project and give it any name.
    Go to Projects->”Your project name” Settings.

    Navigate to Configuration Properties -> C/C++ -> General and under Additional Include Directories type the location to your src folder of your Lua directory.Alternatively, you could have copied lua.h, lua.lib, lua.exe in single folder but I have left managing your folders up to you

    Again, under Configuration Properties->Linker->General, Additional Library Directories copy the same src location.

    In the same Linker section go to Input and add lua5.2.lib under “Additional Dependencies”.

    Setup the project folder. We are not quite done yet. One last step before you can start embedding your Lua library is to copy “lua.dll” file that was generated in the “src” directory and paste it in your project folders. This file must be in the same folder where your program’s executable file loads, usually in Debug folder.
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  3. #3
    This is a decades requested feature, but look here:
    Here a PowerBasic pirce of code of how to execute a thinBasic script from a PB program:
    https://www.thinbasic.com/community/...ll=1#post90011

    http://www.thinbasic.com/community/s...pported-or-not
    http://www.thinbasic.com/community/p...hp?issueid=185


    can't read all these articles with half damaged eye
    there is also BINT32 which is (i guess) the Grandmother of thinbasic i have found it in my hard disk
    about BINT32:
    https://forum.powerbasic.com/forum/u...-code-released
    https://forum.powerbasic.com/forum/u...int32-question
    https://forum.powerbasic.com/forum/u...orent-heyworth
    Last edited by primo; 25-06-2020 at 17:51.

Similar Threads

  1. portable visual studio
    By kryton9 in forum C / C++
    Replies: 0
    Last Post: 29-07-2012, 10:15
  2. Visual Studio 2010 Express Edition
    By matthew in forum Development
    Replies: 0
    Last Post: 18-04-2010, 17:16
  3. thinBasic interface under Microsoft visual C/C++ language
    By RobertoBianchi in forum MSVC++ 6.0
    Replies: 26
    Last Post: 05-03-2010, 17:10
  4. Visual Studio 2010 Video
    By kryton9 in forum Shout Box Area
    Replies: 1
    Last Post: 15-04-2009, 06:04
  5. Visual Studio 2010 and .NET Framework 4.0 Overview
    By ErosOlmi in forum Development
    Replies: 3
    Last Post: 02-10-2008, 16:23

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
  •