From sourceforge-raindog2 at ...19... Sun Feb 1 16:44:27 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 1 Feb 2004 10:44:27 -0500 Subject: [Gambas-devel] System calls? In-Reply-To: <401BECD5.70308@...100...> References: <401BECD5.70308@...100...> Message-ID: <200402010909.39332.sourceforge-raindog2@...19...> On Saturday 31 January 2004 12:58, Ahmad Kamal wrote: > Just wondering, had VB been limited only to VB internal > functions, it would have been very limited, fortunately we had > Windows APIs! I was wondering if there is any mechanism to > enable us to call standard unix sys calls (or regular C libs) > from within GB (like Dlls from VB). I know that that doesn't > exist up till now, I am asking if it is possible to implement > such a mechanism. Would be pretty interesting huh. A while ago I started to think about writing a sort of "dlopen component" which would try to do much of what you describe, but so far I haven't had to because I haven't run into anything I can't do by running a command line program on a pipe and receiving its output in realtime (which is difficult in windows and impossible in VB.) I think it's only a matter of time, though. Rob From danielcampos at ...45... Sun Feb 1 20:13:09 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sun, 01 Feb 2004 20:13:09 +0100 Subject: [Gambas-devel] net 0.2.2 (curl powered) Message-ID: <1075662789.18346.7.camel@...102...> Well, after the hell of testing that component under libcurl versions 7.10.3, 7.10.4, 7.10.5 , 7.10.6, 7.10.7 , 7.10.8 and the newest 7.11.0, this component should compile on the most common distributions, but note that: * 7.10.7 should work without problems (except the bugs from that libcurl version) * 7.10.6 will not support proxy authentication (was not added until 7.10.7) * 7.10.5 and older will not support HTTP authentication I must encourage all users to upgrade to 7.11.0, as this version has a lot of bug fixes, however you're free to use older versions (see bug list of libcurl at http://curl.haxx.se ) There are lot of changes in its external interface too, thanks to Beno?t. I hope next week just to stabilize that versio, if needed, to make it work fine for the 1.0 version! Regards, Daniel Campos -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: net_0_2_2_gb0_82.tar.bz2 Type: application/x-bzip Size: 71914 bytes Desc: not available URL: From cmcpero at ...28... Mon Feb 2 00:58:01 2004 From: cmcpero at ...28... (Jean-Francois Perreault) Date: Sun, 01 Feb 2004 18:58:01 -0500 Subject: [Gambas-devel] System calls? In-Reply-To: <200402010909.39332.sourceforge-raindog2@...19...> References: <401BECD5.70308@...100...> <200402010909.39332.sourceforge-raindog2@...19...> Message-ID: <401D9289.1060003@...28...> would a component like that allow to access functions in abitrary libs that don't have a gb component ? like, if I want to access pam_save_state() in libpam but there isn't a libpam component made for libpam yet , I could use it anyway with something like this dlopen component you suggest ? (this would open gambas to all the lib that will never have a component) Rob wrote: >On Saturday 31 January 2004 12:58, Ahmad Kamal wrote: > > >> Just wondering, had VB been limited only to VB internal >>functions, it would have been very limited, fortunately we had >>Windows APIs! I was wondering if there is any mechanism to >>enable us to call standard unix sys calls (or regular C libs) >>from within GB (like Dlls from VB). I know that that doesn't >>exist up till now, I am asking if it is possible to implement >>such a mechanism. Would be pretty interesting huh. >> >> > >A while ago I started to think about writing a sort of "dlopen >component" which would try to do much of what you describe, but >so far I haven't had to because I haven't run into anything I >can't do by running a command line program on a pipe and >receiving its output in realtime (which is difficult in windows >and impossible in VB.) I think it's only a matter of time, >though. > >Rob > > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > From eng_ak at ...100... Mon Feb 2 01:22:07 2004 From: eng_ak at ...100... (Ahmad Kamal) Date: Mon, 02 Feb 2004 02:22:07 +0200 Subject: [Gambas-devel] System calls? In-Reply-To: <401D9289.1060003@...28...> References: <401BECD5.70308@...100...> <200402010909.39332.sourceforge-raindog2@...19...> <401D9289.1060003@...28...> Message-ID: <401D982F.9040901@...100...> > (this would open gambas to all the lib that will never have a component) > Exactly man, this is super important. infinite possibilities. If you can write it, please go ahead. From sourceforge-raindog2 at ...19... Mon Feb 2 01:42:32 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 1 Feb 2004 19:42:32 -0500 Subject: [Gambas-devel] System calls? In-Reply-To: <401D982F.9040901@...100...> References: <401BECD5.70308@...100...> <401D9289.1060003@...28...> <401D982F.9040901@...100...> Message-ID: <200402011942.32683.sourceforge-raindog2@...19...> On Sunday 01 February 2004 19:22, Ahmad Kamal wrote: > > (this would open gambas to all the lib that will never have > > a component) > Exactly man, this is super important. infinite possibilities. > If you can write it, please go ahead. I think I've only ever used dlopen() about once in my life, and haven't written any gambas components yet. I decided it must be possible, but if it's me who ends up writing it, it might be 2006 before it gets done ;) Rob From cmcpero at ...28... Mon Feb 2 02:49:01 2004 From: cmcpero at ...28... (Jean-Francois Perreault) Date: Sun, 01 Feb 2004 20:49:01 -0500 Subject: [Gambas-devel] System calls? In-Reply-To: <200402011942.32683.sourceforge-raindog2@...19...> References: <401BECD5.70308@...100...> <401D9289.1060003@...28...> <401D982F.9040901@...100...> <200402011942.32683.sourceforge-raindog2@...19...> Message-ID: <401DAC8D.8030900@...28...> maybe instead of a dlopen component could it be possible to have an update to the function method declaration? for example in vb you would say Declare Function GradientFillRect Lib "msimg32" Alias "GradientFill" (ByVal hdc As Long, pVertex As TRIVERTEX, ByVal dwNumVertex As Long, pMesh As GRADIENT_RECT, ByVal dwNumMesh As Long, ByVal dwMode As Long) As Long this , I believe , would be better than dlopen since it would be faster and maybe would allow more tricky stuff like callbacks maybe ? such as these Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long) now these would also require something like the AddressOf operator to get the pointers to functions and variables , it would probably be a messy hack like it is in VB but it probably could work just the addition of a lib and alias argument to FUNCTION would make gambas so much more powerful anyone can say something about the feasability of this ? btw everyone should read Visual basic hardcore at http://www.mvps.org/vb/hardcore/ it greatly covers the subject of doing something vb never was meant to do Rob wrote: >On Sunday 01 February 2004 19:22, Ahmad Kamal wrote: > > >>>(this would open gambas to all the lib that will never have >>>a component) >>> >>> >>Exactly man, this is super important. infinite possibilities. >>If you can write it, please go ahead. >> >> > >I think I've only ever used dlopen() about once in my life, and >haven't written any gambas components yet. I decided it must be >possible, but if it's me who ends up writing it, it might be >2006 before it gets done ;) > >Rob > > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > From gambas at ...1... Mon Feb 2 14:04:11 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Feb 2004 14:04:11 +0100 Subject: [Gambas-devel] System calls? In-Reply-To: <401BECD5.70308@...100...> References: <401BECD5.70308@...100...> Message-ID: <200402021404.11210.gambas@...1...> On Saturday 31 January 2004 18:58, Ahmad Kamal wrote: > Hi all, > > Just wondering, had VB been limited only to VB internal functions, > it would have been very limited, fortunately we had Windows APIs! I was > wondering if there is any mechanism to enable us to call standard unix > sys calls (or regular C libs) from within GB (like Dlls from VB). I know > that that doesn't exist up till now, I am asking if it is possible to > implement such a mechanism. Would be pretty interesting huh. > > I have already this in mind from a long time! The keyword EXTERN is reserved by the compiler for this usage. The problem I never solved is the following: When you get a function address via dlopen() and dlsym(), you can't call him if you don't know its argument list at Gambas compile time! I don't know, with gcc, how to dynamically call a function knowing its argument list at run time... Without that, I don't know how to implement this interesting feature. Another possibility would be writing a software that takes a library header and transform it directly into a gambas component. This is a huge work yet! Regards, -- Benoit Minisini mailto:gambas at ...1... From jfperreault at ...105... Tue Feb 3 06:38:04 2004 From: jfperreault at ...105... (Jean-Francois Perreault) Date: Tue, 03 Feb 2004 00:38:04 -0500 Subject: [Gambas-devel] System calls? In-Reply-To: <200402021404.11210.gambas@...1...> References: <401BECD5.70308@...100...> <200402021404.11210.gambas@...1...> Message-ID: <401F33BC.9090307@...105...> Benoit Minisini wrote: >Another possibility would be writing a software that takes a library header >and transform it directly into a gambas component. This is a huge work yet! > > > instead of making a lib header to gambas component converter (which I suppose would mean creating a full parser for everything you can come across in a header file) how about having a new file in a project that would contain the function declaration in a clear syntax that then could be more easily recompile into a gambas component ? maybe even at runtime ? (maybe something like vb's type library ?) -- ------------------------- Jean-Francois Perreault jfperreault at ...105... ICQ:783056 Hi! I'm a .sig virus. Copy me into your .signature file to help me spread! From eng_ak at ...100... Sat Feb 7 12:28:32 2004 From: eng_ak at ...100... (Ahmad Kamal) Date: Sat, 07 Feb 2004 13:28:32 +0200 Subject: [Gambas-devel] qt3.3 + redhat9 :) Message-ID: <4024CBE0.8050400@...100...> Hi everyone, QT3.3 was just a few days ago, I downloaded and compiled it (7 hours on my 1Ghz box, whew). Anyway, just wanted to tell everyone, that GB works on it & it works on redhat9 without any black magic. However, I did notice one problem. When running ./configure, it wanted to use the old qt /usr/lib/qt3.1, although the QTDIR env variables are set as QT requires, other software detected and used the new qt (/usr/local/qt) automatically. So, I had to give it, --with-qt-libs and --with-qt-headers. Anyway, after that it just works. From gambas at ...1... Sat Feb 7 17:23:12 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 7 Feb 2004 17:23:12 +0100 Subject: [Gambas-devel] qt3.3 + redhat9 :) In-Reply-To: <4024CBE0.8050400@...100...> References: <4024CBE0.8050400@...100...> Message-ID: <200402071723.12908.gambas@...1...> On Saturday 07 February 2004 12:28, Ahmad Kamal wrote: > Hi everyone, > > QT3.3 was just a few days ago, I downloaded and compiled it (7 > hours on my 1Ghz box, whew). Anyway, just wanted to tell everyone, that > GB works on it & it works on redhat9 without any black magic. > > However, I did notice one problem. When running ./configure, it wanted > to use the old qt /usr/lib/qt3.1, although the QTDIR env variables are > set as QT requires, other software detected and used the new qt > (/usr/local/qt) automatically. So, I had to give it, --with-qt-libs and > --with-qt-headers. > > Anyway, after that it just works. > > I'm a bit surprised, because it seems that it does not really works with Qt 3.2... It is a good news yet :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Sat Feb 7 19:55:06 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sat, 07 Feb 2004 19:55:06 +0100 Subject: [Gambas-devel] net 0.2.2 (again) Message-ID: <1076180106.2577.4.camel@...102...> Hi: This is net version 0.2.2 again, I've just removed "VERBOSE" option from curl initialization. I have been busy this week, but I didn't find any problem in the few tests I could perform. So, Beno?t, could you add this version in the next Gambas release so more people can test it and find bugs? (For the configure.in file, remember that only 'net.curl' component needs libcurl, and also that only 'net' needs thread options) Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: net_0_2_2_gb0_82.tar.bz2 Type: application/x-bzip Size: 71788 bytes Desc: not available URL: From karl.reinl at ...16... Sat Feb 7 21:58:46 2004 From: karl.reinl at ...16... (Charlie) Date: Sat, 07 Feb 2004 21:58:46 +0100 Subject: [Gambas-devel] qt3.3 + redhat9 :) References: <4024CBE0.8050400@...100...> <200402071723.12908.gambas@...1...> Message-ID: <40255186.9090402@...16...> Benoit Minisini schrieb: >On Saturday 07 February 2004 12:28, Ahmad Kamal wrote: > > >>Hi everyone, >> >> QT3.3 was just a few days ago, I downloaded and compiled it (7 >>hours on my 1Ghz box, whew). Anyway, just wanted to tell everyone, that >>GB works on it & it works on redhat9 without any black magic. >> >>However, I did notice one problem. When running ./configure, it wanted >>to use the old qt /usr/lib/qt3.1, although the QTDIR env variables are >>set as QT requires, other software detected and used the new qt >>(/usr/local/qt) automatically. So, I had to give it, --with-qt-libs and >>--with-qt-headers. >> >>Anyway, after that it just works. >> >> >> >> > >I'm a bit surprised, because it seems that it does not really works with Qt >3.2... It is a good news yet :-) > >Regards, > > > It also run with qt-3.2.3 ,but read the attached mails Charlie -------------- next part -------------- An embedded message was scrubbed... From: Charlie Reinl Subject: [Gambas-user] X freezing, while debuging Date: Sat, 31 Jan 2004 21:50:48 +0100 Size: 2508 URL: -------------- next part -------------- An embedded message was scrubbed... From: Charlie Reinl Subject: [Gambas-user] is it me or is it gambas Date: Tue, 3 Feb 2004 20:41:48 +0100 Size: 51489 URL: -------------- next part -------------- An embedded message was scrubbed... From: Charlie Reinl Subject: [Gambas-user] need some help Date: Thu, 29 Jan 2004 19:28:35 +0100 Size: 31254 URL: From danielcampos at ...45... Mon Feb 9 08:59:54 2004 From: danielcampos at ...45... (danielcampos at ...45...) Date: Mon, 9 Feb 2004 08:59:54 CET Subject: [Gambas-devel] About 0.83 and net Message-ID: Hi all: First of all I'll try to explain again, and more clearly, the changes in the 'net' component: 1) I've removed HttpClient from the old 'net' component, that now, has the following classes: Socket, UdpSocket, ServerSocket, SerialPort, Net and DnsClient. This class called just 'net', and placed at '{sources}/src/lib/net' does not need libcurl at all, so it can be compiled without problems even if you have not installed libcurl in your computer. 2) there's a new class called 'net.curl', actually for HttpClient class. I need libcurl because protocols like Http or Ftp are to wide to be implemented in a decent time, specially when using proxies, authentication support and ssl. i need also a recent version of libcurl, as the things I need have been implemented few time ago in libcurl. 3) If you can compile gambas in your computer, it is sure you can also compile libcurl, download the source package from http:/curl.haxx.se, and build it as usual: ./configure --prefix=/usr ' (or another valid prefix) make make install 4) If you just don't want to use HttpClient, try this: go to {sources} folder, and edit configure.in, and look for this: GB_COMPONENT( curl, CURL, [Advanced Networking component], [GB_FIND(curl.h, `curl-config --prefix 2> /dev/null`, include)], [GB_FIND(libcurl.$SHLIBEXT, `curl-config --prefix 2> /dev/null`, lib)], [$C_LIB `curl-config --libs 2> /dev/null`]) And remove all these lines, then look for: src/lib/net/curl/Makefile \ And remove it. After that, go to {sources}/src/lib/net, and then edit Makefile.am, look for this: SUBDIRS = curl And remove that line. Go to {sources}, type : ./reconf ./configure (with your options) make make install And that's all. 5) Finally, it is true that it should be nice to create all network stuff using just Unix libraries, but it also would be nice to write the graphical part without using QT, just Xlibraries, or even writting our own graphical drivers:-), what I mean is that now, a new library is needed to compile all gambas stuff (as the graphical part, postgres and MySQL drivers, etc), and so, I encourage you to install it from sources , as I've selected LibCurl instead of other network libraries as it can be compiled on Linux, FreeBSD, NetBSD, Windows, OS/2,etc, and it is absolutely free even for non GPL programs. What more do you want? free, cheap and beautiful, The only problem is that I need a recent version, as old versions of libcurl lack autherntication support, proxy support, etc. So, finally, help me a little, using that new library, it will be good for Gambas, at least this is the idea. ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From gambas at ...1... Mon Feb 9 14:54:41 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 Feb 2004 14:54:41 +0100 Subject: [Gambas-devel] net 0.2.2 (again) In-Reply-To: <1076180106.2577.4.camel@...102...> References: <1076180106.2577.4.camel@...102...> Message-ID: <200402091454.41978.gambas@...1...> On Saturday 07 February 2004 19:55, Daniel Campos wrote: > Hi: > > This is net version 0.2.2 again, I've just removed "VERBOSE" option > from curl initialization. > > I have been busy this week, but I didn't find any problem in the few > tests I could perform. So, Beno?t, could you add this version in the > next Gambas release so more people can test it and find bugs? > > (For the configure.in file, remember that only 'net.curl' component > needs libcurl, and also that only 'net' needs thread options) > > > Regards, Oops. Too late. But I think I must make a 0.84 quickly for people that have libcurl without really having it, so that the component is disabled :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Tue Feb 10 14:47:07 2004 From: danielcampos at ...45... (danielcampos at ...45...) Date: Tue, 10 Feb 2004 14:47:07 CET Subject: [Gambas-devel] net 0.2.2 (again) Message-ID: >Oops. Too late. But I think I must make a 0.84 quickly for people that >have libcurl without really having it, so that the component is >disabled :-) Don't worry too much, this debug is good if anybody finds a bug using that component. (If anybody wants to use this damn component :-) Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From danielcampos at ...45... Tue Feb 10 18:51:34 2004 From: danielcampos at ...45... (Daniel Campos) Date: Tue, 10 Feb 2004 18:51:34 +0100 Subject: [Gambas-devel] Extrange bug / 0.83 Message-ID: <1076435494.2693.2.camel@...102...> I've opened Gambas to translate current version, and when I perform the following sequence, I have a crash: 1) Open "Translate option" 2) Modify any line of text 3) Press "Save all" (the two dikettes button) 4) I'm going to erase something in a line, so I press "BackSpace" 5) Gambas crashes: FTranslate.txtTranslate_Change.230: #12: Not an object Extrange, isn't it? -- Daniel Campos From danielcampos at ...45... Tue Feb 10 18:58:18 2004 From: danielcampos at ...45... (Daniel Campos) Date: Tue, 10 Feb 2004 18:58:18 +0100 Subject: [Gambas-devel] Spanish translation 0.83 Message-ID: <1076435898.2693.4.camel@...102...> Here's Gambas and Gambas-db translations for 0.83 version regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: es_po_0_83.tar.gz Type: application/x-compressed-tar Size: 14770 bytes Desc: not available URL: From gambas at ...1... Tue Feb 10 19:43:55 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Feb 2004 19:43:55 +0100 Subject: [Gambas-devel] Spanish translation 0.83 In-Reply-To: <1076435898.2693.4.camel@...102...> References: <1076435898.2693.4.camel@...102...> Message-ID: <200402101943.55510.gambas@...1...> On Tuesday 10 February 2004 18:58, Daniel Campos wrote: > Here's Gambas and Gambas-db translations for > 0.83 version > > regards, Thanks! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Feb 11 20:16:19 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Feb 2004 20:16:19 +0100 Subject: [Gambas-devel] Extrange bug / 0.83 In-Reply-To: <1076435494.2693.2.camel@...102...> References: <1076435494.2693.2.camel@...102...> Message-ID: <200402112016.19491.gambas@...1...> On Tuesday 10 February 2004 18:51, Daniel Campos wrote: > I've opened Gambas to translate current version, and when I perform > the following sequence, I have a crash: > > 1) Open "Translate option" > 2) Modify any line of text > 3) Press "Save all" (the two dikettes button) > 4) I'm going to erase something in a line, so I press "BackSpace" > 5) Gambas crashes: > > FTranslate.txtTranslate_Change.230: #12: Not an object > > > Extrange, isn't it? I mistaked the Item property with the Current property... I will fix it for the next version. Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...19... Thu Feb 12 00:09:06 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Wed, 11 Feb 2004 18:09:06 -0500 Subject: [Gambas-devel] Re: [Gambas-user] Gambas and HBasic on newsforge.com In-Reply-To: <200402112201.01749.abidoo.too@...4...> References: <402A41A5.6040209@...43...> <200402112201.01749.abidoo.too@...4...> Message-ID: <200402111803.02203.sourceforge-raindog2@...19...> On Wednesday 11 February 2004 16:01, Fabien Bodard wrote: > Is someone have time to put an eyes about a sqlite driver... Last month I started looking at what would be necessary for a mysql-embedded driver, and the answer is not much. Except there are no packages of mysql-embedded out there, so (at least for Mandrake) I would also need to package mysql-embedded in addition to gambas (maybe since it's an embedded library it would be okay to make a "gambas-mysql-embedded" package.) What complicates this is that mysql is already packaged for Mandrake and most other distros, but they all seem to have disabled the embedded stuff. Only PLD Linux provides a mysql-devel with libmysqld.a, which is what you link against to use embedded mysql. There are sqlite RPM's out there, but of course coding a totally new driver is going to be a lot harder than just tweaking the mysql driver to use mysql-embedded. Rob From danielcampos at ...45... Thu Feb 12 08:35:32 2004 From: danielcampos at ...45... (danielcampos at ...45...) Date: Thu, 12 Feb 2004 08:35:32 CET Subject: [Gambas-devel] Help!! (FTP LIST) Message-ID: Hi all: Currently I'm working on the FtpClient, in the 'List' or 'Dir' command, (as you want to call it), and I don't want to use the NLIST option, as It provides few information, so I use the LIST large format to list files, parsing then the information received to extract names, date and time, lenghts, etc. By now, it can parse the common Unix format: drwxrw-rw- 1 ftp ftp 17 Jan 14 16:37 file.txt And the Windows format: 05-01-03 06:04PM DirName But I know there are at least three well-known common formats: VLM, Novell, AnonFTPD However, I don't remember Novell format (I worked with it a long time ago), and I've never see the VLM and AnonFTPD formats. Could anybody send me examples of files and directories (I need both) listed in that formats? If anybody knows any other format, should also send some examples to me, so I can support them I can't find any example in Internet! Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From danielcampos at ...45... Thu Feb 12 20:39:04 2004 From: danielcampos at ...45... (Daniel Campos) Date: Thu, 12 Feb 2004 20:39:04 +0100 Subject: [Gambas-devel] Spanish translation / 0.84 Message-ID: <1076614704.26842.1.camel@...102...> Spanish translation for 0.84 (just Gambas, database manager has no changes) Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-es-0.84.po Type: text/x-po Size: 52171 bytes Desc: not available URL: From gambas at ...1... Thu Feb 12 22:49:07 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Feb 2004 22:49:07 +0100 Subject: [Gambas-devel] Spanish translation / 0.84 In-Reply-To: <1076614704.26842.1.camel@...102...> References: <1076614704.26842.1.camel@...102...> Message-ID: <200402122249.07519.gambas@...1...> On Thursday 12 February 2004 20:39, Daniel Campos wrote: > Spanish translation for 0.84 (just Gambas, database manager has no > changes) > > Regards, Thanks. -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Mon Feb 16 23:03:39 2004 From: danielcampos at ...45... (Daniel Campos) Date: Mon, 16 Feb 2004 23:03:39 +0100 Subject: [Gambas-devel] buf in "Open" method Message-ID: <1076969019.2604.3.camel@...102...> Hi, Benoit: "Open" stream method seems to fail, I can use it with 'FILE' type, but not with other classes that inherit .Stream A time ago, something similar happened with 'Close' method Regards, Daniel Campos -- Daniel Campos From gambas at ...1... Tue Feb 17 19:37:05 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Feb 2004 19:37:05 +0100 Subject: [Gambas-devel] buf in "Open" method In-Reply-To: <1076969019.2604.3.camel@...102...> References: <1076969019.2604.3.camel@...102...> Message-ID: <200402171937.05207.gambas@...1...> On Monday 16 February 2004 23:03, Daniel Campos wrote: > Hi, Benoit: > > "Open" stream method seems to fail, I can use it with 'FILE' > type, but not with other classes that inherit .Stream > > A time ago, something similar happened with 'Close' method > > Regards, > > Daniel Campos Do you have a concrete example of this failure please ? Regards, -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Tue Feb 17 20:21:48 2004 From: danielcampos at ...45... (Daniel Campos) Date: Tue, 17 Feb 2004 20:21:48 +0100 Subject: [Gambas-devel] Zlib Message-ID: <1077045600.6213.7.camel@...102...> Hi: I'm at 'network' hollydays now, so I'm writting a ZLIB wrapper ( http://www.gzip.org/zlib ) to relax a little. By now, it has a class 'ZStream' to allow read and write from gzippez files directly as if it were usual files. I can not use 'OPEN' stream method by now, as it does not accept my object as a valid 'FILE?', but the rest of streams methods works. Once you untar this file, copy 'zlib' folder to {gambas sources}/src/lib , then copy attacheed configure.in to replace current gambas configure.in, type ./reconf, and ./configure with your usual options, go to {gambas sources}/src/lib/zlib, do 'make' and 'make install'. You have also a very little example at zlib/example Regards, Daniel Campos -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: zlib.tar.gz Type: application/x-compressed-tar Size: 5160 bytes Desc: not available URL: -------------- next part -------------- dnl --------------------------------- dnl dnl configure.in for Gambas dnl (c) Beno?t Minisini 2000-2003 dnl dnl --------------------------------- dnl ---- Initialization AC_INIT(src/share/gambas.h) AM_MAINTAINER_MODE AC_CONFIG_SUBDIRS(libltdl) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(gambas, 0.84a) AC_PREFIX_DEFAULT(/opt/gambas) AC_DISABLE_STATIC AC_CANONICAL_HOST dnl ---- Checks for programs AC_PROG_CC AC_PROG_CPP AC_PROG_CXX AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET dnl ---- Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h limits.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h) dnl ---- Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM dnl ---- Checks for library functions. AC_FUNC_ALLOCA AC_PROG_GCC_TRADITIONAL AC_TYPE_SIGNAL AC_FUNC_STRCOLL AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_FUNC_WAIT3 AC_CHECK_FUNCS(getcwd gettimeofday mkdir rmdir select socket strdup strerror strtod strtol) AC_REPLACE_FUNCS(setenv unsetenv) dnl ---- Support for libltdl AC_LIBTOOL_DLOPEN AC_LIBLTDL_CONVENIENCE AC_PROG_LIBTOOL AC_SUBST(INCLTDL) AC_SUBST(LIBLTDL) LD_FLAGS=-no-undefined AC_SUBST(LD_FLAGS) dnl ---- Checks for libraries AC_CHECK_LIB(m, main, echo -n) AC_CHECK_LIB(z, main, echo -n) C_LIB=-lc AC_SUBST(C_LIB) AC_CHECK_LIB(gcc_s, main, CXX_LIB="$CXX_LIB -lgcc_s") AC_CHECK_LIB(stdc++, main, CXX_LIB="$CXX_LIB -lstdc++") AC_SUBST(CXX_LIB) dnl ---- Check for shared library extension GB_SHARED_LIBRARY_EXT() dnl ---- Check for threading GB_THREAD() dnl ---- Check for internationalization library GB_COMPONENT( intl, INTL, [internationalization library (if not present in C library)], [GB_FIND(libintl.h, /usr/local /usr, include)], [GB_FIND(libintl.$SHLIBEXT, /usr/local /usr, lib)], [-lintl]) dnl ---- Check for charset conversion library GB_COMPONENT( conv, CONV, [charset conversion library (if not present in C library)], [GB_FIND(iconv.h, /usr/local /usr, include)], [GB_FIND(libiconv.$SHLIBEXT, /usr/local /usr, lib)], [-liconv]) dnl ---- Checks for components GB_COMPONENT( qt, QT, [QT component], [GB_FIND(qptrlist.h, /usr/lib /usr/local /usr/X11 /usr/X11R6 /usr, include qt*/include qt/*/include)], [GB_FIND(libqt-mt.$SHLIBEXT, /usr/local /usr/qt /usr/qt/* /usr/X11 /usr/X11R6 /usr, lib, libqt-mt.so.3)], [$CXX_LIB $THREAD_LIB $X_LIBS -lqt-mt], [$THREAD_INC]) if test "$have_qt"="yes"; then AC_PATH_X AC_PATH_XTRA AC_CHECK_LIB(X11, XOpenDisplay, echo -n, AC_MSG_ERROR([*** libX11 not found. Check 'config.log' for more details.]), $X_LIBS) AC_CHECK_LIB(Xext, XShmAttach, echo -n, AC_MSG_ERROR([*** libXext not found. Check 'config.log' for more details.]), $X_LIBS) dnl AC_MSG_CHECKING(for QT meta-object compiler) AC_PATH_QT_MOC($QT_PATH) GB_COMPONENT( kde, KDE, [KDE 3.x component], [GB_FIND(kapplication.h, `kde-config --prefix 2> /dev/null`, include)], [GB_FIND(libkdecore.$SHLIBEXT, `kde-config --prefix 2> /dev/null`, lib)], [-lkdecore -lkdeui -lDCOP -lkio]) fi dnl ---- Networking component GB_COMPONENT( net, NET, [Networking component], [], [], [$C_LIB $THREAD_LIB], [$THREAD_INC]) dnl ---- Advanced networking component GB_COMPONENT( curl, CURL, [Advanced networking component], [GB_FIND(curl.h, `curl-config --prefix 2> /dev/null`, include)], [GB_FIND(libcurl.$SHLIBEXT, `curl-config --prefix 2> /dev/null`, lib)], [$C_LIB `curl-config --libs 2> /dev/null`]) dnl ---- Database components GB_COMPONENT( postgresql, PGSQL, [PostgreSQL driver], [GB_FIND(libpq-fe.h postgres.h pg_type.h, /usr/lib /usr/local /usr /opt, include/pgsql* pgsql*/include include/postgresql* postgresql*/include include)], [GB_FIND(libpq.$SHLIBEXT, /usr/local /usr /opt, lib pgsql*/lib postgresql*/lib)], [$C_LIB -lpq]) GB_COMPONENT( mysql, MYSQL, [MySQL driver], [GB_FIND(mysql.h my_config.h, /usr/lib /usr/local /opt /usr, include mysql*/include)], [GB_FIND(libmysqlclient.$SHLIBEXT, /usr/local /opt /usr, lib mysql*/lib)], [$C_LIB -lmysqlclient -lz]) dnl ---- SDL component needs: libvorbisfile.la libsmpeg.la libogg.la GB_COMPONENT( sdl, SDL, [SDL component], [GB_FIND(SDL.h SDL_mixer.h, /usr/local /usr, include SDL*/include include/SDL*)], [GB_FIND(libSDL.$SHLIBEXT libSDL_mixer.$SHLIBEXT, /usr/local /usr, lib SDL*/lib lib/SDL*)], [$C_LIB $THREAD_LIB -lSDL -lSDL_mixer], [$THREAD_INC]) dnl ---- VB component GB_COMPONENT( vb, VB, [Visual Basic compatibility component], [], [], [$C_LIB $THREAD_LIB], [$THREAD_INC]) dnl ---- Zlib component GB_COMPONENT( zlib, ZLIB, [ZLIB wrapper], [], [], [$C_LIB], []) dnl ---- Other options AC_ARG_ENABLE( debug, [ --enable-debug compile for debugging (default: yes)], gambas_debug=$enableval, gambas_debug=yes ) AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes) AC_ARG_ENABLE( optimization, [ --enable-optimization compile with optimizations (default: no)], gambas_optimization=$enableval, gambas_optimization=no ) AM_CONDITIONAL(OPTIMIZE, test "$gambas_optimization" = yes) AC_ARG_ENABLE( profiling, [ --enable-profiling compile with profiling (default: no)], gambas_prof=$enableval, gambas_prof=no ) AC_ARG_ENABLE( preloading, [ --enable-preloading enable preloading (default: yes)], gambas_preloading=$enableval, gambas_preloading=yes ) if test "$gambas_preloading" = "yes"; then AC_DEFINE(DO_PRELOADING, 1, allows shared library preloading ) fi CFLAGS="$CFLAGS -pipe -Wall" CXXFLAGS="$CXXFLAGS -pipe -Wall -fno-exceptions" if test "$gambas_prof" = "yes"; then CFLAGS="$CFLAGS -pg" CXXFLAGS="$CXXFLAGS -pg" # if test "$gambas_optimization" = "yes"; then # echo -e "\n**** Warning: --enable-profiling implies --disable-optimization\n" # gambas_optimization="no"; # fi fi if test "$gambas_debug" = "yes"; then CFLAGS="$CFLAGS -g" CXXFLAGS="$CXXFLAGS -g" fi # gambas_flag="-O2 -fstrength-reduce -frerun-loop-opt -fexpensive-optimizations -fschedule-insns2 -funroll-loops" # gambas_flags="$gambas_flags -fno-strict-aliasing -falign-loops=2 -falign-jumps=2" # gambas_flags="$gambas_flags -falign-functions=2 -ffast-math" if test "$gambas_prof" = "no"; then gambas_flags="$gambas_flags -fomit-frame-pointer" fi if test "x$gambas_optimization" = "xyes"; then CFLAGS="$CFLAGS -Os" CXXFLAGS="$CXXFLAGS -Os" else CFLAGS="$CFLAGS -O0" CXXFLAGS="$CXXFLAGS -O0" fi dnl ---- Create makefiles AC_OUTPUT( \ Makefile \ src/Makefile \ src/share/Makefile \ src/comp/Makefile \ src/exec/Makefile \ src/lib/Makefile \ src/lib/eval/Makefile \ src/lib/example/Makefile \ src/lib/qt/Makefile \ src/lib/qt/editor/Makefile \ src/lib/qt/ext/Makefile \ src/lib/qt/kde/Makefile \ src/lib/qt/kde/html/Makefile \ src/lib/db/Makefile \ src/lib/db/mysql/Makefile \ src/lib/db/postgresql/Makefile \ src/lib/sdl/Makefile \ src/lib/zlib/Makefile \ src/lib/net/Makefile \ src/lib/net/curl/Makefile \ src/lib/vb/Makefile \ ) From gambas at ...1... Tue Feb 17 21:27:46 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Feb 2004 21:27:46 +0100 Subject: [Gambas-devel] Zlib In-Reply-To: <1077045600.6213.7.camel@...102...> References: <1077045600.6213.7.camel@...102...> Message-ID: <200402172127.46867.gambas@...1...> On Tuesday 17 February 2004 20:21, Daniel Campos wrote: > Hi: > > I'm at 'network' hollydays now, so I'm writting a ZLIB wrapper > ( http://www.gzip.org/zlib ) to relax a little. > > By now, it has a class 'ZStream' to allow read and write from > gzippez files directly as if it were usual files. > > I can not use 'OPEN' stream method by now, as it does not accept > my object as a valid 'FILE?', but the rest of streams methods > works. > > Once you untar this file, copy 'zlib' folder to {gambas sources}/src/lib > , then copy attacheed configure.in to replace current gambas > configure.in, type ./reconf, and ./configure with your usual > options, go to {gambas sources}/src/lib/zlib, do 'make' and 'make > install'. > > You have also a very little example at zlib/example > > Regards, > > Daniel Campos Actually, OPEN has no hooks. It can only create buffered, direct or "archive" streams (i.e. stream that read file stored in a project executable). It decides what kind of stream it creates by analyzing the path (relative/absolute) and the keyword DIRECT. The (*open) field is the STREAM structure is used by the OPEN command only in these cases! To open your "zlib" stream, the user will have to instanciate the class you created, as he had to with Socket streams. DIM hFile AS CompressedFile hFile = NEW CompressedFile("/home/gambas/source.gz", "rw", 9) In the future, we could imagine an URL-based OPEN, and that stream types will register under an URL protocol. Something like OPEN "gzip:/home/gambas/source.gz" FOR READ or OPEN "/home/gambas/source.gz" PROTOCOL "gzip" FOR READ. But I prefer when you instanciate streams. And you can add parameters to the stream constructor! For example, the compression rate for the zlib. Or OPEN could get a stream type to create the appropriate stream. This will be intelligent! DIM hFile AS CompressedFile OPEN CompressedFile "/home/benoit/source.gz" FOR CREATE AS hFile I prefer the last soultion finally :-) What do you think ? Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Tue Feb 17 21:10:28 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Tue, 17 Feb 2004 21:10:28 +0100 Subject: [Gambas-devel] buf in "Open" method In-Reply-To: <200402171937.05207.gambas@...1...> References: <1076969019.2604.3.camel@...102...> <200402171937.05207.gambas@...1...> Message-ID: <1077048628.6670.2.camel@...102...> El mar, 17-02-2004 a las 19:37, Benoit Minisini escribi?: > On Monday 16 February 2004 23:03, Daniel Campos wrote: > > Hi, Benoit: > > > > "Open" stream method seems to fail, I can use it with 'FILE' > > type, but not with other classes that inherit .Stream > > > > A time ago, something similar happened with 'Close' method > > > > Regards, > > > > Daniel Campos > > Do you have a concrete example of this failure please ? > Try to enable it in the zlib wrapper... > Regards, From danielcampos at ...45... Wed Feb 18 12:00:49 2004 From: danielcampos at ...45... (danielcampos at ...45...) Date: Wed, 18 Feb 2004 12:00:49 CET Subject: [Gambas-devel] Zlib Message-ID: > >created, as he had to with Socket streams. > >DIM hFile AS CompressedFile >hFile = NEW CompressedFile("/home/gambas/source.gz", "rw", 9) > >In the future, we could imagine an URL-based OPEN, and that stream >types will >register under an URL protocol. Something like OPEN >"gzip:/home/gambas/source.gz" FOR READ or OPEN >"/home/gambas/source.gz" >PROTOCOL "gzip" FOR READ. > > >But I prefer when you instanciate streams. And you can add parameters >to the >stream constructor! For example, the compression rate for the zlib. > >Or OPEN could get a stream type to create the appropriate stream. >This will be >intelligent! > >DIM hFile AS CompressedFile >OPEN CompressedFile "/home/benoit/source.gz" FOR CREATE AS hFile > >I prefer the last soultion finally :-) > >What do you think ? > This last solution seems to be more ellegant, however, you'd need to add in any part the special options for any stream, for exmple: OPEN CompressedFile "/home/benoit/source.gz" FOR CREATE AS hFile USING PARAMS "compression=9" or, in HttpClient: OPEN HttpClient "http://www.binara.com" FOR READ AS hFile USING PARAMS "POSTMETHOD" or OPEN HttpClient "http://www.binara.com" FOR READ AS hFile USING PARAMS "GETMETHOD" that paremeters should be passed to the object, so it can interpeter these options regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From nigel at ...2... Thu Feb 19 10:52:31 2004 From: nigel at ...2... (Nigel Gerrard) Date: Thu, 19 Feb 2004 09:52:31 -0000 Subject: [Gambas-devel] Setting/Toggling Breakpoints in Debug Message-ID: <007c01c3f6ce$196410b0$030a0a0a@...97...> Benoit, Is there any reason that F9 does not appear in a menu within the IDE Debug Mode? Every time I have a break from doing such debugging (days maybe even weeks :-), I forget which key it is and have to peruse the IDE code to remind myself. Infact, for my benefit I have started to add it to the menus on each new release, but because it is not mentioned anywhere, people may be missing it's use. Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu Feb 19 14:42:19 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Feb 2004 14:42:19 +0100 Subject: [Gambas-devel] Setting/Toggling Breakpoints in Debug In-Reply-To: <007c01c3f6ce$196410b0$030a0a0a@...97...> References: <007c01c3f6ce$196410b0$030a0a0a@...97...> Message-ID: <200402191442.19696.gambas@...1...> On Thursday 19 February 2004 10:52, Nigel Gerrard wrote: > Benoit, > > Is there any reason that F9 does not appear in a menu within the IDE Debug > Mode? Every time I have a break from doing such debugging (days maybe even > weeks :-), I forget which key it is and have to peruse the IDE code to > remind myself. > > Infact, for my benefit I have started to add it to the menus on each new > release, but because it is not mentioned anywhere, people may be missing > it's use. > > Nigel Hi, Nigel, There is no reason. It is just that I didn't have time to do it... You will get it in the next version, as I added it a few days ago. Regards, -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Thu Feb 19 22:13:54 2004 From: danielcampos at ...45... (Daniel Campos) Date: Thu, 19 Feb 2004 22:13:54 +0100 Subject: [Gambas-devel] Zib 0.2 Message-ID: <1077225234.9368.9.camel@...102...> Hi! My 'zlib' component is near to be finished, I've added a virtual class 'Zengine' which provides four static methods: * GZip(Source As String,Target As String,[Level As String]) Compresses source file in target file, using specified level of compression (0 low-9 best). The target file is in GZIP format * Gunzip (Source As String,Target As String) Decompresses source gzip file into target file * DeflateString(Source As String,[Level As String],[AllowGrow As Boolean) As String Compresses source string and returns it, using 'Deflate' algorithm (it is not exactly the same as Gzip), if 'AllowGrow' value is FALSE (default), the returned string will be deflated only if the result of that operation is a string with less length than the original string, if not, it will return the original string untouched. InflateString(Source As String) Returns a string expanded using 'Inflate' method Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: zlib_0_2_gb_0_84a.tar.gz Type: application/x-compressed-tar Size: 5846 bytes Desc: not available URL: From Lamego at ...108... Fri Feb 20 08:56:20 2004 From: Lamego at ...108... (Joao Pinto) Date: Fri, 20 Feb 2004 07:56:20 +0000 Subject: [Gambas-devel] some suggestions Message-ID: <4035BDA4.70207@...108...> Hello, just some suggestions: Create New Project -------------------------- on the "Create New Project" dialog box, the file list always renders any image files no matter the type of view you select list/icon, I don't believe its a good option for a project selection dialog... Copy & Paste ------------------- The CTRL-INS (Copy), SHIFT-INS(Paste) keys combination should be available. An option to enable auto-copy on select and paste with the 3rd mouse button (unix common) would also be nice. It's all for now :) -- Jo?o Lu?s Marques Pinto PTlink Technical Administrator Lamego at ...108... http://www.ptlink.net From danielcampos at ...45... Fri Feb 20 19:15:55 2004 From: danielcampos at ...45... (Daniel Campos) Date: Fri, 20 Feb 2004 19:15:55 +0100 Subject: [Gambas-devel] Zlib 1.0 Message-ID: <1077300954.7645.7.camel@...102...> Hi all! By now, I can consider the Zlib library finished, so If anybody ( anybeno?t? :-) is interested in including it in a Gambas release I would be very proud. The only library needed to use this component (apart from glibc), is zlib (switch -lz in gcc). Currently I'm using zlib 1.2.1 from Mandrake 9.2, I hope this library will give less problems than curl! The next step is to do it with "bzip2" compression format (I've look at bzlib documentation and I think in two or three days I'll can send a component with the same interface, but using 'BZStream' and 'BZEngine' classes) Then I'll be back to curl work, I've not missed my origins :-) Regards, Daniel Campos -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: zlib1-gambas084a.tar.gz Type: application/x-compressed-tar Size: 4445 bytes Desc: not available URL: From abidoo.too at ...4... Fri Feb 20 21:58:12 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Fri, 20 Feb 2004 21:58:12 +0100 Subject: [Gambas-devel] some suggestions In-Reply-To: <4035BDA4.70207@...108...> References: <4035BDA4.70207@...108...> Message-ID: <200402202158.12183.abidoo.too@...4...> Le Vendredi 20 F?vrier 2004 08:56, Joao Pinto a ?crit : > Hello, > just some suggestions: > > Create New Project > -------------------------- > on the "Create New Project" dialog box, the file list always renders any > image files no matter the type of view you select list/icon, I don't > believe its a good option for a project selection dialog... You can already diseable this option... by use yhe context menu Fabien > Copy & Paste > ------------------- > The CTRL-INS (Copy), SHIFT-INS(Paste) keys combination should be available. > An option to enable auto-copy on select and paste with the 3rd mouse > button (unix common) would also be nice. > > It's all for now :) From nigel at ...2... Sat Feb 21 00:19:13 2004 From: nigel at ...2... (Nigel Gerrard) Date: Fri, 20 Feb 2004 23:19:13 -0000 Subject: [Gambas-devel] Updates for the mysql driver Message-ID: <001701c3f808$264eef80$0f804c51@...97...> Benoit, I have made additions/corrections to the mysql driver. The changes primarily concern the table_create which could cause the database manager to crash with the loss of the table when changing/setting the primary key. I have also added code for the database manager. These are the difference patches that should be applied to the 0.84a version. Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mysql.tar Type: application/x-tar Size: 10240 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-database-manager.tar Type: application/x-tar Size: 10240 bytes Desc: not available URL: From eng_ak at ...100... Sat Feb 21 14:05:00 2004 From: eng_ak at ...100... (Ahmad Kamal) Date: Sat, 21 Feb 2004 15:05:00 +0200 Subject: [Gambas-devel] GB + Parrot Message-ID: <4037577C.5050204@...100...> Hi everyone, A while ago I asked whether it would be possible to make system calls from within GB. Well, now I have another crazy idea I would like to discuss with you. It's pretty much the same concept but calling parrot code instead of sys calls. To those of you who haven't heard about Parrot. Parrot is the Perl6 run time engine. i.e. Perl6 code will be compiled to bytecode (like java) and run by Parrot. Actually the cool thing, is that Python will do the same, which means you can call python modules from within perl and vice versa. In fact, Parrot can be targeted by any other language (GB) so that that language will be able to 'talk' to others. Which is super cool if you ask me. If a baby language like GB gets access to the decades of perl modules out there, it would push it light years forward. Also, this way, we (& others) don't have to re-invent the wheel everytime we write a module. But a good network/multimedia/DB/... modules gets written, and GB, Perl, Python,.... use it. So, the basic idea is that we want GB to interface Parrot, this can be 2 way: 1- Full duplex (Perl calls GB modules and vice versa) 2- Half duplex (GB only can call perl/python code) Of course full duplex method is better, but IMHO, it is difficult as well. However, the half duplex way is what will be needed 90% of the time, and is IMHO much easier to implement (like Zope's Python.Net). Of course, I am not sure how difficult either way is, so correct me if I am wrong. Anyway, this is probably a post ver 1.0 issue, but I believe this can really help GB/others become mainstream languages. Combine GB easy GUI model, with tons of perl/python code, you're unbeatable :) One thing escapes me though, after having learned about Parrot, is what is the difference between it and mono/.net , which are also run time engines which also make other languages talk to each other (c# , VB.net,...) What is the core difference here? We could interface mono, if it would be better. Are you still reading up till here :) regards From sourceforge-raindog2 at ...19... Sun Feb 22 18:37:25 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 22 Feb 2004 12:37:25 -0500 Subject: [Gambas-devel] GB + Parrot In-Reply-To: <4037577C.5050204@...100...> References: <4037577C.5050204@...100...> Message-ID: <200402221237.25262.sourceforge-raindog2@...19...> On Saturday 21 February 2004 08:05, Ahmad Kamal wrote: > To those of you who haven't heard about Parrot. Parrot is the > Perl6 run time engine. i.e. Perl6 code will be compiled to > bytecode (like java) and run by Parrot. Actually the cool ... > if you ask me. If a baby language like GB gets access to the > decades of perl modules out there, it would push it light > years forward. Also, this way, we (& others) don't have to The problem is, many if not most perl modules will end up needing to be rewritten for perl6 in order to be parrotized. It's similar to getting VB6 code working under VB.net. I'm not ready to touch Parrot until after perl6 becomes the de facto perl. I think enough of the web is running on perl5 now that it'll take a while for it to get replaced (and the web is a far bigger place than it was when perl5 was released.) But it does make more sense to me as a quasi-universal interface to system calls than trying to copy that VB "declare function lib random.dll" stuff. Not to mention that it's more portable. Rob From danielcampos at ...45... Sun Feb 22 19:42:16 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sun, 22 Feb 2004 19:42:16 +0100 Subject: [Gambas-devel] Zlib and BZlib Message-ID: <1077475336.2808.11.camel@...102...> Hi all! These are the final versions of Zlib and BZLib components, that allows to compress data using zlib and bzlib2 libraries. I've implemented the bzlib component today, and made some changes in zlib component. Their interfaces are quite similar, however there are some differences: ZEngine has two methods to compress strings directly : 'DeflateString' and 'InflateString', that uses an algorithm a little different from Gzip one. BZEngine provides: 'BzipString'and 'BuzipString' which works exatly using the same bzip2 format. This is due to the capabilities of both libraries. To compile these libraries: 0) You need gambas-0.84 or newer 1) Copy both 'zlib' and 'bzlib' folders to {gambas sources}/src/lib 2) Copy the attached configure.in to {gambas sources} instead of the original configure.in 3) Type : ./reconf 4) Type : ./configure (with your options) 5) Go to {gambas sources}/src/lib/zlib, then 'make' and 'make install' 6) Go to {gambas sources}/src/lib/bzlib, then 'make' and 'make install' 7) OK, done Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: compression_1_0.tar.bz2 Type: application/x-bzip Size: 7539 bytes Desc: not available URL: -------------- next part -------------- dnl --------------------------------- dnl dnl configure.in for Gambas dnl (c) Beno??? Minisini 2000-2003 dnl dnl --------------------------------- dnl ---- Initialization AC_INIT(src/share/gambas.h) AM_MAINTAINER_MODE AC_CONFIG_SUBDIRS(libltdl) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(gambas, 0.84a) AC_PREFIX_DEFAULT(/opt/gambas) AC_DISABLE_STATIC AC_CANONICAL_HOST dnl ---- Checks for programs AC_PROG_CC AC_PROG_CPP AC_PROG_CXX AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET dnl ---- Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h limits.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h) dnl ---- Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM dnl ---- Checks for library functions. AC_FUNC_ALLOCA AC_PROG_GCC_TRADITIONAL AC_TYPE_SIGNAL AC_FUNC_STRCOLL AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_FUNC_WAIT3 AC_CHECK_FUNCS(getcwd gettimeofday mkdir rmdir select socket strdup strerror strtod strtol) AC_REPLACE_FUNCS(setenv unsetenv) dnl ---- Support for libltdl AC_LIBTOOL_DLOPEN AC_LIBLTDL_CONVENIENCE AC_PROG_LIBTOOL AC_SUBST(INCLTDL) AC_SUBST(LIBLTDL) LD_FLAGS=-no-undefined AC_SUBST(LD_FLAGS) dnl ---- Checks for libraries AC_CHECK_LIB(m, main, echo -n) AC_CHECK_LIB(z, main, echo -n) C_LIB=-lc AC_SUBST(C_LIB) AC_CHECK_LIB(gcc_s, main, CXX_LIB="$CXX_LIB -lgcc_s") AC_CHECK_LIB(stdc++, main, CXX_LIB="$CXX_LIB -lstdc++") AC_SUBST(CXX_LIB) dnl ---- Check for shared library extension GB_SHARED_LIBRARY_EXT() dnl ---- Check for threading GB_THREAD() dnl ---- Check for internationalization library GB_COMPONENT( intl, INTL, [internationalization library (if not present in C library)], [GB_FIND(libintl.h, /usr/local /usr, include)], [GB_FIND(libintl.$SHLIBEXT, /usr/local /usr, lib)], [-lintl]) dnl ---- Check for charset conversion library GB_COMPONENT( conv, CONV, [charset conversion library (if not present in C library)], [GB_FIND(iconv.h, /usr/local /usr, include)], [GB_FIND(libiconv.$SHLIBEXT, /usr/local /usr, lib)], [-liconv]) dnl ---- Checks for components GB_COMPONENT( qt, QT, [QT component], [GB_FIND(qptrlist.h, /usr/lib /usr/local /usr/X11 /usr/X11R6 /usr, include qt*/include qt/*/include)], [GB_FIND(libqt-mt.$SHLIBEXT, /usr/local /usr/qt /usr/qt/* /usr/X11 /usr/X11R6 /usr, lib, libqt-mt.so.3)], [$CXX_LIB $THREAD_LIB $X_LIBS -lqt-mt], [$THREAD_INC]) if test "$have_qt"="yes"; then AC_PATH_X AC_PATH_XTRA AC_CHECK_LIB(X11, XOpenDisplay, echo -n, AC_MSG_ERROR([*** libX11 not found. Check 'config.log' for more details.]), $X_LIBS) AC_CHECK_LIB(Xext, XShmAttach, echo -n, AC_MSG_ERROR([*** libXext not found. Check 'config.log' for more details.]), $X_LIBS) dnl AC_MSG_CHECKING(for QT meta-object compiler) AC_PATH_QT_MOC($QT_PATH) GB_COMPONENT( kde, KDE, [KDE 3.x component], [GB_FIND(kapplication.h, `kde-config --prefix 2> /dev/null`, include)], [GB_FIND(libkdecore.$SHLIBEXT, `kde-config --prefix 2> /dev/null`, lib)], [-lkdecore -lkdeui -lDCOP -lkio]) fi dnl ---- Networking component GB_COMPONENT( net, NET, [Networking component], [], [], [$C_LIB $THREAD_LIB], [$THREAD_INC]) dnl ---- Advanced networking component GB_COMPONENT( curl, CURL, [Advanced networking component], [GB_FIND(curl.h, `curl-config --prefix 2> /dev/null`, include)], [GB_FIND(libcurl.$SHLIBEXT, `curl-config --prefix 2> /dev/null`, lib)], [$C_LIB `curl-config --libs 2> /dev/null`]) dnl ---- Database components GB_COMPONENT( postgresql, PGSQL, [PostgreSQL driver], [GB_FIND(libpq-fe.h postgres.h pg_type.h, /usr/lib /usr/local /usr /opt, include/pgsql* pgsql*/include include/postgresql* postgresql*/include include)], [GB_FIND(libpq.$SHLIBEXT, /usr/local /usr /opt, lib pgsql*/lib postgresql*/lib)], [$C_LIB -lpq]) GB_COMPONENT( mysql, MYSQL, [MySQL driver], [GB_FIND(mysql.h my_config.h, /usr/lib /usr/local /opt /usr, include mysql*/include)], [GB_FIND(libmysqlclient.$SHLIBEXT, /usr/local /opt /usr, lib mysql*/lib)], [$C_LIB -lmysqlclient -lz]) dnl ---- SDL component needs: libvorbisfile.la libsmpeg.la libogg.la GB_COMPONENT( sdl, SDL, [SDL component], [GB_FIND(SDL.h SDL_mixer.h, /usr/local /usr, include SDL*/include include/SDL*)], [GB_FIND(libSDL.$SHLIBEXT libSDL_mixer.$SHLIBEXT, /usr/local /usr, lib SDL*/lib lib/SDL*)], [$C_LIB $THREAD_LIB -lSDL -lSDL_mixer], [$THREAD_INC]) dnl ---- VB component GB_COMPONENT( vb, VB, [Visual Basic compatibility component], [], [], [$C_LIB $THREAD_LIB], [$THREAD_INC]) dnl ---- Zlib component GB_COMPONENT( zlib, ZLIB, [ZLIB wrapper], [], [], [$C_LIB], []) dnl ---- BZlib component GB_COMPONENT( bzlib, BZLIB, [BZLIB wrapper], [], [], [$C_LIB], []) dnl ---- Other options AC_ARG_ENABLE( debug, [ --enable-debug compile for debugging (default: yes)], gambas_debug=$enableval, gambas_debug=yes ) AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes) AC_ARG_ENABLE( optimization, [ --enable-optimization compile with optimizations (default: no)], gambas_optimization=$enableval, gambas_optimization=no ) AM_CONDITIONAL(OPTIMIZE, test "$gambas_optimization" = yes) AC_ARG_ENABLE( profiling, [ --enable-profiling compile with profiling (default: no)], gambas_prof=$enableval, gambas_prof=no ) AC_ARG_ENABLE( preloading, [ --enable-preloading enable preloading (default: yes)], gambas_preloading=$enableval, gambas_preloading=yes ) if test "$gambas_preloading" = "yes"; then AC_DEFINE(DO_PRELOADING, 1, allows shared library preloading ) fi CFLAGS="$CFLAGS -pipe -Wall" CXXFLAGS="$CXXFLAGS -pipe -Wall -fno-exceptions" if test "$gambas_prof" = "yes"; then CFLAGS="$CFLAGS -pg" CXXFLAGS="$CXXFLAGS -pg" # if test "$gambas_optimization" = "yes"; then # echo -e "\n**** Warning: --enable-profiling implies --disable-optimization\n" # gambas_optimization="no"; # fi fi if test "$gambas_debug" = "yes"; then CFLAGS="$CFLAGS -g" CXXFLAGS="$CXXFLAGS -g" fi # gambas_flag="-O2 -fstrength-reduce -frerun-loop-opt -fexpensive-optimizations -fschedule-insns2 -funroll-loops" # gambas_flags="$gambas_flags -fno-strict-aliasing -falign-loops=2 -falign-jumps=2" # gambas_flags="$gambas_flags -falign-functions=2 -ffast-math" if test "$gambas_prof" = "no"; then gambas_flags="$gambas_flags -fomit-frame-pointer" fi if test "x$gambas_optimization" = "xyes"; then CFLAGS="$CFLAGS -Os" CXXFLAGS="$CXXFLAGS -Os" else CFLAGS="$CFLAGS -O0" CXXFLAGS="$CXXFLAGS -O0" fi dnl ---- Create makefiles AC_OUTPUT( \ Makefile \ src/Makefile \ src/share/Makefile \ src/comp/Makefile \ src/exec/Makefile \ src/lib/Makefile \ src/lib/eval/Makefile \ src/lib/example/Makefile \ src/lib/qt/Makefile \ src/lib/qt/editor/Makefile \ src/lib/qt/ext/Makefile \ src/lib/qt/kde/Makefile \ src/lib/qt/kde/html/Makefile \ src/lib/db/Makefile \ src/lib/db/mysql/Makefile \ src/lib/db/postgresql/Makefile \ src/lib/sdl/Makefile \ src/lib/zlib/Makefile \ src/lib/bzlib/Makefile \ src/lib/net/Makefile \ src/lib/net/curl/Makefile \ src/lib/vb/Makefile \ ) From abidoo.too at ...4... Sun Feb 22 20:00:19 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Sun, 22 Feb 2004 20:00:19 +0100 Subject: [Gambas-devel] Zlib and BZlib In-Reply-To: <1077475336.2808.11.camel@...102...> References: <1077475336.2808.11.camel@...102...> Message-ID: <200402222000.19131.abidoo.too@...4...> Le Dimanche 22 F?vrier 2004 19:42, Daniel Campos a ?crit : > Hi all! > > These are the final versions of Zlib and BZLib components, > that allows to compress data using zlib and bzlib2 libraries. > > I've implemented the bzlib component today, and made some changes > in zlib component. > > Their interfaces are quite similar, however there are some differences: > > ZEngine has two methods to compress strings directly : > > 'DeflateString' and 'InflateString', that uses an algorithm a little > different from Gzip one. > > BZEngine provides: > > 'BzipString'and 'BuzipString' which works exatly using the same bzip2 > format. > > This is due to the capabilities of both libraries. > > To compile these libraries: > > 0) You need gambas-0.84 or newer > 1) Copy both 'zlib' and 'bzlib' folders to {gambas sources}/src/lib > 2) Copy the attached configure.in to {gambas sources} instead of the > original configure.in 2 bis) modify you Makefile.am in src/lib directory or change it by this one > 3) Type : ./reconf > 4) Type : ./configure (with your options) > 5) Go to {gambas sources}/src/lib/zlib, then 'make' and 'make install' > 6) Go to {gambas sources}/src/lib/bzlib, then 'make' and 'make install' > 7) OK, done > > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.am Type: text/x-makefile Size: 153 bytes Desc: not available URL: From eng_ak at ...100... Sun Feb 22 22:06:28 2004 From: eng_ak at ...100... (Ahmad Kamal) Date: Sun, 22 Feb 2004 23:06:28 +0200 Subject: [Gambas-devel] GB + Parrot In-Reply-To: <200402221237.25262.sourceforge-raindog2@...19...> References: <4037577C.5050204@...100...> <200402221237.25262.sourceforge-raindog2@...19...> Message-ID: <403919D4.8070902@...100...> An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...19... Sun Feb 22 22:21:06 2004 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 22 Feb 2004 16:21:06 -0500 Subject: [Gambas-devel] GB + Parrot In-Reply-To: <403919D4.8070902@...100...> References: <4037577C.5050204@...100...> <200402221237.25262.sourceforge-raindog2@...19...> <403919D4.8070902@...100...> Message-ID: <200402221621.06028.sourceforge-raindog2@...19...> On Sunday 22 February 2004 16:06, Ahmad Kamal wrote: > PS: Any comments about the core difference between Parrot and > something like mono? I see Parrot as being more of an optimized, compiled bytecode like Gambas bytecode and mono/.net as being a whole virtual machine like Java. But I don't have an intimate understanding of either. Rob From metallidrato at ...29... Tue Feb 24 17:14:31 2004 From: metallidrato at ...29... (janosh) Date: Tue, 24 Feb 2004 17:14:31 +0100 Subject: [Gambas-devel] Re: Gambas-devel -- confirmation of subscription -- request 682166 In-Reply-To: <4034EAE000434A7D@...109...> (added by postmaster@...109...) References: <4034EAE000434A7D@...109...> (added by postmaster@...109...) Message-ID: <1077639271.16555.0.camel@...110...> confirm 682166 From gambas at ...1... Tue Feb 24 18:18:24 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Feb 2004 18:18:24 +0100 Subject: [Gambas-devel] Updates for the mysql driver In-Reply-To: <001701c3f808$264eef80$0f804c51@...97...> References: <001701c3f808$264eef80$0f804c51@...97...> Message-ID: <200402241818.24394.gambas@...1...> On Saturday 21 February 2004 00:19, Nigel Gerrard wrote: > Benoit, > > I have made additions/corrections to the mysql driver. The changes > primarily concern the table_create which could cause the database manager > to crash with the loss of the table when changing/setting the primary key. > I have also added code for the database manager. > > These are the difference patches that should be applied to the 0.84a > version. > > Nigel Thanks Nigel! I have applied your patch. Regards, -- Benoit Minisini mailto:gambas at ...1... From nigel at ...2... Wed Feb 25 19:02:06 2004 From: nigel at ...2... (Nigel Gerrard) Date: Wed, 25 Feb 2004 18:02:06 -0000 Subject: [Gambas-devel] CTable.c primary key query Message-ID: <000001c3fbd2$90b634f0$030a0a0a@...97...> Benoit, If you create a table outside of the gambas-database-manager and you do not create a primary key,you cannot go into the gdm and then create a primary key afterwards unless line 548 of CTable.c (CTable_update) is changed from: if (!This->primary || GB.Count(THIS->primary) ==0) to if (!This->primary) I know there seems little logic in this...but it does work and I do believe that tables created outside gambas should still be accessible. What do you think? Also in CResult.c from line 468, I would suggest checking that there is a key for the "WHERE" clause to use. e.g: if (!THIS->edit) { GB.Error("No key for Update"); } else { q_add(THIS->edit); THIS->driver->Exec(THIS->db->handle, q_get(), NULL, "Cannot modify record: &1"); } break; This is because the message provided from doing a failed query syntax is not neccessarily very clear. Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Wed Feb 25 20:12:28 2004 From: gambas at ...1... (Benoit Minisini) Date: Wed, 25 Feb 2004 20:12:28 +0100 Subject: [Gambas-devel] CTable.c primary key query In-Reply-To: <000001c3fbd2$90b634f0$030a0a0a@...97...> References: <000001c3fbd2$90b634f0$030a0a0a@...97...> Message-ID: <200402252012.28735.gambas@...1...> On Wednesday 25 February 2004 19:02, Nigel Gerrard wrote: > Benoit, > > If you create a table outside of the gambas-database-manager and you do not > create a primary key,you cannot go into the gdm and then create a primary > key afterwards unless line 548 of CTable.c (CTable_update) is changed from: > > if (!This->primary || GB.Count(THIS->primary) ==0) > > to > > if (!This->primary) > > I know there seems little logic in this...but it does work and I do believe > that tables created outside gambas should still be accessible. What do you > think? Are you sure ? Because this test prevents for creating a table WITHOUT any primary keys. It can't prevent a table for being accessible... Maybe the problem is in the GDM, isn't it ? > > Also in CResult.c from line 468, I would suggest checking that there is a > key for the "WHERE" clause to use. e.g: > > if (!THIS->edit) > { > GB.Error("No key for Update"); > } > else { > q_add(THIS->edit); > THIS->driver->Exec(THIS->db->handle, q_get(), NULL, "Cannot modify > record: &1"); } > > break; > > This is because the message provided from doing a failed query syntax is > not neccessarily very clear. But the problem is that Connection.Edit/Result.Update can't work without an index! So it is DB.Edit that should raise an error if it don't find an index in the table. What do you think ? -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Thu Feb 26 20:21:40 2004 From: danielcampos at ...45... (Daniel Campos) Date: Thu, 26 Feb 2004 20:21:40 +0100 Subject: [Gambas-devel] Spanish translation 0.90 Message-ID: <1077823300.2044.1.camel@...102...> This is spanish translation for Gambas 0.90 Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-es.po Type: text/x-po Size: 52454 bytes Desc: not available URL: From gambas at ...1... Sat Feb 28 10:19:19 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 28 Feb 2004 10:19:19 +0100 Subject: [Gambas-devel] Spanish translation 0.90 In-Reply-To: <1077823300.2044.1.camel@...102...> References: <1077823300.2044.1.camel@...102...> Message-ID: <200402281019.19179.gambas@...1...> On Thursday 26 February 2004 20:21, Daniel Campos wrote: > This is spanish translation for Gambas 0.90 > > Regards, Got it, thanks! -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Sat Feb 28 19:45:45 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sat, 28 Feb 2004 19:45:45 +0100 Subject: [Gambas-devel] net 0.2.3 Message-ID: <1077993945.4274.4.camel@...102...> This is NET 0.2.3 and UDPServerClient revisited, as I've found some bugs: * Fixed a bug in UdpClient : segmentation fault when reading or writing data * Fixed a bug in UDPServerClient example : trying to use CLOSE when UdpClient is not active And as Ron said: * defined before in CDnsClient.c to allow compile on FreeBSD Regards, Daniel Campos -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: net_0_2_3_gb0_90.tar.gz Type: application/x-compressed-tar Size: 59020 bytes Desc: not available URL: From nigel at ...2... Sun Feb 29 15:29:15 2004 From: nigel at ...2... (Nigel Gerrard) Date: Sun, 29 Feb 2004 14:29:15 -0000 Subject: [Gambas-devel] Mysql create table patch for 0.90 Message-ID: <001701c3fed0$6ac95d20$79874c51@...97...> Guys, I have just found a problem when trying to create a mysql table with the mysql driver released in 0.90. Attached is a patch that resolves it, to apply change to ../gambas0.90/src/lib/db/mysql and apply the diff file: patch main.c mysql.main.c.diff Then compile: make and make install. Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mysql.main.c.diff Type: application/octet-stream Size: 127 bytes Desc: not available URL: From nigel at ...2... Sun Feb 29 15:32:32 2004 From: nigel at ...2... (Nigel Gerrard) Date: Sun, 29 Feb 2004 14:32:32 -0000 Subject: [Gambas-devel] SQLite driver Message-ID: <002101c3fed0$dec3ea60$79874c51@...97...> Guys, Here is a first attempt at a sqlite driver. It is experimental so be careful :-) You will also need to compile etc. the sqlite stuff available from www.sqlite.org. Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Sqlite.tar.bz2 Type: application/octet-stream Size: 37454 bytes Desc: not available URL: From abidoo.too at ...4... Sun Feb 29 20:04:03 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Sun, 29 Feb 2004 20:04:03 +0100 Subject: [Gambas-devel] Hey test it ! Message-ID: <200402292003.24197.abidoo.too@...4...> Please i need report bug about my site http://gambas.magic-systems.net Fabien From danielcampos at ...45... Sun Feb 29 20:39:37 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sun, 29 Feb 2004 20:39:37 +0100 Subject: [Gambas-devel] a patch to vb component Message-ID: <1078083577.2622.1.camel@...102...> Hi: I've added vb.Mid, vb.Left and vb.Right to vb.c. Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: vb.c Type: text/x-c Size: 3542 bytes Desc: URL: From danielcampos at ...45... Sun Feb 29 20:44:04 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sun, 29 Feb 2004 20:44:04 +0100 Subject: [Gambas-devel] oopps! Message-ID: <1078083844.12075.1.camel@...102...> There was a bug in the previous file, this is the good one. Sorry, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: vb.c Type: text/x-c Size: 3509 bytes Desc: not available URL: From gambas at ...1... Sun Feb 29 20:46:38 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 29 Feb 2004 20:46:38 +0100 Subject: [Gambas-devel] a patch to vb component In-Reply-To: <1078083577.2622.1.camel@...102...> References: <1078083577.2622.1.camel@...102...> Message-ID: <200402292046.38238.gambas@...1...> On Sunday 29 February 2004 20:39, Daniel Campos wrote: > Hi: > > > I've added vb.Mid, vb.Left and vb.Right to vb.c. > > Regards, Hi, Funny! But why did you add them ? The Left$, Right$ and Mid$ functions of Gambas are compatible with the VB ones (they are just more powerful). Regards, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...103... Sun Feb 29 21:23:26 2004 From: daniel.campos at ...103... (Daniel Campos) Date: Sun, 29 Feb 2004 21:23:26 +0100 Subject: [Gambas-devel] a patch to vb component In-Reply-To: <200402292046.38238.gambas@...1...> References: <1078083577.2622.1.camel@...102...> <200402292046.38238.gambas@...1...> Message-ID: <1078086205.12165.10.camel@...102...> El dom, 29-02-2004 a las 20:46, Benoit Minisini escribi?: > On Sunday 29 February 2004 20:39, Daniel Campos wrote: > > Hi: > > > > > > I've added vb.Mid, vb.Left and vb.Right to vb.c. > > > > Regards, > > Hi, > > Funny! But why did you add them ? The Left$, Right$ and Mid$ functions of > Gambas are compatible with the VB ones (they are just more powerful). > Well, a long story, I had some code in which parameters for these functions could be incorrect, and I had to return an error message to user, so, using values like -1 for Left, or 0 as 'Start' for Mid should be OK for Gambas, but not for VB. If anybody tries to translate a program for VB to Gambas, and these functions (or other) does not work exactly in the same way,he can find extrange results (probably in functions that the programmer didn't protected correctly). In my case,there was about a hundred points in the program, protected with 'on error resume next', 'If Err.Number<>0 ...', that didn't work correctly in Gambas!, so I had two options: writing a 'wrapper' in Gambas code like: PUBLIC FUNCTION VB_LEFT(Str As String, Lenght As Integer) if (Length < 1) ... error Or improve that VB component :-) (Of course Gambas is not VB, but these little things can make the transition easier) Regards, Daniel Campos > Regards, From gambas at ...1... Sun Feb 29 21:43:43 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 29 Feb 2004 21:43:43 +0100 Subject: [Gambas-devel] a patch to vb component In-Reply-To: <1078086205.12165.10.camel@...102...> References: <1078083577.2622.1.camel@...102...> <200402292046.38238.gambas@...1...> <1078086205.12165.10.camel@...102...> Message-ID: <200402292143.43694.gambas@...1...> On Sunday 29 February 2004 21:23, Daniel Campos wrote: > El dom, 29-02-2004 a las 20:46, Benoit Minisini escribi?: > > On Sunday 29 February 2004 20:39, Daniel Campos wrote: > > > Hi: > > > > > > > > > I've added vb.Mid, vb.Left and vb.Right to vb.c. > > > > > > Regards, > > > > Hi, > > > > Funny! But why did you add them ? The Left$, Right$ and Mid$ functions of > > Gambas are compatible with the VB ones (they are just more powerful). > > Well, a long story, I had some code in which parameters for these > functions could be incorrect, and I had to return an error message to > user, so, using values like -1 for Left, or 0 as 'Start' for Mid should > be OK for Gambas, but not for VB. > > If anybody tries to translate a program for VB to Gambas, and these > functions (or other) does not work exactly in the same way,he can find > extrange results (probably in functions that the programmer didn't > protected correctly). > > In my case,there was about a hundred points in the program, protected > with 'on error resume next', 'If Err.Number<>0 ...', that didn't work > correctly in Gambas!, so I had two options: writing a 'wrapper' in > Gambas code like: > > PUBLIC FUNCTION VB_LEFT(Str As String, Lenght As Integer) > > if (Length < 1) > ... error > > Or improve that VB component :-) > > (Of course Gambas is not VB, but these little things can make the > transition easier) > > Regards, > > Daniel Campos > > > Regards, > OK, I understand... I will think more carefully next time :-) I add the patch to the component. Regards, -- Benoit Minisini mailto:gambas at ...1...