AW: [Hbasic-userinfo] Serial Port
Status: Beta
Brought to you by:
mengels
From: Engels, M. <Mar...@SP...> - 2003-11-04 07:53:20
|
Hello Tullio, =20 I don't know very much about serial ports. I tried to find some info in = the "Serial HOWTO" but it didn't help me very much to find the API = functions that will be required to read or write to the serial port with linux. Currently I want to implement support for all classes of the Qt library = but I couldn't find some classes that may be used for serial IO in this = library. Maybe it's usefull to call shell functions like settty with the = system() method in HBasic but I'm not sure about that. =20 I'm not sure how you mean with using API calls in VB (maybe because I = don't know every feature of VB). To call functions of another library that = has been created with C or C++ code HBasic needs some additional C++ wrapper-code to understand how HBasic function calls to the API methods should be converted to C++ methods. I call this wrapper code a package. = A package may be loaded dynamically at runtime of HBasic and add's the implemented API interface to HBasic. The normal widgets like Button or = Label for example are functions that connect to the appropriate Qt API = functions. This means if you want to use new API functions you will have to create = some wrapper code in C++ first. You may take a look at the HBasic docu at =20 http://hbasic.sourceforge.net/user_guide/shared_lib/components.html <http://hbasic.sourceforge.net/user_guide/shared_lib/components.html>=20 =20 http://hbasic.sourceforge.net/user_guide/shared_lib/libdesc_program.html= <http://hbasic.sourceforge.net/user_guide/shared_lib/libdesc_program.htm= l>=20 =20 to get some information how this might be done.=20 =20 Marcus Engels =20 -----Urspr=FCngliche Nachricht----- Von: Idropan [mailto:in...@id...] Gesendet: Dienstag, 4. November 2003 06:00 An: hba...@li... Betreff: [Hbasic-userinfo] Serial Port I'm new to HBasic because i discovered it reading a mail from = Lindows.com. =20 Currently I'm developing in VB and Windows but I would really like to = start=20 =20 my migration to Linux and HBasic. =20 I have few question to the list: =20 How is supported in HBasic the serial port? =20 In my code I'm often using API calls. Is there something similar in = HBasic and Linux? Where I can find more about? =20 Tanking in advance =20 Best regards =20 Tullio Servida |