|
Post by Tom Mulgrew on May 16, 2007 2:48:18 GMT -5
I've released Basic4GL v2.4.7. This has new features for plugin DLLs, that allows them to define structure types, which can be used to pass data between the plugin and the BASIC program. It breaks compatibility with older plugins which will need to be recompiled with the new plugin SDK. Although at the moment there aren't a lot of serious plugins, besides Joshy's ODE plugin which this change was basically done for, so yeah... Joshy, I'm pretty happy with the interface now. It allows reading and writing of structures, arrays, var parameters etc with a reasonably compact syntax. As long as you define the data types correctly, Basic4GL will figure out how to convert data between its own formats and the plugin formats. (Get it wrong though and everything crashes ) You'll want to have a look at the "StructureTestDLL" plugin (in the "Examples" folder of the DLL SDK) that demonstrates reading and writing structures, arrays, var params etc. There's a corresponding Basic4GL test program "StructureTest.gb" in "Examples\TestPrograms". I'm hoping it will all make sense, but if you have anything that needs clearing up, let me know. -Tom
|
|
|
Post by DJLinux on May 16, 2007 9:32:19 GMT -5
Sounds good i will try it tomorrow first i must change my plugin interface to Basic4GL too it's not C++ it's in assembler ;-)
Joshy
|
|
|
Post by DJLinux on May 17, 2007 3:35:00 GMT -5
Hello tom realy good job seams to work (now). but please next time if you remove anything from the plugin interface write a short NOTE about that. (or i'm blind) I regitered tons of ODE enums and const's Added all "new" plugin members for struct handling changed more then 1800 lines of code and spent my whole free day for debuging returning struct from ODE to B4GL created an acception you removed wordless "GetStringArrayParam" the result was all following new members pointed 4 bytes wrong in interface RUNTIME. but the interface it self works and again good job Joshy
|
|