Search:

User: Chris Holbrook; Keyword(s):

Search: Search took 0.03 seconds.

  1. Replies
    15
    Views
    7,880

    Re: Interpreter inside a database

    as in the full set of windwoes types? or the "shorthand" set as used in PB etc?
  2. Replies
    15
    Views
    7,880

    Re: Interpreter inside a database

    Charles, thanks for your example!

    Can APIs be called from Oxygen?
  3. Replies
    15
    Views
    7,880

    Re: Interpreter inside a database

    Charles,

    I will post an e.g. over on PowerBasic which stores exes (well, anything really) in Blobs inside a SQLite DB and allows the exes to be shelled to.

    PS I just realised - we're both in...
  4. Replies
    15
    Views
    7,880

    Re: Interpreter inside a database

    Hi Charles,
    Although - as usual - I was thinking about a specific application when I started, there seems to be some interesting territory here, maybe not unexplored, but seldom visited....
  5. Replies
    15
    Views
    7,880

    Re: Interpreter inside a database

    Hi Petr,

    Yes, I see what you mean, but was thinking about running an interpreter from the DB without creating any files outside the DB.

    An example would be a SQL script interpreter with a...
  6. Replies
    15
    Views
    7,880

    Re: Interpreter inside a database

    Just knocked up a PowerBASIC applcaition to store any file type in BLOBs in a SQLITE DB and execute exes. To my shame I have forgotten what changes would be required to create a TB script from this...
  7. Replies
    15
    Views
    7,880

    Re: Interpreter inside a database

    Hi Charles,
    I was thinking about also storing the interpreter, then executing a loader program(load <table> <column>) which loaded it. I imagine that it would drive Windows firewall crazy.

    Hi...
  8. Replies
    15
    Views
    7,880

    Interpreter inside a database

    It just occurred to me that an interpreter could be stored in a database (I'm for SQLite!) and executed from there by using a loader program. Would ThinBASIC "work" in this context?
  9. Re: calling back to an interpreter function

    The library I am developing uses user-written functions. The user registers these functions and other library functions call them at the appropriate point.

    Regards,

    Chris
  10. Re: calling back to an interpreter function

    Ah good. They are local to the module then. Thanks!
  11. Re: calling back to an interpreter function

    Petr, thanks for that clarification.

    Eros - big thanks! what you have posted this moring will save me a lot of time and questions.

    And yes, I shall need to pass parameters. For the current...
  12. Re: calling back to an interpreter function

    Well, it appears to work. So far I am not passing any parameters back to the script.


    ' first attempt at making the module call the script
    ' this is the script!

    uses "thintrylib"

    declare...
  13. Re: calling back to an interpreter function

    OK, but going back to Petr's comment that thinbasic_FunctionGetPtr should be called during dll initialisation, then the dll has to know the names of the functions to be called - which is not the...
  14. Replies
    4
    Views
    3,177

    Re: Error messages

    Eros, Petr,

    I have worked out what the error referred to - I was looking at this line:


    PSQLV_EditRule (hQLV1, "Date_Joined", %EDIT_DATEPICKER,%EDIT_DEFAULTVALUE,"")


    I should have been...
  15. Re: calling back to an interpreter function

    Hi Eros,

    having read your reply and looked at the thincore function prototypes, it looks as if I could avoid address-passing altogether and use a call by name instead, with the script functions...
  16. calling back to an interpreter function

    Is it possible to derive a function address, which a dll function can call? It would save a lot of rewriting to use a library which calls "user functions" in the main program - in "Compiled World",...
  17. Replies
    4
    Views
    3,177

    Error messages

    Can't see a list of error messages in the offline help. The current error is baffling: Error Code 22 Atom:Command error. Not an obvious one, nor can I see a reference to "Atom".
  18. Replies
    2
    Views
    2,826

    Re: Windows API

    Thanks Eros!
  19. Replies
    2
    Views
    2,826

    Windows API

    How would I go about converting PowerBasic code which uses the API? The interpreter doesn't like "getdlgitem" for example. Do I have to include other modules than GUI to do this, and if so, which?
  20. Replies
    7
    Views
    6,601

    Re: Hello from Chris Holbrook

    Oh, yes please!

    Thank you Eros, Petr, Michael.
  21. Replies
    7
    Views
    6,601

    Re: Hello from Chris Holbrook

    Michael, forgive my ignorance, what do you mean by "module"? Do you mean a dll or something different?
  22. Replies
    7
    Views
    6,601

    Hello from Chris Holbrook

    I am an old programmer from UK.

    Just wrote my first ThinBASIC script - a GUI to run my PowerBasic calendar app from a library. It took 10 minutes and appears to work correctly.

    Congratulations...
Results 1 to 22 of 22