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

Thread: thinCore as embeddable 3rd party DLL

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

    thinCore as embeddable 3rd party DLL

    Next thinBasic beta preview will have the first necessary SDK functions in order to use thinCore.dll as 3rd party embeddable scripting engine other than just thinBasic programming language.

    It will be possible to use thinCore.dll to add scripting functionalities to any application able to handle external dll function calling and manage OLE32 dynamic strings (BSTR strings).

    I will go by step:
    • first step will be allow application to run scripts (from file or from a string buffer) in a INIT/SETUP/RUN/RELEASE way. It means application will have to INIT thinCore engine, SETUP any local function interface (if any) adding new dedicated keywords to the engine, RUN the thinBasic script, RELEASE thinCore engine
    • if feedback/usage of first step will be successful and no big bugs, I will develop more functionalities (mainly already in place) in order to be able to execute more script without the need to RELEASE and INIT again. It will be also possible to keep data from RUN to RUN of different script and/or reset/delete global variables


    Will see.
    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

    Re: thinCore as embeddable 3rd party DLL

    Damn, now that i have no time to test this you come up with it but for sure, it is a great feature.

    Thank you!

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    Re: thinCore as embeddable 3rd party DLL

    That is cool Eros, I did not expected it so soon!
    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

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

    Re: thinCore as embeddable 3rd party DLL

    For the next beta version update, I will prepare a PowerBasic example showing how to use it on a very basic level.
    Than we will see how it seems. I have a direction in mind but maybe some feedback can help me adjust it.

    Ciao
    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

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

    Re: thinCore as embeddable 3rd party DLL

    Beta 1.7.9.0 present here http://community.thinbasic.com/index.php?topic=2875.0
    has already the basic functionalities to be used and embeddable dll but unfortunately I didn't have enough time to prepare a clever example and document interfaces, sorry.

    I will do during the next days.

    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

  6. #6

    Re: thinCore as embeddable 3rd party DLL

    Do you plan on adding support for other string types: C style strings ?

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

    Re: thinCore as embeddable 3rd party DLL

    I suppose definitely yes.

    Engine Initialization and Release are already OK.
    Only the RUN function that receive the script file name or the script string buffer must be changed but I can easily wrap it making relevant string conversion before passing buffer as BSTR string.

    Maybe I will be able to do it quite quickly before stating to test it.

    Thanks for alerting me.
    Ciao
    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

  8. #8

    Re: thinCore as embeddable 3rd party DLL

    That's good news Eros !

    When your ready, I'll retrieve the "Embedded Scripting Code Challenge" from the archive and try it again. It didn't seem like there would be enough interest with only ScriptBasic and VBA as options. This opens up new possibilities. I'm working on a ScriptBasic embedded example in BCX.


    John
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

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

    Re: thinCore as embeddable 3rd party DLL

    John,

    where can I find ScrptBasic used as embedded DLL documentation?
    I would like to compare methods.

    Thanks
    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

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

    Re: thinCore as embeddable 3rd party DLL

    Quote Originally Posted by MouseTrap
    Do you plan on adding support for other string types: C style strings ?
    I've already changed new interface functions to accept ASCIIZ strings as file or script buffer input.
    Interface with programming languages other than PowerBasic will be quite straight.

    This will be present in next beta refresh.
    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. Third Party Libraries
    By kryton9 in forum thinBasic General
    Replies: 3
    Last Post: 20-12-2006, 17:40

Members who have read this thread: 1

Posting Permissions

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