as in the full set of windwoes types? or the "shorthand" set as used in PB etc?
User: Chris Holbrook; Keyword(s):
as in the full set of windwoes types? or the "shorthand" set as used in PB etc?
Charles, thanks for your example!
Can APIs be called from Oxygen?
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...
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....
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...
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...
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...
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?
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
Ah good. They are local to the module then. Thanks!
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...
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...
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...
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...
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...
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",...
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".
Thanks Eros!
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?
Oh, yes please!
Thank you Eros, Petr, Michael.
Michael, forgive my ignorance, what do you mean by "module"? Do you mean a dll or something different?
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...