ScriptBasic
Extension Modules => Extension Modules => Topic started by: Support on May 23, 2013, 06:52:04 PM
-
I have attached a JAPI 2.0 release candidate for ScriptBasic Windows 32. Feedback and example code would be appreciated.
Note: For those still interested in the AWT version, you should download the latest 1.x release. Version 2.0 is based on Swing.
-
I plan on releasing a generic JAPI 2.0 DLL for Windows 32. I have 50% of the API defined in DLLC. My goal with this effort is to try JAPI in a multi-threaded environment. (JRE is suppose to be thread safe)
The author of JAPI created a very cool C program that builds the ScriptBasic C extension module source from the Java source. I only noticed one side effect and that is if the function call has a NULL argument, it is counted in the required argument count check. The following functions currently need an additional argument. ("" or 0) I will fix this in the next release candidate.
- j_filedialog
- j_fileselect
- j_gettext
- j_getseltext
My next task is to cleanup the deprecated Java code that doesn't seem to be supported on 64 bit Linux.
-
I fixed the argument count issue with japi.dll (extension module) and it now matches the JAPI documentation for these functions. (no extra argument needed) I have attached a zip with japi.dll and the corrected example programs.
Functions effected.
j_filedialog
j_fileselect
j_gettext
j_getseltext
Example programs effected.
filedialog.bas
viewer.bas
menu.bas
text.bas