Thanks a lot Petr for this massive work on new OpenGL include files. I'm pretty sure it will give a lot of power to new scripts.
As you mention, the new functionality DECLARE SET ADDRESS will open a new set of options. Mainly now thinBasic is able to define functions and sub prototypes. Just DECLARE a function or a sub without indicating any external library and thinBasic will interpret it as prototype. Later, at script runtime, you will be able to connect a function prototype to a process address known only at run-time (like you can see in Petr's examples). From that point the new function will be ready to be used like a normal function.
Also in this case, it is all new, so please be patient and in case you find any bug please send us script examples. Working with process address expone to easy GPF because there are no filters and control by the interpreter. The only thing thinBasic can do is to check if address is equal to zero or not. If zero script is aborted, but if not it has to assume it is a valid address pointing to a procedure having the declared parameters sequence and type.
Have fun
Ciao
Eros
Bookmarks