hbasic-userinfo Mailing List for HBasic (Page 13)
Status: Beta
Brought to you by:
mengels
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
(17) |
Sep
(15) |
Oct
(37) |
Nov
(19) |
Dec
(52) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(46) |
Feb
(18) |
Mar
(33) |
Apr
(42) |
May
(53) |
Jun
(56) |
Jul
(14) |
Aug
(5) |
Sep
(5) |
Oct
|
Nov
|
Dec
(2) |
2005 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Kim L. <ki...@it...> - 2003-09-07 11:26:06
|
The Database manger dialog seems a bit confused about hbdbname an dbname. the dbname entry will always be sett to the hbdbname. anyway attached is a patch for it + a minor patch for a tr( to QObject::tr( in src/global_commands.cpp that the compiler complained about There also seems to be somthing strange with the build system, the QTLIB entry in Makefile.global is empty after a configure, it should be -lqt-mt... A ran this on a RH9.0 with the latest qt/kde compiled via konstruct, i have both qt and kde in /opt/kde so... Configure line for HBasic: ./configure --with-compiler --with-kdeui --with-x \ --with-qt-libraries=/opt/kde/lib --with-qt-includes=/opt/kde/include \ --with-kde-libraries=/opt/kde/lib --- Kim "kill" Lilliestiena |
From: <mar...@t-...> - 2003-09-05 15:16:30
|
New feature for classes which are derived from Qt class. If QTC support has been activated the public methods of the appropriate Qt class may be called for the HBasic class instance. If you have for example created a Button widget in the formdesigner you normally may only call the methods which have been defined as a SLOT in the Qt C++ source code. With the new version and activated Qtc support you may also call the public methods of the QPushButton base class. A detailed docu for this feature will follow later. |
From: <mar...@t-...> - 2003-08-31 13:07:06
|
New version 0.9.8g released. Bugfixes in component selection in formdesigner. Components may be created with parameters of type component now. See code_examples/components/listview.bas as example program. Some bugfixes in QTC support. |
From: Holger K. <hol...@mu...> - 2003-08-29 18:02:53
|
Hallo, I thing i have found a bug in HBASIC 0.9.8f Holger |
From: <mar...@t-...> - 2003-08-26 15:09:33
|
New menu-editor may be used to edit menubars and entries in the formdesigner window. You may search for action handler subroutines for a menu/toolbarentry or create new ones in the menu editor functions. You may find the action handler with a double click on the action name. In the same way a double click on a component in the formdesigner will try to find the appropriate action handler in the source code before creating a new one if none exists. The menu/toolbar of a MDI mainwindow may be created or changed in a special form window which has been added to the project windows. The compiler to create standalone executables may be activated with a configure --with-compiler but there are some updates required before it is on the same level as the interpreter. Marcus |
From: Engels, M. <Mar...@SP...> - 2003-08-26 07:05:52
|
Hello Mohammed, I am not shure why the compiler cannot find the include file memory.h = which is required to find the class MemoryBlock. I have appended a modified version of the file parser_memory.cpp. Please try to put this file in = the parser subdirectory of the HBasic sourcedir and restart the make = command. If it fails again send me the output of the gcc command which will be = executed. I also had to put a new version 0.9.8f in the internet where I have = fixed another bug which doesn't occure on my system. Therefore the best way = would be to download the 0.9.8f version, replace the file = parser/parser_memory.cpp and recompile all files. Marcus Engels -----Urspr=FCngliche Nachricht----- Von: Mohammed Gamal [mailto:f2...@ya...] Gesendet: Montag, 25. August 2003 10:42 An: hba...@li... Betreff: [Hbasic-userinfo] Compilation Error Hello, I tried to compile the HBasic 0.9.8e package and it there is a compilation error with the parser_memory.h and parser_memory.cpp I tried to do this on Mandrake Linux 9.0 (I don't remember the gcc version at the moment but I think it's gcc 3.1 or 3.2). I also attached the error output in a file with this message. =3D=3D=3D=3D=3D Mohammed Gamal Member of "ArabEyes", Unix/Linux Arabization Project GUI & documentation translator http://www.arabeyes.org ________________________________________________________________________= Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ |
From: <f2...@ya...> - 2003-08-25 22:11:19
|
Hello, I tried to compile the HBasic 0.9.8e package and it there is a compilation error with the parser_memory.h and parser_memory.cpp I tried to do this on Mandrake Linux 9.0 (I don't remember the gcc version at the moment but I think it's gcc 3.1 or 3.2). I also attached the error output in a file with this message. ===== Mohammed Gamal Member of "ArabEyes", Unix/Linux Arabization Project GUI & documentation translator http://www.arabeyes.org ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ |
From: <mar...@t-...> - 2003-08-18 15:48:20
|
Released new version 0.9.8d Some bug fixes, - deleting widgets with the delete key should be possible, - components in dbaccess package should work correctly. New toolbar and menubar editor which allow to edit the toolbar and menubar without a separate dialog. These two editors are not yet ready. In the changelog you may find a link to a description how to work with the new toolbar editor. |
From: <se...@ch...> - 2003-08-15 19:54:57
|
Hello, I've compiled the source code and needed library's but when i try to run it, it gives an error: { /usr/local/hbasic/packages/hbasic_hbobject_1.so: undefined symbol: _Znwj } does any one know how to solve this problem? |
From: <noe...@sk...> - 2003-08-11 21:39:32
|
hi, I just downloaded HBasic 0.9.8c and compiled it on redhat 9.0. Just one small question: how can I compile my .bas programs to create standalone executables? |
From: Kim L. <ki...@ki...> - 2003-08-08 21:59:02
|
1. OS: RH 9.0 qt-3.1.2 and KDE 3.1.2 compiled from source configure line: ./configure --with-compiler --with-kdeui --with-x \ --with-qt-libraries=/opt/kde/lib -with-qt-includes=/opt/kde/include \ --with-kde-includes=/opt/kde/include --with-kde-libraries=/opt/kde/lib This resulted in some minor complitation buggs in: ./lib_calc_sheet/sheet_editor.cpp ./src/global_commands.cpp ./src/main.cpp Where is hadd to insert a #include <kapplication.h> After that everyting compiled smothly and starts up ok but: there is a problem with property handling in the db widgets that leads to a segfault: 1. Use database conections to add a mysql database to the project, this works ok and i can open tables etc. 2. Use Package manager to add the hbasic_dbaccess package, the widgets are added to the "components window" 3. Add a Db_Form widget 4. Add a ColEdit widget. 5. Try to set the th DB_COLUMN property of the ColEdit -> crash! Now The crash only manifests if there is a Db_Form widget already present. Kim Lilliestierna |
From: <mep...@we...> - 2003-08-08 13:36:00
|
Hello, the first thing I've discovered about hbasic 0.9.8c is the menu Window is extremly broken. Every submenu underneath Property Editor returns an exception when chosen and the program is oborted. 2nd what do you think about implementing a treeview e.g. a directory-treeview as new component in the componenteditor ? 3rd would be nice to have a submenu within 'Run' to make an executeable. 4th should be possible to delete components from a form by marking it and pressing "Del". 5th Despite of these issues it looks very promissing what you do. Go on :) Best regards __________________________________________________________________________ Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter, Adressverifizierung, digitale Unterschrift: http://freemail.web.de |
From: <mar...@t-...> - 2003-08-07 15:35:33
|
From: Oppermann <op...@an...> - 2003-08-05 21:25:35
|
I can only confirm that. Horst from South Africa P2 400 mandrake 9.1=20 Am Dienstag, 5. August 2003 17:57 schrieb =C3=96ZD=C4=B0L TANER=C4=B0: > ON MY CEL 300 256MB RAM MND 9.1 LINUX SYSTEM > IT TOOK NEARLY AN HOUR TO COMPILE AND INSTALL > BUT IT DID COMPILED WELL > NO ERROR > IT WORKED > BUT AS VOLKER SAID U CANNOT REMOVE ANYTHING THAT U ATTACH TO FORM A BUTTON > TEXTBOX ETC. U PRESS DELETE NOTHING HAPPENS AND WAITS > BUT MY HBASIC COMPILATION DID NOT RETURN TO SHELL GIVING ERROR MESSAGES > SEE YOU ALL > OZDIL > FROM TURKEY > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 |
From: <oz...@tt...> - 2003-08-05 15:55:16
|
ON MY CEL 300 256MB RAM MND 9.1 LINUX SYSTEM IT TOOK NEARLY AN HOUR TO COMPILE AND INSTALL BUT IT DID COMPILED WELL NO ERROR=20 IT WORKED=20 BUT AS VOLKER SAID U CANNOT REMOVE ANYTHING THAT U ATTACH TO FORM A = BUTTON TEXTBOX ETC. U PRESS DELETE NOTHING HAPPENS AND WAITS BUT MY HBASIC COMPILATION DID NOT RETURN TO SHELL GIVING ERROR MESSAGES SEE YOU ALL OZDIL=20 FROM TURKEY --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.504 / Virus Database: 302 - Release Date: 24.07.2003 |
From: Volker S. <li...@in...> - 2003-08-02 11:44:46
|
Hi, I'm using Mandrake 9.1 and HBasic 0.9.8c compiled unter Celeron-Notebook. HBasic configures, compiles etc. without any errors. Starting HBasic with the default project I just type some stuff into the code-window and then using the mouse to select something. Now I press the 'Back' button to delete the selected part and HBasic freezes. After about 10 seconds it terminates. In the console I find this: [.....more of this.....] hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Obtained 3 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] Segmentation fault It is impossible to create a programm, because always those crashes while editing. And a wish: If I DoublKlick a control, HBasic always creates a new sub for the Click-Event, even if this sub is allready existing. If the sub is existing, HBasic should only jump to the existing event. Now, the new sub has to be deleted everytime. Now I wanted to test this and after folding the second Click-Event in the code-editor, HBasic say'd he has a segmentation fault. After this i find in the console: Obtained 7 stack frames hbasic [0x80ac251] /lib/i686/libpthread.so.0 [0x408a35ce] /lib/i686/libc.so.6 [0x4076a3b8] hbasic(_ZN17CSourceEditWidget25viewportMouseReleaseEventEP11QMouseEvent+0x71) [0x81587df] hbasic(_ZN17CEditScrollWidget25viewportMouseReleaseEventEP11QMouseEvent+0x1a) [0x8155d3a] /usr/lib/qt3/lib/libqt-mt.so.3(_ZN11QScrollView11eventFilterEP7QObjectP6QEvent+0x12c) [0x40430afc] [0x3] Other times I can't reproduce this error... :-( There seem to be a lot of bugs. Can I help more? Grüsse, Volker Schmid |
From: <mar...@t-...> - 2003-08-01 13:45:15
|
If you get a compilation error in the file query_designer.cpp in version 0.9.8c the problem might be the difference between the exec method call in Qt 3.0 which requires a QString parameter and exec in Qt >= 3.1 which doesn't allow a QString parameter. I have appended a new version of this file to the mail where I tried to fix the problem. Try to replace the file gui_db_access/query_designer.cpp with this file and restart make and make install. Marcus |
From: Budi S. <bu...@uk...> - 2003-08-01 09:50:36
|
i've tried to compile HBasic-0.9.8.c on RedHat 8.0. This is configure result : [budsus@localhost HBasic]$ ./configure checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether ln -s works... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking execinfo.h usability... yes checking execinfo.h presence... yes checking for execinfo.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for strings.h... (cached) yes checking for sys/stat.h... (cached) yes checking for DOTGnu support... NO_DOTGNU DOT-Gnu path checking for DSO_HANDLE required... NO_DSO_HANDLE checking for compiler usage... NO_COMPILER checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for QT 3.x libraries... /usr/lib/qt3-gcc3.2/lib checking for QT 3.x includes... /usr/lib/qt3-gcc3.2/include checking for KDE 3.x includes... /usr/include/kde/ checking for KDE 3.x libraries... /usr/lib checking if KDE user interface should be used... NO_KDEUI checking for QT 3.x libraries... (cached) /usr/lib/qt3-gcc3.2/lib checking for lupdate... /usr/lib/qt3-gcc3.2/include/../bin/lupdate checking for lrelease... /usr/lib/qt3-gcc3.2/include/../bin/lrelease checking for qtc library... no checking for QT 3.x includes... (cached) /usr/lib/qt3-gcc3.2/include checking for moc... /usr/lib/qt3-gcc3.2/include/../bin/moc configure: creating ./config.status config.status: creating Makefile.global config.status: creating Makefile config.status: creating src/defines.h config.status: creating install_dir/used_packages.info And, then i do run make, and i have this error message : make -C gui_db_access make[1]: Entering directory `/home/budsus/Documents/master/HBasic/gui_db_access'gcc -c -I/usr/lib/qt3-gcc3.2/include -I/usr/include/kde/ -I../src -I../include -I../runtime_lib -o query_designer.o query_designer.cpp query_designer.cpp: In function `void executeDbQuery(HBQueryDesc*)': query_designer.cpp:860: no matching function for call to `QSqlQuery::exec()' /usr/lib/qt3-gcc3.2/include/qsqlquery.h:88: candidates are: virtual bool QSqlQuery::exec(const QString&) make[1]: *** [query_designer.o] Error 1 make[1]: Leaving directory `/home/budsus/Documents/master/HBasic/gui_db_access' make: *** [gui_db_access/gui_dbaccess_lib.a] Error 2 can anyone help me, what wrong with this message? thanks Budi Susanto |
From: <mar...@t-...> - 2003-07-27 14:32:05
|
This version has a major bugfix in the sourcecode editor, a new undo history which may store the last 10 modifications, cut copy paste functions for widgets in the formdesigner and some more undo functions for components in formdesigner (e.g. for aligning and inserting new components). Marcus |
From: Gutemberg <gut...@ho...> - 2003-07-24 01:57:18
|
From: Kannan R. <kan...@ya...> - 2003-07-17 14:30:30
|
Regards and best wishes to all the hbasic users and a mailing list like has been long time coming. Hope we grow from strength to strength. Meanwhile Im testing the other basic environments as well under Linux. I hav RH 8.0 and Qt 3.11, tried and ended with couple of errors. But the features are quite promising. Thanks to all, R S Kannan __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: <mar...@t-...> - 2003-07-16 18:27:01
|
Hi Ahmad, updating the function library is an good idea. This functions will be implemented in C or C++ so that you should have no problems. Implementing functions requires two different steps. 1) Create a function definition in C or C++ within a HBasic package description. I have put all functions in the hbasic_stdgui.so packages which will always be loaded on startup of HBasic but you may also copy this package and create your own if you like. 2) Since compiling the C functions to a library only gives me some machine language code with an entry point for the function HBasic needs some additional information about the number of parameters, the return type of the method and the type of the parameter values. For popup info's I have added some additional description line and the name of the parameters will also be stored in this information. This info files (called <package_name.dso>) will be created with the libdesc program which will also be installed with HBasic. Let me give you an example. If you take a look at the file <HBASICDIR>/packages/hbasic_stdgui/hbasic_stdgui.cpp you will find the method definitions for functions like double fn_sin( double d ) { return( sin( d )); } This is the method which HBasic calls whenever the parser finds a sin(d) method call in the HBasic program. I first also tried to call this C function sin() but some compilers got into trouble with this naming so I have renamed them to fn_sin() ... Let's try to insert a new method which will multiply a double number with 2.0. Insert some code like double mult2( double par1 ) { return( par1 * 2.0 ); } into the hbasic_stdgui.cpp file and run make and make install. This should compile the new library and copy it to /usr/local/hbasic/packages. The *.so file is the library which will be loaded as a shared library by HBasic and the *.dso is the current version of the description file needed by HBasic. For the second step we have to start the libdesc program (Sourcecode in libdesc subdirectory). Click on Menu "Load/Load description" and select the hbasic_stdgui_1.dso file from the /usr/local/hbasic/packages directory. You should now see a list of the components, constants and methods that have been implemented in the hbasic_stdgui package. We want to add a new method description so click on the "Method list" folder with the right mouse button and select "Add method". In the dialog that pop's up you should fill in the following fields: 1) Method name is the name that should be used in HBasic to call the method. We could call this "multiply_two" (or whatever you like) for our example. 2) Symbol to call is the name of the symbol that the compiler has generated for the object code of the C function implementation. For C code this is the same as the name in the C sourcecode but for C++ code this is a little bit more complicated. I normally use something like objdump -T /usr/local/hbasic/packages/hbasic_stdgui_1.dso | grep mult2 to find the name of the object symbol. You may also click on the S button on the right side of the editline for the symbol. This will also list the symbols in the library in a new dialog. Type mult2 as a search string in the editline and select the symbol which is _Z8fn_mult2d for my gcc-3.2 compiler. 3) Select "double" as return type 4) Select "double" as parameter type, give a name to the parameter and click on add to add the parameter description to the list below. You may also add a short one line method description for each method which will be displayed in the editor of the HBasic IDE. If you save this description it should now be possible to use this method in HBasic sourcecode. Startup HBasic and insert a new button into the form. Doubleclick on the button and insert some example program like the following in the sourcecode editor: Sub button1_clicked() Dim d As double d = 12.34 print multiply_two( d ) End Sub Running this program should display the result 24.68 on the form which means out method defined in C has been called. Maybe I haven't mentioned all the methods that I have already defined in the hbasic_stdgui library in the documentation of HBasic. Some of the methods that you wanted to implement might already be in the library. Have a look at the method list after loading the library into the libdesc program to see the list of defined methods. Looking at the glibc documentation there will be some more functions that might be useful in HBasic so there is much to do and any help is welcome. I hope the description helps you to set up new methods with HBasic. Send me some info if you have problems or further questions. To help other people I will also send this info to the HBasic mailing list that I have set up on sourceforge (hba...@li...). Marcus Engels |
From: <mar...@t-...> - 2003-07-16 18:25:27
|
From: <mar...@t-...> - 2003-07-14 18:28:40
|
Started first mailing list for HBasic users on July 14 2003. Send questions, infos or problems with HBasic to this mailing list. |