From Gambasfr at ...4... Sun Jun 1 21:56:09 2003 From: Gambasfr at ...4... (Fabien) Date: Sun, 1 Jun 2003 21:56:09 +0200 Subject: [Gambas-devel] how to create an mdi form? In-Reply-To: <3ED6FCC8.3010403@...29...> References: <3ED6FCC8.3010403@...29...> Message-ID: <200306012156.09554.Gambasfr@...4...> Le Vendredi 30 Mai 2003 08:40, andrea a ?crit : > Please tell me how to create an mdi form, i'm a beginner..but i know VB > and i want to create a database environment like access > andy Hi andy First you are not in the good mailing list ! You must to be on gambas-user at ...30... How to use the WorkSpace ? Put a workspace area on your futur mdiform(for the exemple named mdiForm) after create a other form named 'frmChild' for example in the mdiform, call the child by : Dim hForm as frmChild hForm = New frmChild(WorkSpace) In fact the frmChild is child of WorkSpace ! Use the Component explorer to understand the WorksPACE options, like the arrangement, or any thing else ! Think to use the move property of the workspace widget, to place and resize it, in the _Resize event of the mdiform I think you need to use the split component too, it's easy to use !, just place the componant in it , they are automatiquely placed, in this case you must to manage the split component in the _resize event ! Fabien Bodard Tell me if you don't understand something else ! From sourceforge-raindog2 at ...19... Sun Jun 1 23:34:23 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 1 Jun 2003 17:34:23 -0400 Subject: [Gambas-devel] how to create an mdi form? In-Reply-To: <200306012156.09554.Gambasfr@...4...> References: <3ED6FCC8.3010403@...29...> <200306012156.09554.Gambasfr@...4...> Message-ID: <200306011727.52408.sourceforge-raindog2@...19...> On Sunday 01 June 2003 15:56, Fabien wrote: > Put a workspace area on your futur mdiform(for the exemple named mdiForm) > Dim hForm as frmChild > hForm = New frmChild(WorkSpace) Oops, yeah, in my instructions I was confusing the MDI workspace control with the splitter, into which you can just cut and paste controls. (On the other hand, I don't seem to need to do any resize event stuff for the splitter to work...) Rob From karl.reinl at ...16... Mon Jun 2 00:00:39 2003 From: karl.reinl at ...16... (Charlie) Date: Mon, 02 Jun 2003 00:00:39 +0200 Subject: [Gambas-devel] gambas IDE Message-ID: <3EDA7787.3030909@...16...> Salut, using now since one year gambas ( started with gambas-0.30) Since this time I ask to have the possibillty to use form-,class- and module files shared. For the simple reason, that everyone has classes and modules, sometimes forms, which can be used in other project. The only way actually is to copy them to the project. You can imagine what is to do, if you make changes. I tryed it with linking, that works, but if you make a change into this file, it will be saved in the project-directory and not in the origin place. I never dived into the gambas project-mangagement, but is it realy such a problem, or am I the only one, who don't like to envent the weel daily? Another thing are, all the open windows after a debug or big changments. Under TOOLS or anywhere, I would like to have a 'Close all Windows' with automatic saving like after F5. Leting the Activform open or not ????? And at last, all Project-explorer can't get higher then their starting point. amicalement Charlie From karl.reinl at ...16... Mon Jun 2 00:03:06 2003 From: karl.reinl at ...16... (Charlie) Date: Mon, 02 Jun 2003 00:03:06 +0200 Subject: [Gambas-devel] mdi-IDE Message-ID: <3EDA781A.1060802@...16...> Salut Rob, saw your MDI-gambas IDE. Now you have to dock windows ! charlie From sourceforge-raindog2 at ...19... Mon Jun 2 00:37:30 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Sun, 1 Jun 2003 18:37:30 -0400 Subject: [Gambas-devel] mdi-IDE In-Reply-To: <3EDA781A.1060802@...16...> References: <3EDA781A.1060802@...16...> Message-ID: <200306011837.30045.sourceforge-raindog2@...19...> On Sunday 01 June 2003 18:03, Charlie wrote: > Salut Rob, > saw your MDI-gambas IDE. > Now you have to dock windows ! Yes, how about that! I'm afraid Benoit made the MDI part easy but the docking part might need a little more than 10 lines of code ;) Rob From oscarcld at ...31... Mon Jun 2 06:32:33 2003 From: oscarcld at ...31... (DA Corp.) Date: Sun, 1 Jun 2003 23:32:33 -0500 Subject: [Gambas-devel] Parallel port Message-ID: <3EDAD361.00000D.01912@...32...> Hello How I do manage the parallel port with gambas? Andr?s Calder?n J. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 494 bytes Desc: not available URL: From sourceforge-raindog2 at ...19... Mon Jun 2 15:37:30 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 2 Jun 2003 09:37:30 -0400 Subject: [Gambas-devel] Parallel port In-Reply-To: <3EDAD361.00000D.01912@...32...> References: <3EDAD361.00000D.01912@...32...> Message-ID: <200306020936.25225.sourceforge-raindog2@...19...> You would need to write a parallel port component in C or C++. Since someone was just asking about the serial port, maybe one of you should write a generalized Unix device component with support for ioctl functions and maybe stty for the serial stuff. (I have no serial devices at all and my only parallel port devices have undocumented interfaces, so I won't be of much help writing or testing such a thing.) Further discussion about such a component would probably be appropriate to keep talking about on gambas-devel, but further discussion about workarounds like using helper apps from your Gambas project (though I know of no parallel port helper apps like cu is for the serial port) should go to gambas-user. For example, if what you really want to do is drive a printer, there's already a printer component in Gambas. If you do want to learn how to write a component, there's an example one in src/lib/example from the Gambas source tarball. It looks like it's included in the Gambas build by default, so if you go into Project Properties and check off gb.example under Components, you can then use the component explorer to see how its methods and properties show up to Gambas. It's not documented, but at least the source is heavily commented. Notice that the example is GPL'ed so make sure to share your source with all of us if you base a component on it ;) Rob From oscarcld at ...31... Mon Jun 2 17:17:52 2003 From: oscarcld at ...31... (DA Corp.) Date: Mon, 2 Jun 2003 10:17:52 -0500 Subject: [Gambas-devel] Parallel port References: <200306020936.25225.sourceforge-raindog2@...19...> Message-ID: <3EDB6AA0.000003.01768@...32...> Thank you, but i don?t understand: How i do add a C/C++ component in a file made in Gambas and how i do accede to those components? Andr?s Calder?n J. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 494 bytes Desc: not available URL: From cmcpero at ...28... Mon Jun 2 17:34:48 2003 From: cmcpero at ...28... (Jean-Francois Perreault) Date: Mon, 02 Jun 2003 11:34:48 -0400 Subject: [Gambas-devel] Parallel port In-Reply-To: <200306020936.25225.sourceforge-raindog2@...19...> References: <3EDAD361.00000D.01912@...32...> <200306020936.25225.sourceforge-raindog2@...19...> Message-ID: <3EDB6E98.9030807@...28...> I haven't used gambas yet so I'm completely in the dark here , but wouldn't it be possible to use /dev/ttySx as a normal file to use the serial ports (and other devices) without the need for a special components I mean if cat /dev/ttyS0 display all the raw input from a mouse all you need is a data parser and you can read mouse data , wouldn't it work ? maybe I'm way out on this but I'd like to know why Rob wrote: >You would need to write a parallel port component in C or C++. Since someone >was just asking about the serial port, maybe one of you should write a >generalized Unix device component with support for ioctl functions and maybe >stty for the serial stuff. (I have no serial devices at all and my only >parallel port devices have undocumented interfaces, so I won't be of much >help writing or testing such a thing.) > >Further discussion about such a component would probably be appropriate to >keep talking about on gambas-devel, but further discussion about workarounds >like using helper apps from your Gambas project (though I know of no parallel >port helper apps like cu is for the serial port) should go to gambas-user. >For example, if what you really want to do is drive a printer, there's >already a printer component in Gambas. > >If you do want to learn how to write a component, there's an example one in >src/lib/example from the Gambas source tarball. It looks like it's included >in the Gambas build by default, so if you go into Project Properties and >check off gb.example under Components, you can then use the component >explorer to see how its methods and properties show up to Gambas. It's not >documented, but at least the source is heavily commented. Notice that the >example is GPL'ed so make sure to share your source with all of us if you >base a component on it ;) > >Rob > > -- -------------------- Jean-Francois Perreault NanoTech Informatique UIN 783056 cmcpero at ...28... From sourceforge-raindog2 at ...19... Mon Jun 2 17:45:57 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 2 Jun 2003 11:45:57 -0400 Subject: [Gambas-devel] Parallel port In-Reply-To: <3EDB6AA0.000003.01768@...32...> References: <200306020936.25225.sourceforge-raindog2@...19...> <3EDB6AA0.000003.01768@...32...> Message-ID: <200306021145.57900.sourceforge-raindog2@...19...> On Monday 02 June 2003 11:17, DA Corp. wrote: >Thank you, but i don=B4t understand:=0D >How i do add a C/C++ component in a file made in Gambas and how i do acce >=de to those components?=0D In the source tree for gambas itself, in the /src/lib directory, you will find a directory called "example". That contains an example component in C with a LOT of comments in the source files. If you know C, you should be able to write a component based on that code. To access it within Gambas, after it's built and its .la and .so files are copied to /usr/lib (or wherever your Gambas libs live) you should just be able to go into project properties, select the Components tab, and add your component to the project. Then you can use the component explorer to see how to access the methods and properties for your object, though since you will have written it you should have some idea how already ;) Once you've done that, you can do things like dim par as new ParallelComponent par.Open("/dev/lp0") par.WhateverItWasYouWantedToDo and assign it event handlers and all that stuff. I haven't actually done this myself but that's how I'm led to believe it works. No, it's not as easy as being able to just access whatever API you want directly from Gambas, but I think it'll make for a lot more components being created (eventually, when Gambas gets more popular) and a lot fewer unsupportable Gambas projects with uncommented API calls everywhere like you see with VB. Rob From sourceforge-raindog2 at ...19... Mon Jun 2 18:30:51 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 2 Jun 2003 12:30:51 -0400 Subject: [Gambas-devel] Parallel port In-Reply-To: <3EDB6E98.9030807@...28...> References: <3EDAD361.00000D.01912@...32...> <200306020936.25225.sourceforge-raindog2@...19...> <3EDB6E98.9030807@...28...> Message-ID: <200306021230.51675.sourceforge-raindog2@...19...> On Monday 02 June 2003 11:34, Jean-Francois Perreault wrote: > I mean if cat /dev/ttyS0 display all the raw input from a mouse all you > need is a data parser and you can read mouse data , wouldn't it work ? > maybe I'm way out on this but I'd like to know why Redirecting to gambas-user. Please keep the conversation there unless it goes back to writing Gambas extensions in C again. I don't think Gambas will let you read and write to a device simultaneously the way you can with a child process (which was why I suggested 'cu' as a workaround for the serial thing.) Benoit? Rob From Gambasfr at ...4... Mon Jun 2 22:54:46 2003 From: Gambasfr at ...4... (Fabien) Date: Mon, 2 Jun 2003 22:54:46 +0200 Subject: [Gambas-devel] how to create an mdi form? In-Reply-To: <200306011727.52408.sourceforge-raindog2@...19...> References: <3ED6FCC8.3010403@...29...> <200306012156.09554.Gambasfr@...4...> <200306011727.52408.sourceforge-raindog2@...19...> Message-ID: <200306022254.46216.Gambasfr@...4...> Le Dimanche 1 Juin 2003 23:34, Rob a ?crit : > On Sunday 01 June 2003 15:56, Fabien wrote: > > Put a workspace area on your futur mdiform(for the exemple named mdiForm) > > Dim hForm as frmChild > > hForm = New frmChild(WorkSpace) > > Oops, yeah, in my instructions I was confusing the MDI workspace control > with the splitter, into which you can just cut and paste controls. (On the > other hand, I don't seem to need to do any resize event stuff for the > splitter to work...) > > Rob > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel lol i work on gambas since the 0.24 version... so... I speak gambas quite well ! better that english in fact I've a game for you ! make a form FForm1 Make a second one : FForm2 in the first one : Dim hForm as FForm2 Public sub _New() hForm = New FForm2(Me) end in the second one : Dim Men as Menu Dim subMen as Menu Public sub _New() Men = New Menu(Me.Parent) as "mnuTest" Men.Text = "Test" Men.Visible = true subMen = New Menu(Men) as "mnuTest" subMen.Text = "Hello" end Public sub mnuTest_Click() Message("you have click on Hello menu !") end The menu in on the first form but the management is in The embedded one ! It's better than vb no ? Fabien In fact i've used this process to put popup menu in a embedded windows. I stock the menu object in the parent form ! From nigel at ...2... Tue Jun 3 12:32:27 2003 From: nigel at ...2... (Nigel GERRARD) Date: Tue, 3 Jun 2003 11:32:27 +0100 Subject: [Gambas-devel] Gambas Database Manager - Access Denied Message-ID: <000a01c329bb$717322e0$020a0a0a@...3...> Few weeks or even months !:-) ago there was a thread discussing a problem with mysql connects. A message similar to 'Cannot open database: Access denied for user '????@localhost' (Using password: NO..or YES)' occurs within the Database Manager. I am not sure whether this got resolved properly since searching the sourceforge.net archives doesn't appear to work, but is due to the mysql driver defaulting to database 'mysql' and the connecting user not having the privileges to connect to it. I would suggest that the GDM should produce a warning message for the user to check that the connection user has been granted access to database 'mysql'. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...20... Tue Jun 3 19:07:09 2003 From: gambas at ...20... (Benoit Minisini) Date: Tue, 3 Jun 2003 19:07:09 +0200 Subject: [Gambas-devel] Gambas Database Manager - Access Denied In-Reply-To: <000a01c329bb$717322e0$020a0a0a@...3...> References: <000a01c329bb$717322e0$020a0a0a@...3...> Message-ID: <200306031907.09150.gambas@...20...> Le Mardi 3 Juin 2003 12:32, Nigel GERRARD a ?crit : > Few weeks or even months !:-) ago there was a thread discussing a problem > with mysql connects. A message similar to 'Cannot open database: Access > denied for user '????@localhost' (Using password: NO..or YES)' occurs > within the Database Manager. I am not sure whether this got resolved > properly since searching the sourceforge.net archives doesn't appear to > work, but is due to the mysql driver defaulting to database 'mysql' and the > connecting user not having the privileges to connect to it. > > I would suggest that the GDM should produce a warning message for the user > to check that the connection user has been granted access to database > 'mysql'. Hi, Nigel Could it be possible to write a little script to initialize a mysql database server (I will the postgresql one) so that a default connection to the server works every time ? For example, it will create a 'gambas' user with all access, and this user will be used by the driver. Do you think it is a good idea, or do you think it's better to let the root user doing that ? -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Tue Jun 3 22:19:15 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 03 Jun 2003 13:19:15 -0700 Subject: [Gambas-devel] Docs Message-ID: <3EDD02C3.9010301@...26...> I installed Gambas from a binary package Where can I get docs on the component interface? -- Using Lindows From pchapman at ...33... Tue Jun 3 20:13:28 2003 From: pchapman at ...33... (Philip A. Chapman) Date: 03 Jun 2003 13:13:28 -0500 Subject: [Gambas-devel] Gambas Database Manager - Access Denied In-Reply-To: <200306031907.09150.gambas@...20...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> Message-ID: <1054664008.19120.17.camel@...34...> Benoit, I believe that this is a bad idea for two reasons. The first is that it could open up security issues. The second is that developers should know at least the basics of how an RDBMS they are connecting to works. I can understand that you would like for gambas to hide as many of the mundane stuff as possible, but there is no excuse for a developer not understanding how the RDBMS that his application is using works; especially security. Do everything that you can to create good prompts and error messages when you cannot connect to a database. Even provide ample documentation. However, I think installing an all powerful user is a back door style exploit waiting to happen. Thanks, On Tue, 2003-06-03 at 12:07, Benoit Minisini wrote: > Le Mardi 3 Juin 2003 12:32, Nigel GERRARD a ?crit : > > Few weeks or even months !:-) ago there was a thread discussing a problem > > with mysql connects. A message similar to 'Cannot open database: Access > > denied for user '????@localhost' (Using password: NO..or YES)' occurs > > within the Database Manager. I am not sure whether this got resolved > > properly since searching the sourceforge.net archives doesn't appear to > > work, but is due to the mysql driver defaulting to database 'mysql' and the > > connecting user not having the privileges to connect to it. > > > > I would suggest that the GDM should produce a warning message for the user > > to check that the connection user has been granted access to database > > 'mysql'. > > Hi, Nigel > > Could it be possible to write a little script to initialize a mysql database > server (I will the postgresql one) so that a default connection to the server > works every time ? > > For example, it will create a 'gambas' user with all access, and this user > will be used by the driver. > > Do you think it is a good idea, or do you think it's better to let the root > user doing that ? -- Philip A. Chapman Application Development: Java, Visual Basic, PostgreSQL, MySQL, MSSQL Linux, Windows 9x, Windows NT, Windows 2000, Windows XP -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From karl.reinl at ...16... Tue Jun 3 20:12:53 2003 From: karl.reinl at ...16... (Charlie) Date: Tue, 03 Jun 2003 20:12:53 +0200 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> Message-ID: <3EDCE525.9020605@...16...> Nigel GERRARD schrieb: > Few weeks or even months !:-) ago there was a thread discussing a > problem with mysql connects. A message similar to 'Cannot open > database: Access denied for user '????@localhost' > (Using password: NO..or YES)' > occurs within the Database Manager. I am not sure whether this got > resolved properly since searching the sourceforge.net archives doesn't > appear to work, but is due to the mysql driver defaulting to database > 'mysql' and the connecting user not having the privileges to connect > to it. > > I would suggest that the GDM should produce a warning message for the > user to check that the connection user has been granted access to > database 'mysql'. Salut, The (Using password: NO..or YES) only show you if you have used or not a password I think for the use of GDM not to make this two loggins, but makeing the Type only for the database whos found on the system. I see no nessecity to act like 'windows' where it seems that everything is easy to reache Charlie From karl.reinl at ...16... Tue Jun 3 20:29:30 2003 From: karl.reinl at ...16... (Charlie) Date: Tue, 03 Jun 2003 20:29:30 +0200 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> Message-ID: <3EDCE90A.6070606@...16...> Benoit Minisini schrieb: >Le Mardi 3 Juin 2003 12:32, Nigel GERRARD a ?crit : > > >>Few weeks or even months !:-) ago there was a thread discussing a problem >>with mysql connects. A message similar to 'Cannot open database: Access >>denied for user '????@localhost' (Using password: NO..or YES)' occurs >>within the Database Manager. I am not sure whether this got resolved >>properly since searching the sourceforge.net archives doesn't appear to >>work, but is due to the mysql driver defaulting to database 'mysql' and the >>connecting user not having the privileges to connect to it. >> >>I would suggest that the GDM should produce a warning message for the user >>to check that the connection user has been granted access to database >>'mysql'. >> >> > >Hi, Nigel > >Could it be possible to write a little script to initialize a mysql database >server (I will the postgresql one) so that a default connection to the server >works every time ? > >For example, it will create a 'gambas' user with all access, and this user >will be used by the driver. > >Do you think it is a good idea, or do you think it's better to let the root >user doing that ? > > > Salut, like I wrote to Nigle, to tell to users that using a Database is easy to handle. But if you want a access to for a user 'gambas' on mysql you can have that easy loggin, if no 'gambas' exist, and you can create DB and table access for this 'nobody' Mysql let everybody log in to the engine if he is not known, and has also the possibility to open DB's and tables to these 'guest'. (see the mysql testing-suite) But for give him rights you have to have right you to do this you self. Charlie From schrockk at ...26... Wed Jun 4 00:43:19 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 03 Jun 2003 15:43:19 -0700 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> <1054664008.19120.17.camel@...34...> Message-ID: <3EDD2487.9030706@...26...> I disagree with his disagreement : -) Anybody that wants to use Gambas should know RDBMS? Why? I would like a lot of people to use Linux Do any of these corporate types have any idea How VERY difficult it is for "average" or "home" users To work around all the damn security built into most Linux distros? If you use Linux or Gambas in an environment where security is important Then you are probably getting paid for it, and should know what you are doing And should be able to handle the security issues that such an environment entails Should Joe Blow, who wants to make a small app at home using Gambas Know all about RDBMS and climb over a mountain of security to do it? NO. Yes, Benoit, I would like such a thing, I think most "normal" users would If corp users want a big security version of Gambas, sell them one : -) Philip A. Chapman wrote: >Benoit, > >I believe that this is a bad idea for two reasons. The first is that it >could open up security issues. The second is that developers should >know at least the basics of how an RDBMS they are connecting to works. > >I can understand that you would like for gambas to hide as many of the >mundane stuff as possible, but there is no excuse for a developer not >understanding how the RDBMS that his application is using works; >especially security. > >Do everything that you can to create good prompts and error messages >when you cannot connect to a database. Even provide ample >documentation. However, I think installing an all powerful user is a >back door style exploit waiting to happen. > >Thanks, > >On Tue, 2003-06-03 at 12:07, Benoit Minisini wrote: > > >>Le Mardi 3 Juin 2003 12:32, Nigel GERRARD a ?crit : >> >> >>>Few weeks or even months !:-) ago there was a thread discussing a problem >>>with mysql connects. A message similar to 'Cannot open database: Access >>>denied for user '????@localhost' (Using password: NO..or YES)' occurs >>>within the Database Manager. I am not sure whether this got resolved >>>properly since searching the sourceforge.net archives doesn't appear to >>>work, but is due to the mysql driver defaulting to database 'mysql' and the >>>connecting user not having the privileges to connect to it. >>> >>>I would suggest that the GDM should produce a warning message for the user >>>to check that the connection user has been granted access to database >>>'mysql'. >>> >>> >>Hi, Nigel >> >>Could it be possible to write a little script to initialize a mysql database >>server (I will the postgresql one) so that a default connection to the server >>works every time ? >> >>For example, it will create a 'gambas' user with all access, and this user >>will be used by the driver. >> >>Do you think it is a good idea, or do you think it's better to let the root >>user doing that ? >> >> -- Using Lindows From sourceforge-raindog2 at ...19... Tue Jun 3 21:47:16 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Tue, 3 Jun 2003 15:47:16 -0400 Subject: [Gambas-devel] Gambas Database Manager - Access Denied In-Reply-To: <3EDD2487.9030706@...26...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <1054664008.19120.17.camel@...34...> <3EDD2487.9030706@...26...> Message-ID: <200306031545.13734.sourceforge-raindog2@...19...> On Tuesday 03 June 2003 18:43, Ken Schrock wrote: > Should Joe Blow, who wants to make a small app at home using Gambas > Know all about RDBMS and climb over a mountain of security to do it? NO. I think a good compromise here would be for someone to write an embedded MySQL module, that is, use the embedded capabilities that are supposed to be in MySQL 4 (see http://www.mysql.com/doc/en/Nutshell_Embedded_MySQL.html ) to make a Gambas component that provides SQL access against local MySQL files rather than needing a database, security, and all that stuff. That way, the model that novice VB programmers are used to (just create an MDB and open it in VB) is still available if it's needed, but the more secure server-oriented database options aren't compromised as you propose. Besides, if such a script (to automatically create a super gambas user without saying anything) were included, the various distributions would doubtless lock down MySQL/Postgres even more than they already do so that this would be impossible for a non-root user in the first place. Making an embedded mySQL module to give the DBMS-novice Gambas user a playground seems a reasonable alternative as well as being closer to the Access-style DBMS manipulation they're used to. Not that I'm volunteering ;) Rob From pchapman at ...33... Tue Jun 3 22:17:32 2003 From: pchapman at ...33... (Philip A. Chapman) Date: 03 Jun 2003 15:17:32 -0500 Subject: [Gambas-devel] Gambas Database Manager - Access Denied In-Reply-To: <3EDD2487.9030706@...26...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> <1054664008.19120.17.camel@...34...> <3EDD2487.9030706@...26...> Message-ID: <1054671451.22302.23.camel@...34...> On Tue, 2003-06-03 at 17:43, Ken Schrock wrote: > I disagree with his disagreement : -) > > Anybody that wants to use Gambas should know RDBMS? Why? I may not have been plain enough, but what I ment was that anybody that does development against an RDBMS needs to know that RDBMS. Not necessarily anybody using Gambas. > I would like a lot of people to use Linux > Do any of these corporate types have any idea > How VERY difficult it is for "average" or "home" users > To work around all the damn security built into most Linux distros? Yes, it would be nice to have more users using Linux. Yes it is very difficult for a newbie user to learn of all the *ahem* security built into most distros. (Not that we are arguing about distros, but RDBMS systems have security as part of their nature.) I do not think that the answer is to negate all of that security. I think the answer is to make it easier for the user to understand and maintain that security. Must I name other OSs and other RDBMS systems that have been ruthlessly attacked and are known for security exploits because either they were not built on secure paradigms or what security they had was negated by a well known back door or default user/password. The SQL server exploits that allowed a worm to wreak havok everywhere was not only due to admins that did not pay attention, but by average Joes that installed SQL server on their boxen connected to a DSL or cable modem. Shame on the admin. He should have known better. What about Joe user? Do we blame Joe because he didn't take the time to learn the security of SQL server, or was it Microsoft for not forcing people to provide a password for the sa account during login? Let's say Gambas becomes very popular. I want that, don't you? I don't want to see the bad publicity Gambas, Linux, and Postgresql/MySQL would get when a worm or hackers attack these RDBMS systems trying to log in with the gambas administrative level user. > If you use Linux or Gambas in an environment where security is important > Then you are probably getting paid for it, and should know what you are > doing > And should be able to handle the security issues that such an > environment entails When Joe user's system is hacked and crashes because he didn't know about security and did not realize that Gambas installed a back door, Joe user may very well no longer use Gambas OR Linux when he figures out what is going on. > Should Joe Blow, who wants to make a small app at home using Gambas > Know all about RDBMS and climb over a mountain of security to do it? NO. It would be nice for users to create small databases for personal user ala Microsoft Access. However, I do not think that either PostgreSQL or MySQL was designed with this in mind. Perhaps a search for a more suitable database engine would be in order. I'll do some research and see if there are any good open source, single-user database engines that may fit this bill. > Yes, Benoit, I would like such a thing, I think most "normal" users would > > If corp users want a big security version of Gambas, sell them one : -) I respect your right to disagree. However, I stand behind my original post. Thanks, -- Philip A. Chapman Application Development: Java, Visual Basic, PostgreSQL, MySQL, MSSQL Linux, Windows 9x, Windows NT, Windows 2000, Windows XP -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From gambas at ...20... Tue Jun 3 22:27:55 2003 From: gambas at ...20... (Benoit Minisini) Date: Tue, 3 Jun 2003 22:27:55 +0200 Subject: [Gambas-devel] Gambas Database Manager - Access Denied In-Reply-To: <200306031545.13734.sourceforge-raindog2@...19...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <3EDD2487.9030706@...26...> <200306031545.13734.sourceforge-raindog2@...19...> Message-ID: <200306032227.55288.gambas@...20...> Le Mardi 3 Juin 2003 21:47, Rob a ?crit : > On Tuesday 03 June 2003 18:43, Ken Schrock wrote: > > Should Joe Blow, who wants to make a small app at home using Gambas > > Know all about RDBMS and climb over a mountain of security to do it? NO. > > I think a good compromise here would be for someone to write an embedded > MySQL module, that is, use the embedded capabilities that are supposed to > be in MySQL 4 (see http://www.mysql.com/doc/en/Nutshell_Embedded_MySQL.html Hey ! I didn't aware of its existence ! Great thing :-) > ) to make a Gambas component that provides SQL access against local > MySQL files rather than needing a database, security, and all that stuff. > That way, the model that novice VB programmers are used to (just create an > MDB and open it in VB) is still available if it's needed, but the more > secure server-oriented database options aren't compromised as you propose. > > Besides, if such a script (to automatically create a super gambas user > without saying anything) were included, the various distributions would > doubtless lock down MySQL/Postgres even more than they already do so that > this would be impossible for a non-root user in the first place. Making an > embedded mySQL module to give the DBMS-novice Gambas user a playground > seems a reasonable alternative as well as being closer to the Access-style > DBMS manipulation they're used to. > > Not that I'm volunteering ;) > > Rob > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Benoit Minisini mailto:gambas at ...1... From gambas at ...20... Tue Jun 3 22:34:05 2003 From: gambas at ...20... (Benoit Minisini) Date: Tue, 3 Jun 2003 22:34:05 +0200 Subject: [Gambas-devel] Docs In-Reply-To: <3EDD02C3.9010301@...26...> References: <3EDD02C3.9010301@...26...> Message-ID: <200306032234.05543.gambas@...20...> Le Mardi 3 Juin 2003 22:19, Ken Schrock a ?crit : > I installed Gambas from a binary package > Where can I get docs on the component interface? Hi, Ken I didn't write such a documentation, but there is a full commented gb.example component that you can browse. Writing a component on gambas is a bit like writing a driver under Linux. You have an interface to the interpreter, and must follow a lot of rules. The source of the component is to be included in the gambas source. You will not have all the information in the gb.example component, so you must ask me. It depends on what you want to do exactly. Regards, -- Benoit Minisini mailto:gambas at ...1... From karl.reinl at ...16... Tue Jun 3 23:09:30 2003 From: karl.reinl at ...16... (Charlie) Date: Tue, 03 Jun 2003 23:09:30 +0200 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> <1054664008.19120.17.camel@...34...> <3EDD2487.9030706@...26...> Message-ID: <3EDD0E8A.7070209@...16...> Ken Schrock schrieb: > I disagree with his disagreement : -) > > Anybody that wants to use Gambas should know RDBMS? Why? > > I would like a lot of people to use Linux > Do any of these corporate types have any idea > How VERY difficult it is for "average" or "home" users > To work around all the damn security built into most Linux distros? > > If you use Linux or Gambas in an environment where security is important > Then you are probably getting paid for it, and should know what you > are doing > And should be able to handle the security issues that such an > environment entails > > Should Joe Blow, who wants to make a small app at home using Gambas > Know all about RDBMS and climb over a mountain of security to do it? NO. > > Yes, Benoit, I would like such a thing, I think most "normal" users would > > If corp users want a big security version of Gambas, sell them one : -) > > > Philip A. Chapman wrote: > >> Benoit, >> >> I believe that this is a bad idea for two reasons. The first is that it >> could open up security issues. The second is that developers should >> know at least the basics of how an RDBMS they are connecting to works. >> >> I can understand that you would like for gambas to hide as many of the >> mundane stuff as possible, but there is no excuse for a developer not >> understanding how the RDBMS that his application is using works; >> especially security. >> >> Do everything that you can to create good prompts and error messages >> when you cannot connect to a database. Even provide ample >> documentation. However, I think installing an all powerful user is a >> back door style exploit waiting to happen. >> >> Thanks, >> >> On Tue, 2003-06-03 at 12:07, Benoit Minisini wrote: >> >> >>> Le Mardi 3 Juin 2003 12:32, Nigel GERRARD a ?crit : >>> >>> >>>> Few weeks or even months !:-) ago there was a thread discussing a >>>> problem >>>> with mysql connects. A message similar to 'Cannot open database: >>>> Access >>>> denied for user '????@localhost' (Using password: NO..or YES)' occurs >>>> within the Database Manager. I am not sure whether this got resolved >>>> properly since searching the sourceforge.net archives doesn't appear to >>>> work, but is due to the mysql driver defaulting to database 'mysql' >>>> and the >>>> connecting user not having the privileges to connect to it. >>>> >>>> I would suggest that the GDM should produce a warning message for >>>> the user >>>> to check that the connection user has been granted access to database >>>> 'mysql'. >>>> >>> >>> Hi, Nigel >>> >>> Could it be possible to write a little script to initialize a mysql >>> database server (I will the postgresql one) so that a default >>> connection to the server works every time ? >>> >>> For example, it will create a 'gambas' user with all access, and >>> this user will be used by the driver. >>> >>> Do you think it is a good idea, or do you think it's better to let >>> the root user doing that ? >>> >> > is your password ENTER ? charlie From karl.reinl at ...16... Tue Jun 3 23:17:52 2003 From: karl.reinl at ...16... (Charlie) Date: Tue, 03 Jun 2003 23:17:52 +0200 Subject: [Gambas-devel] who the f... is Joe Blow Message-ID: <3EDD1080.3070509@...16...> for not going to bed idiot, is Joe the symonym for a stupit user ? like DAU in german, what means D?mmster Anzunehmenter User I try a translation for DAU "worst case User" or "most stupit User" Is that Joe Blow ? Charlie From stibs at ...35... Wed Jun 4 04:11:55 2003 From: stibs at ...35... (stibs at ...35...) Date: Wed, 4 Jun 2003 03:11:55 +0100 Subject: [Gambas-devel] who the f... is Joe Blow Message-ID: <200306040211.DAA32610@...38...> Guys, let me answer that in german language ;o) > for not going to bed idiot, > is Joe the symonym for a stupit user ? > like DAU in german, what means D?mmster Anzunehmenter User > I try a translation for DAU "worst case User" or "most stupit User" > Is that Joe Blow ? Joe Blow is sowas wie Otto Normaluser mit einer Anspielung auf blow up, ein normaler User also, der das Zeug dazu hat, den Rechner lahmzulegen durch seine Neugierde und seine kleine Abneigung, vorher eine laaaaange Anleitung zu lesen... der ganz normale User eben... --Kindest Regards/ Freundliche Gr??e-- STIBS (aka Michael Stibane) "Man is free at the moment he wishes to be." --Voltaire ... seems this guy already knew about Linux :o) ... ________________________________________________________ Training, Administration, Consulting, Development http://www.stibs.cc, stibs at ...35... -- Mandrakesoft Linux Campus Trainer http://mandrakesoft.com/training -- Escapade Server Sided Scripting Language Dev Team Pensacola, Dallas, Dresden, London http://escapade.org, stibs at ...36... -- Yoper OS German Maintainer http://yoper.com, stibs at ...37... ________________________________________________________ From sourceforge-raindog2 at ...19... Wed Jun 4 00:01:16 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Tue, 3 Jun 2003 18:01:16 -0400 Subject: [Gambas-devel] who the f... is Joe Blow In-Reply-To: <3EDD1080.3070509@...16...> References: <3EDD1080.3070509@...16...> Message-ID: <200306031801.16618.sourceforge-raindog2@...19...> On Tuesday 03 June 2003 17:17, Charlie wrote: > I try a translation for DAU "worst case User" or "most stupit User" > Is that Joe Blow ? Yes, but in America it's not quite so pejorative a term as there are so many more of them. Rob From Gambasfr at ...4... Wed Jun 4 20:36:46 2003 From: Gambasfr at ...4... (Fabien) Date: Wed, 4 Jun 2003 20:36:46 +0200 Subject: [Gambas-devel] Gambas Database Manager - Access Denied In-Reply-To: <1054671451.22302.23.camel@...34...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <3EDD2487.9030706@...26...> <1054671451.22302.23.camel@...34...> Message-ID: <200306042036.46591.Gambasfr@...4...> Le Mardi 3 Juin 2003 22:17, Philip A. Chapman a ?crit : > On Tue, 2003-06-03 at 17:43, Ken Schrock wrote: > > I disagree with his disagreement : -) > > > > Anybody that wants to use Gambas should know RDBMS? Why? > > I may not have been plain enough, but what I ment was that anybody that > does development against an RDBMS needs to know that RDBMS. Not > necessarily anybody using Gambas. > > > I would like a lot of people to use Linux > > Do any of these corporate types have any idea > > How VERY difficult it is for "average" or "home" users > > To work around all the damn security built into most Linux distros? > > Yes, it would be nice to have more users using Linux. Yes it is very > difficult for a newbie user to learn of all the *ahem* security built > into most distros. (Not that we are arguing about distros, but RDBMS > systems have security as part of their nature.) I do not think that the > answer is to negate all of that security. I think the answer is to make > it easier for the user to understand and maintain that security. > > Must I name other OSs and other RDBMS systems that have been ruthlessly > attacked and are known for security exploits because either they were > not built on secure paradigms or what security they had was negated by a > well known back door or default user/password. The SQL server exploits > that allowed a worm to wreak havok everywhere was not only due to admins > that did not pay attention, but by average Joes that installed SQL > server on their boxen connected to a DSL or cable modem. Shame on the > admin. He should have known better. What about Joe user? Do we blame > Joe because he didn't take the time to learn the security of SQL server, > or was it Microsoft for not forcing people to provide a password for the > sa account during login? > > Let's say Gambas becomes very popular. I want that, don't you? I don't > want to see the bad publicity Gambas, Linux, and Postgresql/MySQL would > get when a worm or hackers attack these RDBMS systems trying to log in > with the gambas administrative level user. > > > If you use Linux or Gambas in an environment where security is important > > Then you are probably getting paid for it, and should know what you are > > doing > > And should be able to handle the security issues that such an > > environment entails > > When Joe user's system is hacked and crashes because he didn't know > about security and did not realize that Gambas installed a back door, > Joe user may very well no longer use Gambas OR Linux when he figures out > what is going on. > > > Should Joe Blow, who wants to make a small app at home using Gambas > > Know all about RDBMS and climb over a mountain of security to do it? NO. > > It would be nice for users to create small databases for personal user > ala Microsoft Access. However, I do not think that either PostgreSQL or > MySQL was designed with this in mind. Perhaps a search for a more > suitable database engine would be in order. I'll do some research and > see if there are any good open source, single-user database engines that > may fit this bill. yop! I search too But... don't find this type of base..., there more simple to export... in a floppy disk for accounting for exemple ... fabien > > > Yes, Benoit, I would like such a thing, I think most "normal" users would > > > > If corp users want a big security version of Gambas, sell them one : -) > > I respect your right to disagree. However, I stand behind my original > post. > > Thanks, From karl.reinl at ...16... Wed Jun 4 22:24:03 2003 From: karl.reinl at ...16... (Charlie) Date: Wed, 04 Jun 2003 22:24:03 +0200 Subject: [Gambas-devel] who the f... is Joe Blow References: <3EDD1080.3070509@...16...> <200306031801.16618.sourceforge-raindog2@...19...> Message-ID: <3EDE5563.9010704@...16...> Rob schrieb: >On Tuesday 03 June 2003 17:17, Charlie wrote: > > >>I try a translation for DAU "worst case User" or "most stupit User" >>Is that Joe Blow ? >> >> > >Yes, but in America it's not quite so pejorative a term as there are so many >more of them. > >Rob > > Thanks all, for knowing also about this. DAU has a big brother, called GAU what means for Nuclear Power Stations the 'worst case accident' Charlie From nigel at ...2... Wed Jun 4 23:48:23 2003 From: nigel at ...2... (Nigel GERRARD) Date: Wed, 4 Jun 2003 22:48:23 +0100 Subject: [Gambas-devel] Events Message-ID: <001c01c32ae3$075a3140$020a0a0a@...3...> Benoit, If I read this extract correctly from one of your user-list replies, there is currently no way to send an event notification from a non qt component.... 'The problem is - I'm ashamed :-) - that I didn't write the event loop inside the interpreter to manage events when a program do not use the qt component ! Maybe I should do that ?' I was looking at and thinking about a socket component..not based on QT because I would like it to be available to GTK (when written) etc., that would send an event when it's read buffer has received something...and have been struggling to come up with the proper way of doing so :-) My hope is that you will be able to find time to create an independant event manager and this will be the answer!! Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigel at ...2... Wed Jun 4 23:54:45 2003 From: nigel at ...2... (Nigel GERRARD) Date: Wed, 4 Jun 2003 22:54:45 +0100 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> Message-ID: <002401c32ae3$ea1826e0$020a0a0a@...3...> Seems that you stirred up a hornets nest with this one Benoit. I must admit I have some doubts about creating a specific gambas user with relevant rights automatically. I think it would be better to mention somewhere that a 'power' user should be created and used. I also think that if the default login fails, then a prompt for the power username and password should be made. Nigel ----- Original Message ----- From: "Benoit Minisini" To: Sent: Tuesday, June 03, 2003 6:07 PM Subject: Re: [Gambas-devel] Gambas Database Manager - Access Denied Le Mardi 3 Juin 2003 12:32, Nigel GERRARD a ?crit : > Few weeks or even months !:-) ago there was a thread discussing a problem > with mysql connects. A message similar to 'Cannot open database: Access > denied for user '????@localhost' (Using password: NO..or YES)' occurs > within the Database Manager. I am not sure whether this got resolved > properly since searching the sourceforge.net archives doesn't appear to > work, but is due to the mysql driver defaulting to database 'mysql' and the > connecting user not having the privileges to connect to it. > > I would suggest that the GDM should produce a warning message for the user > to check that the connection user has been granted access to database > 'mysql'. Hi, Nigel Could it be possible to write a little script to initialize a mysql database server (I will the postgresql one) so that a default connection to the server works every time ? For example, it will create a 'gambas' user with all access, and this user will be used by the driver. Do you think it is a good idea, or do you think it's better to let the root user doing that ? -- Benoit Minisini mailto:gambas at ...1... ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From gambas at ...20... Fri Jun 6 00:10:45 2003 From: gambas at ...20... (Benoit Minisini) Date: Fri, 6 Jun 2003 00:10:45 +0200 Subject: [Gambas-devel] Events In-Reply-To: <001c01c32ae3$075a3140$020a0a0a@...3...> References: <001c01c32ae3$075a3140$020a0a0a@...3...> Message-ID: <200306060010.45133.gambas@...20...> Le Mercredi 4 Juin 2003 23:48, Nigel GERRARD a ?crit : > Benoit, > > If I read this extract correctly from one of your user-list replies, there > is currently no way to send an event notification from a non qt > component.... The event management of gambas has nothing to do with qt event management, except that, in the qt component, gambas event are raised when qt events are raised. To raise an event, you have the GB.Raise() function in the gambas API. > > 'The problem is - I'm ashamed :-) - that I didn't write the event loop > inside the interpreter to manage events when a program do not use the qt > component ! > > Maybe I should do that ?' > > I was looking at and thinking about a socket component..not based on QT > because I would like it to be available to GTK (when written) etc., that > would send an event when it's read buffer has received something...and have > been struggling to come up with the proper way of doing so :-) The interpreter event loop I didn't write yet is simply a call to select(). There is a function named GB.Watch() in the gambas API to ask the event loop (qt one, or the not yet written one) to watch a file descriptor, for reading and/or writing. See CProcess.c in the interpreter source code for more details. > > My hope is that you will be able to find time to create an independant > event manager and this will be the answer!! > > Nigel -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Fri Jun 6 04:59:55 2003 From: schrockk at ...26... (Ken Schrock) Date: Thu, 05 Jun 2003 19:59:55 -0700 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> <1054664008.19120.17.camel@...34...> <3EDD2487.9030706@...26...> <3EDD0E8A.7070209@...16...> Message-ID: <3EE003AB.6080905@...26...> Charlie wrote: > Ken Schrock schrieb: > >> I disagree with his disagreement : -) >> >> Anybody that wants to use Gambas should know RDBMS? Why? > [snip] > is your password ENTER ? On my hardware test box in the basement, yes, on other things, no Security should match the need of the setup involved Not some anal retentive dictatorial absolute -besides- What does my personal useage have to do With a discussion of general security philosophy? Do you lack facts and so therefore have to make it personal? > charlie > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- Using Lindows From timmermans.herman at ...39... Fri Jun 6 12:45:30 2003 From: timmermans.herman at ...39... (Herman Timmermans) Date: Fri, 6 Jun 2003 12:45:30 +0200 Subject: [Gambas-devel] Complitation under Suse 8.1 pro Message-ID: <200306061245.30418.timmermans.herman@...39...> I have downloaded Gambas 0.57 and compiled is successfully and was able to run it. However, i did download the full Mysql 3.23.56 set of rpm's and installed it first, to make sure that I could configure Gambas to use mysql as well as Postgresql. You can update the table of the website. Brgds, Herman From pchapman at ...33... Fri Jun 6 16:05:19 2003 From: pchapman at ...33... (Philip A. Chapman) Date: 06 Jun 2003 09:05:19 -0500 Subject: [Gambas-devel] Gambas Database Manager - Access Denied In-Reply-To: <1054671451.22302.23.camel@...34...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> <1054664008.19120.17.camel@...34...> <3EDD2487.9030706@...26...> <1054671451.22302.23.camel@...34...> Message-ID: <1054908319.2299.13.camel@...40...> On Tue, 2003-06-03 at 15:17, Philip A. Chapman wrote: > It would be nice for users to create small databases for personal user > ala Microsoft Access. However, I do not think that either PostgreSQL or > MySQL was designed with this in mind. Perhaps a search for a more > suitable database engine would be in order. I'll do some research and > see if there are any good open source, single-user database engines that > may fit this bill. Everyone, OK, I've done some research. I've found a project called SQLLite that may fit the bill. http://www.hwaci.com/sw/sqlite/ I plan on playing with it some this weekend to see how good/powerfull it is; but based on the feature set, this could be what we are looking for in an embedded, single-user database engine. I would like to say that one of the main advantages is that the complete database is stored in a single disk file (like MS Access). That would not be desirable for an enterprise level database, but could work well for the backend of a stand-alone application (which is what we were discussing here). And the documentation is in wiki! (Big wink to those that have been discussing and publishing documentation to a wiki site.) I am not a master of the C programming language. However, if there is enough interest, I may be willing to work on a database component. One thing I _can_ do is read code and Benoit and others have already done this for MySQL and Postgresql so..... Thanks, -- Philip A. Chapman Application Development: Java, Visual Basic (MCP), PostgreSQL, MySQL, MSSQL Linux, Windows 9x, Windows NT, Windows 2000, Windows XP -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From schrockk at ...26... Fri Jun 6 19:39:56 2003 From: schrockk at ...26... (Ken Schrock) Date: Fri, 06 Jun 2003 10:39:56 -0700 Subject: [Gambas-devel] Docs References: <3EDD02C3.9010301@...26...> <200306032234.05543.gambas@...20...> Message-ID: <3EE0D1EC.8040404@...26...> Benoit Minisini wrote: >Le Mardi 3 Juin 2003 22:19, Ken Schrock a ?crit : > > >>I installed Gambas from a binary package >>Where can I get docs on the component interface? >> >> >Hi, Ken > >I didn't write such a documentation, but there is a full commented gb.example >component that you can browse. > >Writing a component on gambas is a bit like writing a driver under Linux. You >have an interface to the interpreter, and must follow a lot of rules. The >source of the component is to be included in the gambas source. > >You will not have all the information in the gb.example component, so you must >ask me. It depends on what you want to do exactly. > Seems the functions should all be the same Communication from and\or to the component In either a syncronous or asyncronous manner From the example there seems to also be init I had several things in mind (example, getting system data) Seems most projects could be started read only, values only (the component simply offers read only properties to the app) Writing properties and various callbacks could then be added Depending on the needs of the particular component involved Is the example compilable as is, and what all is needed for that? -- Using Lindows -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...19... Fri Jun 6 18:50:51 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Fri, 6 Jun 2003 12:50:51 -0400 Subject: [Gambas-devel] Gambas Embedded Database(s) In-Reply-To: <1054908319.2299.13.camel@...40...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <1054671451.22302.23.camel@...34...> <1054908319.2299.13.camel@...40...> Message-ID: <200306061250.51124.sourceforge-raindog2@...19...> On Friday 06 June 2003 10:05, Philip A. Chapman wrote: > OK, I've done some research. I've found a project called SQLLite that > may fit the bill. http://www.hwaci.com/sw/sqlite/ I plan on playing > with it some this weekend to see how good/powerfull it is; but based on > the feature set, this could be what we are looking for in an embedded, > single-user database engine. I would like to say that one of the main > advantages is that the complete database is stored in a single disk file > (like MS Access). That would not be desirable for an enterprise level It does look very much like MS Access in terms of what's supported and what's not. Embedded MySQL seems like it might be easier to support (because so many people use MySQL) but having the whole database in one big file does seem more convenient for people who are used to using Access files. Hey, this is a GPL'ed project, no reason there can't be DB drivers for both of them ;) Rob From karl.reinl at ...16... Sat Jun 7 01:17:25 2003 From: karl.reinl at ...16... (Charlie) Date: Sat, 07 Jun 2003 01:17:25 +0200 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> <1054664008.19120.17.camel@...34...> <3EDD2487.9030706@...26...> <3EDD0E8A.7070209@...16...> <3EE003AB.6080905@...26...> Message-ID: <3EE12105.9070409@...16...> Ken Schrock schrieb: > Charlie wrote: > >> Ken Schrock schrieb: >> >>> I disagree with his disagreement : -) >>> >>> Anybody that wants to use Gambas should know RDBMS? Why? >> >> > [snip] > >> is your password ENTER ? > > > On my hardware test box in the basement, yes, on other things, no > Security should match the need of the setup involved > Not some anal retentive dictatorial absolute > -besides- > What does my personal useage have to do > With a discussion of general security philosophy? > Do you lack facts and so therefore have to make it personal? > >> charlie > Es war weder meine Intention, noch der Hintergedanke, dir einen reinw?rgen zu wollen, es war eine spontane Reaktion auf deine vehementes Argument, dass man allen Linux/Unix beibringen sollte, ohne den Vorteil dieser. Weil Sicherheit unbequem, bzw. nicht verst?ndlich ist, f?r den nicht gewohnten Benutzer. Aber man hat dir auch nicht den F?hrerschein gegeben, weil du wusstest, das die Reifen eines Autos bis zu Boden reichen, sondern weil du eine Pr?fung f?r die Bef?higung zu lenken eins motorisierten Fahrzeuges abgelegt hast. Und das fehlen der Argumente war auch nicht der Ausschlag f?r diese Bemerkung, Personen bezogen wie du meinst. That is and it was my reaction, of suche kind of argumentation, leving behind security. Why I answert you in german ? Please guys, english native speeking guys, we others, will talke with you, but do it like Marianne Faithfull sang it in about 1979 or 1980 ' say it in broken english' Don't think it is only you Ken, but I have to passe this, and I passe it in the answer to you. Mostly I think, we understand you messages, but the way you say it, makes us often problems to answer you. And knowing about RDBMS, I think not everybody should know about, but if you want to use it as programmer you should. Programmers can't have the inocents of users, better for them they don't have it. I only speek for me (but that I'v done my hole life). Charlie From sourceforge-raindog2 at ...19... Sat Jun 7 01:58:50 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Fri, 6 Jun 2003 19:58:50 -0400 Subject: [Gambas-devel] Gambas Database Manager - Access Denied In-Reply-To: <3EE12105.9070409@...16...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <3EE003AB.6080905@...26...> <3EE12105.9070409@...16...> Message-ID: <200306061958.50384.sourceforge-raindog2@...19...> I don't entirely agree with either of you, but I figured I should try and translate for Charlie in the interest of keeping the list civil. I don't mean to speak for you, Charlie, I just translated this pretty literally. Let me know if I've crossed a line. Rob On Friday 06 June 2003 19:17, Charlie wrote: > Es war weder meine Intention, noch der Hintergedanke, dir einen It was neither my intention, nor my ulterior motive to insult you; it was a knee-jerk reaction to your vehement argument that one should teach everyone Linux/Unix without also teaching its advantages just because security is uncomfortable and/or not understandable for the novice user. But you didn't get your driver's license just because you knew the tires on a car reach the ground, but rather because you passed an exam showing the ability to drive a car. And the point of my argument that you missed was that you weren't the target of this remark, but the people to whom you meant to refer. [okay, so that part's not quite literal, but it's the best I could do to squeeze it into English -R] From schrockk at ...26... Sat Jun 7 06:15:34 2003 From: schrockk at ...26... (Ken Schrock) Date: Fri, 06 Jun 2003 21:15:34 -0700 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> <200306031907.09150.gambas@...20...> <1054664008.19120.17.camel@...34...> <3EDD2487.9030706@...26...> <3EDD0E8A.7070209@...16...> <3EE003AB.6080905@...26...> <3EE12105.9070409@...16...> Message-ID: <3EE166E6.9020304@...26...> Charlie wrote: [snip] > Please guys, english native speeking guys, we others, will talke with > you, but do it like Marianne Faithfull sang it in about 1979 or 1980 ' > say it in broken english' > Don't think it is only you Ken, but I have to passe this, and I passe > it in the answer to you. > Mostly I think, we understand you messages, but the way you say it, > makes us often problems to answer you. Ahh, ok... Wasn't meine intention either : -) So cutting out the hip hop, trash talk, and slang would help? (as union of Schrag and Kuchmann I should be able to do German, sorry : -( > And knowing about RDBMS, I think not everybody should know about, but > if you want to use it as programmer you should. > > Programmers can't have the inocents of users, better for them they > don't have it. Old argument, we probably won't settle it anyway : -) > I only speek for me (but that I'v done my hole life). > > Charlie > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- Using Lindows From schrockk at ...26... Sat Jun 7 06:45:30 2003 From: schrockk at ...26... (Ken Schrock) Date: Fri, 06 Jun 2003 21:45:30 -0700 Subject: [Gambas-devel] Gambas Database Manager - Access Denied References: <000a01c329bb$717322e0$020a0a0a@...3...> <3EE003AB.6080905@...26...> <3EE12105.9070409@...16...> <200306061958.50384.sourceforge-raindog2@...19...> Message-ID: <3EE16DEA.6040409@...26...> Thank you Rob Wasn't my intention to become uncivil I just come across (unintentionally) a little hard sometime (I don't know if it is because my real job is a prison guard or I am German : -) Likewise, it was a knee jerk reaction from me, as it is a pet peeve People, "average users", are not going to change to ubergeeks to use Linux If we want Linux to get out of the lower single percent usage catagory (and I do) Linux (and it's "supporters") are going to have to change, they will not Thus my interest in Gambas, a programming language for the common man This is probably not the right place for this discussion anyway, sorry You know, I notice, it is very hard to not to use slang >:-| Rob wrote: >I don't entirely agree with either of you, but I figured I should try and >translate for Charlie in the interest of keeping the list civil. I don't >mean to speak for you, Charlie, I just translated this pretty literally. Let >me know if I've crossed a line. > >Rob > >On Friday 06 June 2003 19:17, Charlie wrote: > > >>Es war weder meine Intention, noch der Hintergedanke, dir einen >> >> > >It was neither my intention, nor my ulterior motive to insult you; it was a >knee-jerk reaction to your vehement argument that one should teach everyone >Linux/Unix without also teaching its advantages just because security is >uncomfortable and/or not understandable for the novice user. > >But you didn't get your driver's license just because you knew the tires on a >car reach the ground, but rather because you passed an exam showing the >ability to drive a car. > >And the point of my argument that you missed was that you weren't the target >of this remark, but the people to whom you meant to refer. [okay, so that >part's not quite literal, but it's the best I could do to squeeze it into >English -R] > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > -- Using Lindows -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...20... Sat Jun 7 11:20:10 2003 From: gambas at ...20... (Benoit Minisini) Date: Sat, 7 Jun 2003 11:20:10 +0200 Subject: [Gambas-devel] Gambas Embedded Database(s) In-Reply-To: <200306061250.51124.sourceforge-raindog2@...19...> References: <000a01c329bb$717322e0$020a0a0a@...3...> <1054908319.2299.13.camel@...40...> <200306061250.51124.sourceforge-raindog2@...19...> Message-ID: <200306071120.11020.gambas@...20...> Le Vendredi 6 Juin 2003 18:50, Rob a ?crit : > On Friday 06 June 2003 10:05, Philip A. Chapman wrote: > > OK, I've done some research. I've found a project called SQLLite that > > may fit the bill. http://www.hwaci.com/sw/sqlite/ I plan on playing > > with it some this weekend to see how good/powerfull it is; but based on > > the feature set, this could be what we are looking for in an embedded, > > single-user database engine. I would like to say that one of the main > > advantages is that the complete database is stored in a single disk file > > (like MS Access). That would not be desirable for an enterprise level > > It does look very much like MS Access in terms of what's supported and > what's not. Embedded MySQL seems like it might be easier to support > (because so many people use MySQL) but having the whole database in one big > file does seem more convenient for people who are used to using Access > files. > > Hey, this is a GPL'ed project, no reason there can't be DB drivers for both > of them ;) > > Rob > SQLite seems to be more practical than embedded mysql, because you can choose the file where the database is stored, whereas embedded mysql is really a embedded mysql server where you can only choose the directory where all your databases are stored. I sugget using sqlite. If I had time, I would do the database driver :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...20... Sat Jun 7 11:33:08 2003 From: gambas at ...20... (Benoit Minisini) Date: Sat, 7 Jun 2003 11:33:08 +0200 Subject: [Gambas-devel] Complitation under Suse 8.1 pro In-Reply-To: <200306061245.30418.timmermans.herman@...39...> References: <200306061245.30418.timmermans.herman@...39...> Message-ID: <200306071133.08712.gambas@...20...> Le Vendredi 6 Juin 2003 12:45, Herman Timmermans a ?crit : > I have downloaded Gambas 0.57 and compiled is successfully and was able to > run it. > However, i did download the full Mysql 3.23.56 set of rpm's and installed > it first, to make sure that I could configure Gambas to use mysql as well > as Postgresql. You can update the table of the website. > Brgds, > Herman > > Thanks Herman, I will update the web site. -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Sat Jun 7 21:18:32 2003 From: schrockk at ...26... (Ken Schrock) Date: Sat, 07 Jun 2003 12:18:32 -0700 Subject: [Gambas-devel] component Message-ID: <3EE23A88.6000207@...26...> Let's see if I have this right Would this yield a component called 2Example With a single read-only property called width, type integer? (which would always return 0 at this point : -) HACK Hack hack Minimalist version /********************* short_c2example.h **********************/ #ifndef __C2EXAMPLE_H #define __C2EXAMPLE_H #include "gambas.h" #ifndef __C2EXAMPLE_C extern GB_DESC CExampleDesc[]; #else #define THIS ((C2EXAMPLE *)_object) #endif typedef struct { GB_BASE ob; long width; } C2EXAMPLE; #endif /****************** short_c2example.c ****************/ #define __C2EXAMPLE_C #include "short_main.h" #include "Short_C2Example.h" BEGIN_PROPERTY(C2EXAMPLE_width) GB.ReturnInteger(THIS->width); END_PROPERTY GB_DESC C2ExampleDesc[] = GB_DECLARE("2Example", sizeof(C2EXAMPLE)), GB_PROPERTY_READ("Width", "i", C2EXAMPLE_width), GB_END_DECLARE }; /************* short_main.h *****************/ #ifndef __MAIN_H #define __MAIN_H #include "gambas.h" #ifndef __MAIN_C extern GB_INTERFACE GB; #else static void hook_main(int *argc, char **argv); #endif /* __MAIN_C */ #endif /* __MAIN_H */ /****************** short_main.c *********************/ #define __MAIN_C #include "Short_C2Example.h" #include "short_main.h" GB_INTERFACE GB; GB_DESC *GB_CLASSES[] = { C2ExampleDesc, NULL }; int GB_INIT(void) { GB.Hook(GB_HOOK_MAIN, (void *)hook_main); return 0; } void GB_EXIT() { } void GB_INFO(int info, void **result) { switch (info) { case GB_INFO_CONTROL: *result = (void *)NULL; break; case GB_INFO_REQUIRE: *result = (void *)NULL; break; } } static void hook_main(int *argc, char **argv) { /* main stuff */ } Also, Gambas (IDE etc) work well here with this binary package I therefore want to leave it alone and do this level dev elsewhere I also have Mandrake version 8.2 on this machine Will the 0.57 source compile ok there? -- Using Lindows From sourceforge-raindog2 at ...19... Sat Jun 7 21:06:53 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Sat, 7 Jun 2003 15:06:53 -0400 Subject: [Gambas-devel] component In-Reply-To: <3EE23A88.6000207@...26...> References: <3EE23A88.6000207@...26...> Message-ID: <200306071506.53244.sourceforge-raindog2@...19...> On Saturday 07 June 2003 15:18, Ken Schrock wrote: > I also have Mandrake version 8.2 on this machine > Will the 0.57 source compile ok there? I think Gambas might require Qt 3 and I think 8.2 was still back on Qt 2.1. Rob From schrockk at ...26... Sun Jun 8 03:15:48 2003 From: schrockk at ...26... (Ken Schrock) Date: Sat, 07 Jun 2003 18:15:48 -0700 Subject: [Gambas-devel] component References: <3EE23A88.6000207@...26...> <200306071506.53244.sourceforge-raindog2@...19...> Message-ID: <3EE28E44.3050602@...26...> Rob wrote: >On Saturday 07 June 2003 15:18, Ken Schrock wrote: > > >>I also have Mandrake version 8.2 on this machine >>Will the 0.57 source compile ok there? >> >> >I think Gambas might require Qt 3 and I think 8.2 was still back on Qt 2.1. > How about Mandrake 9, x86 or PPC, SuSe 7.3, Yellow Dog (3.x I think) I also have a new version of Lycoris but couldn't get it installed on anything >Rob >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > -- Using Lindows -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...19... Sun Jun 8 04:39:31 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Sat, 7 Jun 2003 22:39:31 -0400 Subject: [Gambas-devel] component In-Reply-To: <3EE28E44.3050602@...26...> References: <3EE23A88.6000207@...26...> <200306071506.53244.sourceforge-raindog2@...19...> <3EE28E44.3050602@...26...> Message-ID: <200306072236.34057.sourceforge-raindog2@...19...> On Saturday 07 June 2003 21:15, Ken Schrock wrote: > How about Mandrake 9, x86 or PPC, SuSe 7.3, Yellow Dog (3.x I think) > I also have a new version of Lycoris but couldn't get it installed on > anything I seem to remember Benoit mentioning on the web site that he had to fix some endianness issues, so it may not work on PPC at all (which would end up ruling out Yellow Dog and Mandrake 9 PPC). I'm running Mandrake 9 on x86 here though and that's what my RPM's are for. (I sometimes get to build 9.1 RPM's but I haven't built any for 0.57 because I haven't had access to that build machine in a week or two.) Rob From schrockk at ...26... Sun Jun 8 13:50:59 2003 From: schrockk at ...26... (Ken Schrock) Date: Sun, 08 Jun 2003 04:50:59 -0700 Subject: [Gambas-devel] component References: <3EE23A88.6000207@...26...> <200306071506.53244.sourceforge-raindog2@...19...> <3EE28E44.3050602@...26...> <200306072236.34057.sourceforge-raindog2@...19...> Message-ID: <3EE32323.5060702@...26...> I had Mandrake 9.0 on here but killed it with the attempted Lycoris install I will simply reinstall it. It is one of the few that works with hdx2 > 8 gig Rob wrote: >On Saturday 07 June 2003 21:15, Ken Schrock wrote: > > >>How about Mandrake 9, x86 or PPC, SuSe 7.3, Yellow Dog (3.x I think) >>I also have a new version of Lycoris but couldn't get it installed on >>anything >> >> >I seem to remember Benoit mentioning on the web site that he had to fix some >endianness issues, so it may not work on PPC at all (which would end up >ruling out Yellow Dog and Mandrake 9 PPC). I'm running Mandrake 9 on x86 >here though and that's what my RPM's are for. (I sometimes get to build 9.1 >RPM's but I haven't built any for 0.57 because I haven't had access to that >build machine in a week or two.) > >Rob > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > -- Using Lindows -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...20... Sun Jun 8 11:18:30 2003 From: gambas at ...20... (Benoit Minisini) Date: Sun, 8 Jun 2003 11:18:30 +0200 Subject: [Gambas-devel] component In-Reply-To: <3EE23A88.6000207@...26...> References: <3EE23A88.6000207@...26...> Message-ID: <200306081118.31052.gambas@...20...> Le Samedi 7 Juin 2003 21:18, Ken Schrock a ?crit : > Let's see if I have this right > Would this yield a component called 2Example > With a single read-only property called width, type integer? Yes. > (which would always return 0 at this point : -) > HACK Hack hack Minimalist version > > /********************* short_c2example.h **********************/ > > #ifndef __C2EXAMPLE_H > #define __C2EXAMPLE_H > > #include "gambas.h" > > #ifndef __C2EXAMPLE_C > > extern GB_DESC CExampleDesc[]; > > #else > > #define THIS ((C2EXAMPLE *)_object) > > #endif > > typedef > struct { > GB_BASE ob; > long width; > } > C2EXAMPLE; > > #endif > > /****************** short_c2example.c ****************/ > > #define __C2EXAMPLE_C > > #include "short_main.h" > #include "Short_C2Example.h" > > > BEGIN_PROPERTY(C2EXAMPLE_width) > > GB.ReturnInteger(THIS->width); > > END_PROPERTY > > > GB_DESC C2ExampleDesc[] = > > GB_DECLARE("2Example", sizeof(C2EXAMPLE)), > > GB_PROPERTY_READ("Width", "i", C2EXAMPLE_width), > > GB_END_DECLARE > }; > > /************* short_main.h *****************/ > > #ifndef __MAIN_H > #define __MAIN_H > > #include "gambas.h" > > #ifndef __MAIN_C > > extern GB_INTERFACE GB; > > #else > > static void hook_main(int *argc, char **argv); > > #endif /* __MAIN_C */ > > #endif /* __MAIN_H */ > > /****************** short_main.c *********************/ > > #define __MAIN_C > > #include "Short_C2Example.h" > #include "short_main.h" > > GB_INTERFACE GB; > > GB_DESC *GB_CLASSES[] = > { > C2ExampleDesc, > NULL > }; > > int GB_INIT(void) > { > GB.Hook(GB_HOOK_MAIN, (void *)hook_main); > return 0; > } > > void GB_EXIT() > { > } > > void GB_INFO(int info, void **result) > { > switch (info) > { > case GB_INFO_CONTROL: > *result = (void *)NULL; > break; > > case GB_INFO_REQUIRE: > *result = (void *)NULL; > break; > } > } It is not necessary to manage the cases where GB_INFO returns NULL, because this is the default value. > > static void hook_main(int *argc, char **argv) > { > /* main stuff */ > } > > Also, Gambas (IDE etc) work well here with this binary package > I therefore want to leave it alone and do this level dev elsewhere > I also have Mandrake version 8.2 on this machine > Will the 0.57 source compile ok there? You need at least Mandrake 9.0, Mandrake 9.1 being better. -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Sun Jun 8 23:01:06 2003 From: schrockk at ...26... (Ken Schrock) Date: Sun, 08 Jun 2003 14:01:06 -0700 Subject: [Gambas-devel] component References: <3EE23A88.6000207@...26...> <200306081118.31052.gambas@...20...> Message-ID: <3EE3A412.1080901@...26...> Benoit Minisini wrote: >Le Samedi 7 Juin 2003 21:18, Ken Schrock a ?crit : > > >>Let's see if I have this right >>Would this yield a component called 2Example >>With a single read-only property called width, type integer? >> >> >Yes. > Ok, then when this compiles I should have lib.gb.2example.so.0.0.0 Which goes into /usr/gambas/lib along with Links .so and .so.0 to it, and a lib.gb.2example.la Plus an ini type section for it in /usr/gambas/component Pretty well cover it? >>(which would always return 0 at this point : -) >>HACK Hack hack Minimalist version >> >>/********************* short_c2example.h **********************/ >> >>#ifndef __C2EXAMPLE_H >>#define __C2EXAMPLE_H >> >>#include "gambas.h" >> >>#ifndef __C2EXAMPLE_C >> >>extern GB_DESC CExampleDesc[]; >> >>#else >> >>#define THIS ((C2EXAMPLE *)_object) >> >>#endif >> >>typedef >> struct { >> GB_BASE ob; >> long width; >> } >> C2EXAMPLE; >> >>#endif >> >>/****************** short_c2example.c ****************/ >> >>#define __C2EXAMPLE_C >> >>#include "short_main.h" >>#include "Short_C2Example.h" >> >> >>BEGIN_PROPERTY(C2EXAMPLE_width) >> >> GB.ReturnInteger(THIS->width); >> >>END_PROPERTY >> >> >>GB_DESC C2ExampleDesc[] = >> >> GB_DECLARE("2Example", sizeof(C2EXAMPLE)), >> >> GB_PROPERTY_READ("Width", "i", C2EXAMPLE_width), >> >> GB_END_DECLARE >>}; >> >>/************* short_main.h *****************/ >> >>#ifndef __MAIN_H >>#define __MAIN_H >> >>#include "gambas.h" >> >>#ifndef __MAIN_C >> >>extern GB_INTERFACE GB; >> >>#else >> >>static void hook_main(int *argc, char **argv); >> >>#endif /* __MAIN_C */ >> >>#endif /* __MAIN_H */ >> >>/****************** short_main.c *********************/ >> >>#define __MAIN_C >> >>#include "Short_C2Example.h" >>#include "short_main.h" >> >>GB_INTERFACE GB; >> >>GB_DESC *GB_CLASSES[] = >>{ >> C2ExampleDesc, >> NULL >>}; >> >>int GB_INIT(void) >>{ >> GB.Hook(GB_HOOK_MAIN, (void *)hook_main); >> return 0; >>} >> >>void GB_EXIT() >>{ >>} >> >>void GB_INFO(int info, void **result) >>{ >> switch (info) >> { >> case GB_INFO_CONTROL: >> *result = (void *)NULL; >> break; >> >> case GB_INFO_REQUIRE: >> *result = (void *)NULL; >> break; >> } >>} >> >> > >It is not necessary to manage the cases where GB_INFO returns NULL, because >this is the default value. > > > >>static void hook_main(int *argc, char **argv) >>{ >>/* main stuff */ >>} >> >> >> -- Using Lindows -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...20... Mon Jun 9 09:54:40 2003 From: gambas at ...20... (Benoit Minisini) Date: Mon, 9 Jun 2003 09:54:40 +0200 Subject: [Gambas-devel] component In-Reply-To: <3EE3A412.1080901@...26...> References: <3EE23A88.6000207@...26...> <200306081118.31052.gambas@...20...> <3EE3A412.1080901@...26...> Message-ID: <200306090954.41011.gambas@...20...> Le Dimanche 8 Juin 2003 23:01, Ken Schrock a ?crit : > Benoit Minisini wrote: > >Le Samedi 7 Juin 2003 21:18, Ken Schrock a ?crit : > >>Let's see if I have this right > >>Would this yield a component called 2Example > >>With a single read-only property called width, type integer? > > > >Yes. > > Ok, then when this compiles > I should have lib.gb.2example.so.0.0.0 > Which goes into /usr/gambas/lib along with > Links .so and .so.0 to it, and a lib.gb.2example.la Yes. Provided that there is a correct Makefile.am in the component source directory, and that I modify the configure.in file. > Plus an ini type section for it in /usr/gambas/component This must be added by hand. > > Pretty well cover it? > > >>(which would always return 0 at this point : -) > >>HACK Hack hack Minimalist version > >> > >>/********************* short_c2example.h **********************/ > >> > >>#ifndef __C2EXAMPLE_H > >>#define __C2EXAMPLE_H > >> > >>#include "gambas.h" > >> > >>#ifndef __C2EXAMPLE_C > >> > >>extern GB_DESC CExampleDesc[]; > >> > >>#else > >> > >>#define THIS ((C2EXAMPLE *)_object) > >> > >>#endif > >> > >>typedef > >> struct { > >> GB_BASE ob; > >> long width; > >> } > >> C2EXAMPLE; > >> > >>#endif > >> > >>/****************** short_c2example.c ****************/ > >> > >>#define __C2EXAMPLE_C > >> > >>#include "short_main.h" > >>#include "Short_C2Example.h" > >> > >> > >>BEGIN_PROPERTY(C2EXAMPLE_width) > >> > >> GB.ReturnInteger(THIS->width); > >> > >>END_PROPERTY > >> > >> > >>GB_DESC C2ExampleDesc[] = > >> > >> GB_DECLARE("2Example", sizeof(C2EXAMPLE)), > >> > >> GB_PROPERTY_READ("Width", "i", C2EXAMPLE_width), > >> > >> GB_END_DECLARE > >>}; > >> > >>/************* short_main.h *****************/ > >> > >>#ifndef __MAIN_H > >>#define __MAIN_H > >> > >>#include "gambas.h" > >> > >>#ifndef __MAIN_C > >> > >>extern GB_INTERFACE GB; > >> > >>#else > >> > >>static void hook_main(int *argc, char **argv); > >> > >>#endif /* __MAIN_C */ > >> > >>#endif /* __MAIN_H */ > >> > >>/****************** short_main.c *********************/ > >> > >>#define __MAIN_C > >> > >>#include "Short_C2Example.h" > >>#include "short_main.h" > >> > >>GB_INTERFACE GB; > >> > >>GB_DESC *GB_CLASSES[] = > >>{ > >> C2ExampleDesc, > >> NULL > >>}; > >> > >>int GB_INIT(void) > >>{ > >> GB.Hook(GB_HOOK_MAIN, (void *)hook_main); > >> return 0; > >>} > >> > >>void GB_EXIT() > >>{ > >>} > >> > >>void GB_INFO(int info, void **result) > >>{ > >> switch (info) > >> { > >> case GB_INFO_CONTROL: > >> *result = (void *)NULL; > >> break; > >> > >> case GB_INFO_REQUIRE: > >> *result = (void *)NULL; > >> break; > >> } > >>} > > > >It is not necessary to manage the cases where GB_INFO returns NULL, > > because this is the default value. > > > >>static void hook_main(int *argc, char **argv) > >>{ > >>/* main stuff */ > >>} -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Mon Jun 9 10:07:20 2003 From: schrockk at ...26... (Ken Schrock) Date: Mon, 09 Jun 2003 09:07:20 +0100 Subject: [Gambas-devel] component References: <3EE23A88.6000207@...26...> <200306081118.31052.gambas@...20...> <3EE3A412.1080901@...26...> <200306090954.41011.gambas@...20...> Message-ID: <3EE44038.9060303@...26...> An HTML attachment was scrubbed... URL: From gambas at ...20... Mon Jun 9 15:29:49 2003 From: gambas at ...20... (Benoit Minisini) Date: Mon, 9 Jun 2003 15:29:49 +0200 Subject: [Gambas-devel] component In-Reply-To: <3EE44038.9060303@...26...> References: <3EE23A88.6000207@...26...> <200306090954.41011.gambas@...20...> <3EE44038.9060303@...26...> Message-ID: <200306091529.49121.gambas@...20...> Le Lundi 9 Juin 2003 10:07, Ken Schrock a ?crit : > Could you post messages on the mailing-lists as plain text, please ? > > > > [snip] >
>
>
Plus an ini type section for it in
> /usr/gambas/component
>
This must be added by hand.
>
> I notice the .help and .info files are also needed
> For the component to be seen by the IDE
> (.help is necessary but can be blank?)
> I did them by hand for this test
>
> Is that normal, or should they have been created?
> (and I missed something in the config files)
The .info file is generated by the gambas command 'gbi -a', and contains the description of each symbol of each class of the component. The .help file is written by hand et can be void. It describes the symbols and classes in a human language. >
> It all works btw, pretty slick
Yeah ;-) >
--
> Using Linux Mandrake 9
>
>
>
> 
>
> > > -- Benoit Minisini mailto:gambas at ...1... From oscarcld at ...31... Mon Jun 9 17:26:25 2003 From: oscarcld at ...31... (DA Corp.) Date: Mon, 9 Jun 2003 10:26:25 -0500 Subject: [Gambas-devel] C/c++ Component Message-ID: <3EE4A720.000005.01372@...32...> I have this file. It was write in C. This file is used to write a number in the parallel port. 0x37 is 55 in hexadecimal number. I want to replace it for a variable in Gambas. for example, X: #include int main() { outport(0x378,0x37); return 0; } How I do include this file in Gambas? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 494 bytes Desc: not available URL: From schrockk at ...26... Mon Jun 9 21:31:37 2003 From: schrockk at ...26... (Ken Schrock) Date: Mon, 09 Jun 2003 12:31:37 -0700 Subject: [Gambas-devel] component Message-ID: <3EE4E099.7000304@...26...> I have a few small problems (I am using 0.57) I copied the example component, hacked it up And changed all the files to C2Example.x, 2example.x etc And then added 2Example to configure.in and makefile.in And changed the class name to 2Example Did the component file, help, etc It compiled and installed ok But the statement DIM hExample as 2Example Caused a gambas core dump (92k) during syntax check Simply changing only the class name in Desc To anExample made it work just fine DIM hExample as anExample Even though everything else is still 2Example Syntax checker or class loader hates leading numbers. A feature? Then, from what it says in the comments (yes, I read them before hacking them to death : -) /* The GB_INFO_CONTROL information is a list of the graphics controls included in the component. This information is used by the development environment to fill the toolbox. */ case GB_INFO_CONTROL: /* This is the list returned by the QT component ! */ *result = (void *) "Label,Image,TextLabel,ProgressBar,Button,CheckBox,RadioButton,ToggleButton," "TextBox,ComboBox,TextArea,ListBox,ListView,TreeView,IconView,GridView,ColumnView," "Frame,Panel,TabStrip,ScrollView,DrawingArea,Timer"; I figured that "Timer" here makes the IDE load /opt/gambas/lib/control/timer.png to toolbox So I made a sys.png in that directory (actually in the src dir, as this overwrites the other) And then made *result = (void *)"Sys"; Rebuilt and tried it. No go. What's needed? -- Using Lindows From sourceforge-raindog2 at ...19... Mon Jun 9 18:29:48 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 9 Jun 2003 12:29:48 -0400 Subject: [Gambas-devel] C/c++ Component In-Reply-To: <3EE4A720.000005.01372@...32...> References: <3EE4A720.000005.01372@...32...> Message-ID: <200306091229.48679.sourceforge-raindog2@...19...> On Monday 09 June 2003 11:26, DA Corp. wrote: >I have this file. It was write in C. This file is used to write a number in >the parallel port. 0x37 is 55 in hexadecimal number. I want to replace it >for a variable in Gambas. for example, X: =0D >#include =0D Sure looks like a DOS C program, which won't help you under Linux. If you just want to write a number to the parallel port, open /dev/lp0 (or lp1 or whatever, or maybe /dev/parport0 or parport1 if writing to lp0 "cooks" your data) as a file and write to it.... it's only if you need raw read-write access that it becomes an issue in Gambas. As I've said before, a workaround would be something like "cu" that talks to the parallel instead of the serial port, but I don't know if such a thing exists. That discussion would be better suited for the -user list unless you want to try to find some Linux parallel port C source and turn it into a Gambas component, which I'm sure lots of people would appreciate. (If that's the case, Ken Schrock's current work learning how to write Gambas components should be useful to you - read the archives.) Maybe you could write a Gambas component for libieee1284, a generalized parallel port interface library that even works under other operating systems: http://cyberelk.net/tim/libieee1284/ Please turn off the HTML in your mail when sending to mailing lists, by the way. Rob From schrockk at ...26... Mon Jun 9 21:41:25 2003 From: schrockk at ...26... (Ken Schrock) Date: Mon, 09 Jun 2003 12:41:25 -0700 Subject: [Gambas-devel] Excuse the html Message-ID: <3EE4E2E5.8000103@...26...> Netscape is configured to ask me which format After upgrades to Mandrake, Lindows and Netscape Netscape is acting flaky and has a mind of its own Sorry. -- Using Lindows From sourceforge-raindog2 at ...19... Mon Jun 9 18:39:41 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 9 Jun 2003 12:39:41 -0400 Subject: [Gambas-devel] component In-Reply-To: <3EE4E099.7000304@...26...> References: <3EE4E099.7000304@...26...> Message-ID: <200306091239.41964.sourceforge-raindog2@...19...> On Monday 09 June 2003 15:31, Ken Schrock wrote: > I figured that "Timer" here makes the IDE load > /opt/gambas/lib/control/timer.png to toolbox > So I made a sys.png in that directory (actually in the src dir, as this > overwrites the other) > And then made *result = (void *)"Sys"; Rebuilt and tried it. No go. > What's needed? See the humongous SWITCH/CASE statement in CControl.class (in the Gambas IDE project, not the C source). You'd need to add a case for your "Sys". It seems that Timer is a special case, so you just got lucky by picking it the first time ;) Other than that, look in FTool.class: TRY hCtrl.Picture = Picture[Library.Path &/ "control" &/ LCase(sName) & ".png"] The icon name is the lowercased name of your class. Try that maybe? Rob From gambas at ...20... Mon Jun 9 19:23:21 2003 From: gambas at ...20... (Benoit Minisini) Date: Mon, 9 Jun 2003 19:23:21 +0200 Subject: [Gambas-devel] component In-Reply-To: <3EE4E099.7000304@...26...> References: <3EE4E099.7000304@...26...> Message-ID: <200306091923.21975.gambas@...20...> Le Lundi 9 Juin 2003 21:31, Ken Schrock a ?crit : > I have a few small problems (I am using 0.57) > > I copied the example component, hacked it up > And changed all the files to C2Example.x, 2example.x etc > And then added 2Example to configure.in and makefile.in > And changed the class name to 2Example > Did the component file, help, etc > > It compiled and installed ok > But the statement > > DIM hExample as 2Example > > Caused a gambas core dump (92k) during syntax check Score ! You found a bug in the compiler. > > Simply changing only the class name in Desc > To anExample made it work just fine > > DIM hExample as anExample > > Even though everything else is still 2Example > Syntax checker or class loader hates leading numbers. A feature? A symbol cannot begin by a number. So far a class name ! > > > > Then, from what it says in the comments > (yes, I read them before hacking them to death : -) > > /* The GB_INFO_CONTROL information is a list of the graphics > controls included > in the component. This information is used by the development > environment > to fill the toolbox. > */ > case GB_INFO_CONTROL: > > /* This is the list returned by the QT component ! */ > > *result = (void *) > > "Label,Image,TextLabel,ProgressBar,Button,CheckBox,RadioButton,ToggleButton >," > > "TextBox,ComboBox,TextArea,ListBox,ListView,TreeView,IconView,GridView,Colu >mnView," "Frame,Panel,TabStrip,ScrollView,DrawingArea,Timer"; > > I figured that "Timer" here makes the IDE load > /opt/gambas/lib/control/timer.png to toolbox > So I made a sys.png in that directory (actually in the src dir, as this > overwrites the other) > And then made *result = (void *)"Sys"; Rebuilt and tried it. No go. > What's needed? First, at the moment, the IDE can manage controls only if they are QT based, like for the gb.qt.ext or gb.qt.editor component. Did you check your component in the component tab of the project properties dialog ? -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Mon Jun 9 16:58:33 2003 From: schrockk at ...26... (Ken Schrock) Date: Mon, 09 Jun 2003 15:58:33 +0100 Subject: [Gambas-devel] component References: <3EE4E099.7000304@...26...> <200306091923.21975.gambas@...20...> Message-ID: <3EE4A099.1000500@...26...> Benoit Minisini wrote: >Le Lundi 9 Juin 2003 21:31, Ken Schrock a ?crit : > >>Caused a gambas core dump (92k) during syntax check >> >Score ! You found a bug in the compiler. > Is there something to view this core with? I can see the parts that are text in the thing (including your hidden init code for the IDE pieces : -) But not the rest of it. Format ??? >First, at the moment, the IDE can manage controls only if they are QT based, >like for the gb.qt.ext or gb.qt.editor component. > >Did you check your component in the component tab of the project properties >dialog ? > Yes, it gets imported and works fine (as long as it doesn't start with a number : -) I am just a GUI freak would like the clicky interface No big thing, play and learn... and play -- Using Linux Mandrake 8.2 From sourceforge-raindog2 at ...19... Mon Jun 9 21:11:14 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 9 Jun 2003 15:11:14 -0400 Subject: [Gambas-devel] component In-Reply-To: <3EE4A099.1000500@...26...> References: <3EE4E099.7000304@...26...> <200306091923.21975.gambas@...20...> <3EE4A099.1000500@...26...> Message-ID: <200306091511.14804.sourceforge-raindog2@...19...> On Monday 09 June 2003 10:58, Ken Schrock wrote: > Is there something to view this core with? > I can see the parts that are text in the thing > (including your hidden init code for the IDE pieces : -) > But not the rest of it. Format ??? If you grab a copy of the gambas tarball from gambas.sf.net, both the C source for the compiler/interpreter/etc. and Gambas code for the IDE/DBM are included in it. (I posted the example stuff but the entire tarball is substantially bigger.) You may not be able to build it if Lindows didn't give you a C compiler (and it's Debian and I don't remember hearing any success or failure reports under Debian, though obviously you're using a binary package so it must build) but you can at least examine the source. Rob From schrockk at ...26... Mon Jun 9 17:35:50 2003 From: schrockk at ...26... (Ken Schrock) Date: Mon, 09 Jun 2003 16:35:50 +0100 Subject: [Gambas-devel] component References: <3EE4E099.7000304@...26...> <200306091239.41964.sourceforge-raindog2@...19...> Message-ID: <3EE4A956.7050204@...26...> Well, several things wrong with that, some humorous, some not 1. That is ugly (there goes my charm again :-0) Better something like gimp or mozilla plugins Drop a chunk in a directory and rock and roll Language neutral would be nice (c, php, perl not i18) 2. On Mandrake 9 and a compiled from source Gambas 0.57 I can't see anything above my home directory under Open So no way I can actually open /opt/gambas/bin/gambas.bas (joke) With the Gambas IDE. (I don't have this problem with binary 0.53 on Lindows) PLUS this is a compiled p-code rather than the source code in 0.53-Lindows So there is no way I can look at the pieces parts in a text editor 3. Mandrake 9 Kong wants to think it is a midi file anyway (starting to remember why I switched to Lindows : -) I will copy it to a directory the IDE can see and have a look, thanks Three components I am thinking of are 1. Some type socket interface mechanism 2. System data grabber including performance monitor 3. Paraport or general port access tool (since requested) The first two simply because I have c pieces built already Thoughts? Rob wrote: >On Monday 09 June 2003 15:31, Ken Schrock wrote: > >>I figured that "Timer" here makes the IDE load >>/opt/gambas/lib/control/timer.png to toolbox >>So I made a sys.png in that directory (actually in the src dir, as this >>overwrites the other) >>And then made *result = (void *)"Sys"; Rebuilt and tried it. No go. >>What's needed? >> >See the humongous SWITCH/CASE statement in CControl.class (in the Gambas IDE >project, not the C source). You'd need to add a case for your "Sys". It >seems that Timer is a special case, so you just got lucky by picking it the >first time ;) > >Other than that, look in FTool.class: > >TRY hCtrl.Picture = Picture[Library.Path &/ "control" &/ LCase(sName) & >".png"] > >The icon name is the lowercased name of your class. Try that maybe? > >Rob > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- Using Linux Mandrake 8.2 From schrockk at ...26... Mon Jun 9 18:13:21 2003 From: schrockk at ...26... (Ken Schrock) Date: Mon, 09 Jun 2003 17:13:21 +0100 Subject: [Gambas-devel] component References: <3EE4E099.7000304@...26...> <200306091923.21975.gambas@...20...> <3EE4A099.1000500@...26...> <200306091511.14804.sourceforge-raindog2@...19...> Message-ID: <3EE4B221.9080807@...26...> > > >If you grab a copy of the gambas tarball from gambas.sf.net, both the C source >for the compiler/interpreter/etc. and Gambas code for the IDE/DBM are >included in it. (I posted the example stuff but the entire tarball is >substantially bigger.) You may not be able to build it if Lindows didn't >give you a C compiler (and it's Debian and I don't remember hearing any >success or failure reports under Debian, though obviously you're using a >binary package so it must build) but you can at least examine the source. > I hope I didn't give you the wrong impression of Lindows There's almost every binary package available in the CNR warehouse That is available for Debian woody, and some that aren't And all in the world easiest to get format They have 4 versions of gcc (2.95 on) Only pitas are 1. They don't put this kind of stuff in the aisles, you have to do a search (awww :-) 2. Sometimes they "trim" some "exteranious" pieces, which, one man's meat... I'm all into old versions of things I figure there's many thousands of people with 0.53 (Lindows, Mandrake 9.1, etc) And only a couple of hundred with 0.57, I'd rather build things with 0.53 They will probably run on 0.57 too, 0.57 things may not on 0.53 I always like to build on the oldest one possible Should be relatively easy to keep them seperated Lindows puts it in /usr/gambas, the source uses /opt/gambas Unless there is some weird environmental or rc file And I don't see any of either, I'll go try now > > >Rob > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- Using Linux Mandrake 8.2 From oscarcld at ...31... Mon Jun 9 22:23:59 2003 From: oscarcld at ...31... (DA Corp.) Date: Mon, 9 Jun 2003 15:23:59 -0500 Subject: [Gambas-devel] C/C++ Component Message-ID: <3EE4ECDF.000005.01696@...32...> Excuse me. I didn't know that file is for DOS. I want to write asynchronously, I don't want use /dev/lp0, because it is for printing synchronously. I am trying make a file in Linux. under Linux the file portp.c is: #include int main() { if (ioperm(0x378,3,1)) { fprintf(stderr,"I can?t acced to parallel port.\n"); return 0; } outb(0xFF,0x378); } This file send 0xFF to parallel port. It is compiled: gcc -O -I /usr/include port.c -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sg-0.gif Type: image/gif Size: 614 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 494 bytes Desc: not available URL: From schrockk at ...26... Tue Jun 10 01:07:19 2003 From: schrockk at ...26... (Ken Schrock) Date: Mon, 09 Jun 2003 16:07:19 -0700 Subject: [Gambas-devel] Lindows and 0.57 from source Message-ID: <3EE51327.4050202@...26...> I didn't have the Qt or KDE headers Nor either the Postgresql or MySql headers But only took a few minutes to grab them with CNR However I get this qttableview.cpp:1076: implicit declaration of function `int Q_CHECK_PTR(...)' qttableview.cpp:1601: implicit declaration of function `int Q_ASSERT(...)' This sounds like some base Qt header (CHECK_PTR, ASSERT) Any ideas? Or do I have to grep the Mandrake setup? -- Using Lindows From schrockk at ...26... Tue Jun 10 02:27:07 2003 From: schrockk at ...26... (Ken Schrock) Date: Mon, 09 Jun 2003 17:27:07 -0700 Subject: [Gambas-devel] C/C++ Component References: <3EE4ECDF.000005.01696@...32...> Message-ID: <3EE525DB.8040701@...26...> To do this in Gambas you would have to build a component (in C) It is doubtful you would go all through that for this simple test As this code would be worthless in any real world application In the real world you would have to test the status register first Otherwise, if the port is busy or the other end hasn't acked You would only accomplish getting errors or sending garbage (depending on hardware, bios, configuration, etc) Also, you are not going to ioperm every time you send a bite Which is exactly what this piece of code does If you wanted something permanent The class should probably be dynamic (multi-port) The port number would be passed as part of _new You would do the ioperm test seperate (once) And you would write the byte seperatly (or make test static var in the write) And a read method for the st register Plus one or more properties for you (internal status, count, etc) Then you have speed considerations (particulaly in basic) Handshaking, is buffering needed, etc., etc., etc. Then I really don't understand the asyncronous thing Done right, this ISN'T asyncronous, you have to wait or return Only asyncronous way would be to have two seperate pieces The Gambas part writing into a buffer, c pulling it out And I am not even sure if that is possible here Do you have hardware to test on (other than printer)? DA Corp. wrote: > Excuse me. > > I didn't know that file is for DOS. I want to write asynchronously, I > don't want use /dev/lp0, because it is for printing synchronously. I am > trying make a file in Linux. > under Linux the file portp.c is: > > #include > > int main() > { > if (ioperm(0x378,3,1)) > { > fprintf(stderr,"I can?t acced to parallel port.\n"); > return 0; > } > outb(0xFF,0x378); > } > > This file send 0xFF to parallel port. It is compiled: > > gcc -O -I /usr/include port.c > > > > > ____________________________________________________ > IncrediMail - > Email has finally evolved - Click Here > -- Using Lindows From sourceforge-raindog2 at ...19... Tue Jun 10 01:45:22 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 9 Jun 2003 19:45:22 -0400 Subject: [Gambas-devel] component In-Reply-To: <3EE4A956.7050204@...26...> References: <3EE4E099.7000304@...26...> <200306091239.41964.sourceforge-raindog2@...19...> <3EE4A956.7050204@...26...> Message-ID: <200306091945.22284.sourceforge-raindog2@...19...> On Monday 09 June 2003 11:35, Ken Schrock wrote: > 2. On Mandrake 9 and a compiled from source Gambas 0.57 > With the Gambas IDE. (I don't have this problem with binary 0.53 on > Lindows) I have the same problem and there was some prior version on which it wasn't a problem. Haven't tried to look at the issues yet, though I wonder if, under Lindows, it has something to do with the fact that Lindows makes you root by default. > Three components I am thinking of are > 1. Some type socket interface mechanism > 2. System data grabber including performance monitor > 3. Paraport or general port access tool (since requested) > The first two simply because I have c pieces built already > Thoughts? I think the first one will be possibly most beneficial to Gambas adoption, as then people will be able to more easily code network apps which are so important nowadays. But personally, I think you should tackle whatever you're most comfortable working with since it'll be your first "for real" component. Rob From schrockk at ...26... Tue Jun 10 11:00:33 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 10 Jun 2003 10:00:33 +0100 Subject: [Gambas-devel] component References: <3EE4E099.7000304@...26...> <200306091239.41964.sourceforge-raindog2@...19...> <3EE4A956.7050204@...26...> <200306091945.22284.sourceforge-raindog2@...19...> Message-ID: <3EE59E31.5060605@...26...> Rob wrote: >On Monday 09 June 2003 11:35, Ken Schrock wrote: > >>2. On Mandrake 9 and a compiled from source Gambas 0.57 >> With the Gambas IDE. (I don't have this problem with binary 0.53 on >>Lindows) >> >I have the same problem and there was some prior version on which it wasn't a >problem. Haven't tried to look at the issues yet, though I wonder if, under >Lindows, it has something to do with the fact that Lindows makes you root by >default. > (Boy this will get them screaming :-) I run as root *always* (duck :-). I installed both as root, so that isn't the key I am finding other things too... Like there's no "show hidden" box in component explorer 0.57 either is just less polished than 0.53 or the Lindows guys polished 0.53 up some I don't know if you are aware of it, but Lindows has jumped on Gambas big time They have set up a special thing so users can contribute Gambas apps Which they will then put in the Click N Run warehouse >>Three components I am thinking of are >>1. Some type socket interface mechanism >>2. System data grabber including performance monitor >>3. Paraport or general port access tool (since requested) >>The first two simply because I have c pieces built already >>Thoughts? >> > >I think the first one will be possibly most beneficial to Gambas adoption, as >then people will be able to more easily code network apps which are so >important nowadays. But personally, I think you should tackle whatever >you're most comfortable working with since it'll be your first "for real" >component. > Well, unless I find something new today It all looks like a piece of cake from here > > >Rob > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- Using Linux Mandrake 8.2 From sourceforge-raindog2 at ...19... Tue Jun 10 16:09:14 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Tue, 10 Jun 2003 10:09:14 -0400 Subject: [Gambas-devel] component In-Reply-To: <3EE59E31.5060605@...26...> References: <3EE4E099.7000304@...26...> <200306091945.22284.sourceforge-raindog2@...19...> <3EE59E31.5060605@...26...> Message-ID: <200306101009.14584.sourceforge-raindog2@...19...> On Tuesday 10 June 2003 05:00, Ken Schrock wrote: > I run as root *always* (duck :-). I installed both as root, so that Don't feel too bad, I did the same thing for about six months after abandoning win98 ;) Then I finally figured out I could use sudo and have the best of both worlds, but I wouldn't expect normal users to figure that out since it's all command line. I don't have the issues some people do with Lindows making people root by default, I just expect them to eventually have to tighten it up if they get as popular as they want to be. > I am finding other things too... Like there's no "show hidden" box in > component explorer > 0.57 either is just less polished than 0.53 or the Lindows guys polished > 0.53 up some I don't know what "show hidden" is; maybe the Lindows guys added some of their own stuff to it. (What's it do, show the components you haven't referenced in your project?) If they're promoting it as much as you say, it wouldn't surprise me. > I don't know if you are aware of it, but Lindows has jumped on Gambas > big time > They have set up a special thing so users can contribute Gambas apps > Which they will then put in the Click N Run warehouse That's awesome, even if Gambas is still technically alpha code ;) (so is wine, but lots of people have jumped on that bandwagon...) I've had contact on and off with Robertson since the first few weeks of mp3.com and I don't much like the guy, but admire VERY MUCH his savvy for what it takes to popularize things. Gambas, from Lindows' perspective, is bound to be a popularizing tool so it's no surprise that Robertson was one of the first to bring it to people's attention (in that Slashdot interview.) Glad to hear you're feeling comfortable with components.... maybe when you've written one I can compare notes with the example one and start documenting the API ;) Rob From schrockk at ...26... Tue Jun 10 12:59:58 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 10 Jun 2003 11:59:58 +0100 Subject: [Gambas-devel] component docs Message-ID: <3EE5BA2E.70000@...26...> I still need the docs for this stuff Although I am making progress by hacking away There still are a lot of unanswered questions here I have a working component, but It never enters GB_INFO_whatever or hook_main I am suppose to call them from the other section? Where are docs for all the GB.xxx type calls? -- Using Linux Mandrake 8.2 From sourceforge-raindog2 at ...19... Tue Jun 10 18:34:55 2003 From: sourceforge-raindog2 at ...19... (Rob) Date: Tue, 10 Jun 2003 12:34:55 -0400 Subject: [Gambas-devel] component docs In-Reply-To: <3EE5BA2E.70000@...26...> References: <3EE5BA2E.70000@...26...> Message-ID: <200306101234.55138.sourceforge-raindog2@...19...> On Tuesday 10 June 2003 06:59, Ken Schrock wrote: > Where are docs for all the GB.xxx type calls? There are none but whatever's in that example code. I'm hoping to use whatever you come up with for the socket component (or whichever) and your conversations with Benoit on the list to somehow expand that example code's comments into documentation ;) Rob From Gambasfr at ...4... Tue Jun 10 20:39:54 2003 From: Gambasfr at ...4... (Fabien) Date: Tue, 10 Jun 2003 20:39:54 +0200 Subject: [Gambas-devel] component docs In-Reply-To: <3EE5BA2E.70000@...26...> References: <3EE5BA2E.70000@...26...> Message-ID: <200306102039.54994.Gambasfr@...4...> Le Mardi 10 Juin 2003 12:59, Ken Schrock a ?crit : > I still need the docs for this stuff > Although I am making progress by hacking away > There still are a lot of unanswered questions here > > I have a working component, but > It never enters GB_INFO_whatever or hook_main > I am suppose to call them from the other section? > > Where are docs for all the GB.xxx type calls? look in the file Gambas_api.cpp and .h And in the shared directory... in gambas.h You can certainly found in these fill some usefull information. Fabien For the doc ... where you'll be ready, make it ! Good idea no ?, There isn't lot of person who actually work on component creating... humm ... for s?re... benoit... Nigel... me a little bit... you... Fabien From gambas at ...20... Tue Jun 10 20:54:29 2003 From: gambas at ...20... (Benoit Minisini) Date: Tue, 10 Jun 2003 20:54:29 +0200 Subject: [Gambas-devel] component docs In-Reply-To: <3EE5BA2E.70000@...26...> References: <3EE5BA2E.70000@...26...> Message-ID: <200306102054.29274.gambas@...20...> Le Mardi 10 Juin 2003 12:59, Ken Schrock a ?crit : > I still need the docs for this stuff > Although I am making progress by hacking away > There still are a lot of unanswered questions here > > I have a working component, but > It never enters GB_INFO_whatever or hook_main > I am suppose to call them from the other section? > > Where are docs for all the GB.xxx type calls? I'm sorry Ken, because I never had the time to make a real documentation of how to program components. I will fill the Wiki with what you need as soon as possible. June is a heavy month for me, because I have my theater examination at the end of the month, and I have three scenes to prepare, and one was given at the beginning of the month ! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...20... Tue Jun 10 20:56:53 2003 From: gambas at ...20... (Benoit Minisini) Date: Tue, 10 Jun 2003 20:56:53 +0200 Subject: [Gambas-devel] component docs In-Reply-To: <3EE5BA2E.70000@...26...> References: <3EE5BA2E.70000@...26...> Message-ID: <200306102056.53475.gambas@...20...> Le Mardi 10 Juin 2003 12:59, Ken Schrock a ?crit : > I still need the docs for this stuff > Although I am making progress by hacking away > There still are a lot of unanswered questions here > > I have a working component, but > It never enters GB_INFO_whatever or hook_main > I am suppose to call them from the other section? > > Where are docs for all the GB.xxx type calls? If you want to make a "socket" component, tell me before. I wanted to do a network component in gambas that hides all the socket stuff, so that gambas users can program servers and clients easily and quickly. Let's talk about that on the mailing-list before you try to write a single line of code :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Tue Jun 10 16:37:32 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 10 Jun 2003 15:37:32 +0100 Subject: [Gambas-devel] component References: <3EE4E099.7000304@...26...> <200306091945.22284.sourceforge-raindog2@...19...> <3EE59E31.5060605@...26...> <200306101009.14584.sourceforge-raindog2@...19...> Message-ID: <3EE5ED2C.6030908@...26...> Rob wrote: >Don't feel too bad, I did the same thing for about six months after abandoning >win98 ;) > I've been doing for 5 years now, will continue : -) >I don't know what "show hidden" is; maybe the Lindows guys added some of their >own stuff to it. (What's it do, show the components you haven't referenced >in your project?) If they're promoting it as much as you say, it wouldn't >surprise me. > The "internal" functions like _new _free _get _put etc are "hidden" normally This is a nice touch, but I don't think Lindows did it, Benoit just forgot :-0 [snip] >Glad to hear you're feeling comfortable with components.... maybe when you've >written one I can compare notes with the example one and start documenting >the API ;) > Glad you are, as I am done with phase 1 I have source and binary and a readme to install either way plus a test app Doesn't do anything real as is, it's pretty generic, but simple and clean Has real properties and methods, and could be extended easily Plus I figured out the stuff you have to do by hand on it (info, help, component, configure.in, makefile.am) So that it compiles without a lot of grief (you can init two properties going in, one read-only, one read-write plus it has one method that has in and out [called swap for data2] probably to be used for value in - status out in real world toy : -) NOW... : -) Where to put it at... I could put it on win2linux.net But my site was hosted by featureprice.com Which just kind of blew up and is iffy day to day now >Rob > > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- Using Linux Mandrake 8.2 From gambas at ...20... Tue Jun 10 21:48:02 2003 From: gambas at ...20... (Benoit Minisini) Date: Tue, 10 Jun 2003 21:48:02 +0200 Subject: [Gambas-devel] component In-Reply-To: <3EE5ED2C.6030908@...26...> References: <3EE4E099.7000304@...26...> <200306101009.14584.sourceforge-raindog2@...19...> <3EE5ED2C.6030908@...26...> Message-ID: <200306102148.02431.gambas@...20...> Le Mardi 10 Juin 2003 16:37, Ken Schrock a ?crit : > Rob wrote: > >Don't feel too bad, I did the same thing for about six months after > > abandoning win98 ;) > > I've been doing for 5 years now, will continue : -) > > >I don't know what "show hidden" is; maybe the Lindows guys added some of > > their own stuff to it. (What's it do, show the components you haven't > > referenced in your project?) If they're promoting it as much as you say, > > it wouldn't surprise me. > > The "internal" functions like _new _free _get _put etc are "hidden" > normally This is a nice touch, but I don't think Lindows did it, Benoit > just forgot :-0 > > [snip] > Click with the right mouse button on the treeview of the component explorer... -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Tue Jun 10 16:48:58 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 10 Jun 2003 15:48:58 +0100 Subject: [Gambas-devel] component docs References: <3EE5BA2E.70000@...26...> <200306102039.54994.Gambasfr@...4...> Message-ID: <3EE5EFDA.2010607@...26...> Fabien wrote: >For the doc ... where you'll be ready, make it ! > >Good idea no ?, There isn't lot of person who actually work on component >creating... > >humm ... for s?re... benoit... Nigel... me a little bit... you... > I disagree, this is really clean and simple kind of interface A simple way to extend a language, I think it will be used a LOT You guys just need to find a simpler way to plug new ones into the IDE Needs to be more of a plug-in, drop one or more files in one place The icon for the toolbox, help, info, etc. should all go one place Would be really nice if it were all one big chunk, and why not? Why not use GB_INFO to fetch all these things for the IDE? The docs? Yes, I will write them... ... If I ever find all the info >:-} >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- Using Linux Mandrake 8.2 From schrockk at ...26... Tue Jun 10 16:51:05 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 10 Jun 2003 15:51:05 +0100 Subject: [Gambas-devel] component docs References: <3EE5BA2E.70000@...26...> <200306102054.29274.gambas@...20...> Message-ID: <3EE5F059.5050803@...26...> Benoit Minisini wrote: >Le Mardi 10 Juin 2003 12:59, Ken Schrock a ?crit : > >>I still need the docs for this stuff >>Although I am making progress by hacking away >>There still are a lot of unanswered questions here >> >>I have a working component, but >>It never enters GB_INFO_whatever or hook_main >>I am suppose to call them from the other section? >> >>Where are docs for all the GB.xxx type calls? >> > >I'm sorry Ken, because I never had the time to make a real documentation of >how to program components. > >I will fill the Wiki with what you need as soon as possible. > Relax, I made good progress today I will write the docs and Rob will put them up Write me a plug-in interface for components : -) >June is a heavy month for me, because I have my theater examination at the end >of the month, and I have three scenes to prepare, and one was given at the >beginning of the month ! > >Regards, > -- Using Linux Mandrake 8.2 From schrockk at ...26... Tue Jun 10 16:53:39 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 10 Jun 2003 15:53:39 +0100 Subject: [Gambas-devel] component References: <3EE4E099.7000304@...26...> <200306101009.14584.sourceforge-raindog2@...19...> <3EE5ED2C.6030908@...26...> <200306102148.02431.gambas@...20...> Message-ID: <3EE5F0F3.6060103@...26...> Benoit Minisini wrote: >Click with the right mouse button on the treeview of the component explorer... > Sorry... You didn't forget, you hid it : -) -- Using Linux Mandrake 8.2 From gambas at ...20... Tue Jun 10 22:08:58 2003 From: gambas at ...20... (Benoit Minisini) Date: Tue, 10 Jun 2003 22:08:58 +0200 Subject: [Gambas-devel] component docs In-Reply-To: <3EE5EFDA.2010607@...26...> References: <3EE5BA2E.70000@...26...> <200306102039.54994.Gambasfr@...4...> <3EE5EFDA.2010607@...26...> Message-ID: <200306102208.58154.gambas@...20...> Le Mardi 10 Juin 2003 16:48, Ken Schrock a ?crit : > Fabien wrote: > >For the doc ... where you'll be ready, make it ! > > > >Good idea no ?, There isn't lot of person who actually work on component > >creating... > > > >humm ... for s?re... benoit... Nigel... me a little bit... you... > > I disagree, this is really clean and simple kind of interface > A simple way to extend a language, I think it will be used a LOT > In fact, at least at the beginning of birth of Gambas ;-), I want all the components to be included in the source package of Gambas, exactly like device drivers are included in the source package of Linux. Four reasons for that: 1) Components are for the gambas interpreter what device driver are for the Linux kernel. 2) Components are not just trivial interface to their underlying libraries. They must bring a easy and common interface to the gambas user. For example, the qt component interface is not just a bunch wrapper to qt api, it brings a interface that hides QT stuff and that is enough thought (I hope) to be used as is with a future gtk+ component. So I want to keep my eyes on what is done with components. 3) The interface between components and the interpreter is not completely stable, and might change without any notice. 4) Free software must be provided with its sources. By keeping component sources into the gambas source package, this requirement is respected. Of course, anybody can make components packages of its own, but this will be limited. Think about the NVidia driver... > You guys just need to find a simpler way to plug new ones into the IDE > Needs to be more of a plug-in, drop one or more files in one place > The icon for the toolbox, help, info, etc. should all go one place > Would be really nice if it were all one big chunk, and why not? > Why not use GB_INFO to fetch all these things for the IDE? > The way the IDE uses the component is badly designed. For example, GB_INFO is a quick and dirty hack to bring information to the IDE. I think I will reworked that as soon as possible, so that the IDE can manage, for example, non-graphical components in a graphical way (I have very top secret projects for that). So your remarks are justified, but I must think a lot before finding a pratical, easy, powerful, etc. way to manage components. > The docs? Yes, I will write them... > ... If I ever find all the info >:-} > -- Benoit Minisini mailto:gambas at ...1... From schrockk at ...26... Tue Jun 10 17:23:38 2003 From: schrockk at ...26... (Ken Schrock) Date: Tue, 10 Jun 2003 16:23:38 +0100 Subject: [Gambas-devel] component docs References: <3EE5BA2E.70000@...26...> <200306101234.55138.sourceforge-raindog2@...19...> Message-ID: <3EE5F7FA.2080109@...26...> Rob wrote: >On Tuesday 10 June 2003 06:59, Ken Schrock wrote: > >>Where are docs for all the GB.xxx type calls? >> >There are none but whatever's in that example code. I'm hoping to use >whatever you come up with for the socket component (or whichever) and your >conversations with Benoit on the list to somehow expand that example code's >comments into documentation ;) > I will do the docs Email my schrockk at ...41... account with your e-mail address And I will send you this stuff (small package , 28k tar.gz) Here is the code parts, readme follows, to test in app Class is generic, do NEW Generic(int, int) Properties are data1 (read-only) & data2 Method called swap takes int, returns int p.s. gb.generic.help can be blank /*** main.h ***/ #ifndef __MAIN_H #define __MAIN_H #include "gambas.h" #ifndef __MAIN_C extern GB_INTERFACE GB; #else static void hook_main(int *argc, char **argv); #endif /* __MAIN_C */ #endif /* __MAIN_H */ /*** main.c ***/ #define __MAIN_C #include #include #include #include #include "CGeneric.h" #include "main.h" #ifdef __cplusplus extern "C" { #endif GB_INTERFACE GB; GB_DESC *GB_CLASSES[] = { CGenericDesc, NULL }; int GB_INIT(void) { GB.Hook(GB_HOOK_MAIN, (void *)hook_main); return 0; } void GB_EXIT() { } void GB_INFO(int info, void **result) { switch (info) { case GB_INFO_CONTROL: *result = (void *)NULL; break; case GB_INFO_REQUIRE: *result = (void *)NULL; break; } } #ifdef _cpluscplus } #endif static void hook_main(int *argc, char **argv) { int i; printf("gb.generic: argc = %d\n", *argc); for (i = 0; i < *argc; i++) printf("gb.generic: argv[%d] = \"%s\"\n", i, argv[i]); } /*** CGeneric.h ***/ #ifndef __CGENERIC_H #define __CGENERIC_H #include "gambas.h" #ifndef __CGENERIC_C extern GB_DESC CGenericDesc[]; #else #define THIS ((CGENERIC *)_object) #endif typedef struct { GB_BASE ob; long data1; long data2; } CGENERIC; #endif /*** CGeneric.c ***/ #define __CGENERIC_C #include #include #include #include #include "main.h" #include "CGeneric.h" //DECLARE_EVENT(FirstEvent); //DECLARE_EVENT(SecondEvent); // Read Only Property BEGIN_PROPERTY(CGENERIC_data1) GB.ReturnInteger(THIS->data1); END_PROPERTY // Standard Property BEGIN_PROPERTY(CGENERIC_data2) if (READ_PROPERTY) { GB.ReturnInteger(THIS->data2); } else { THIS->data2 = VPROP(GB_INTEGER); } END_PROPERTY // A method that takes no params BEGIN_METHOD_VOID(CGENERIC_free) /* Nothing to do, at least here */ END_METHOD // A method that does take params BEGIN_METHOD(CGENERIC_new, GB_INTEGER data1; GB_INTEGER data2) THIS->data1 = VARG(data1); THIS->data2 = VARG(data2); END_METHOD // A method that takes param and returns a value BEGIN_METHOD(CGENERIC_swap, GB_INTEGER data) int i; i = THIS->data2; THIS->data2 = VARG(data); GB.ReturnInteger(THIS->data2); END_METHOD GB_DESC CGenericDesc[] = { GB_DECLARE("Generic", sizeof(CGENERIC)), GB_PROPERTY("data2", "i", CGENERIC_data2), GB_PROPERTY_READ("data1", "i", CGENERIC_data1), GB_METHOD("_free", NULL, CGENERIC_free, NULL), GB_METHOD("_new", NULL, CGENERIC_new, "(Data1)i(Data2)i"), GB_METHOD("swap", "i", CGENERIC_swap, "(Data)i"), // Other examples // GB_INHERITS("GenericMother"), // GB_VIRTUAL_CLASS(), // GB_CONSTANT("AnIntegerConstant", "i", 1972), // GB_CONSTANT("AStringConstant", "s", "Gambas"), // GB_CONSTANT("AFloatConstant", "f", "3.1415"), // GB_METHOD("AMethodThatReturnsNoValue", NULL, do_the_job, // "(FirstParameter)i(SecondParameter)s[(FirstOptionalParameter)ClassName;(SecondOptionalParameter)v]"), // GB_METHOD("AMethodThatReturnsAStringAndTakesNoParameter", "s", do_another_job, NULL), // GB_PROPERTY("AProperty", "s", do_AProperty), // GB_STATIC_PROPERTY("AStaticProperty", "i", do_AStaticProperty), // GB_READ_PROPERTY("AReadOnlyProperty", "i", do_AReadOnlyProperty), // GB_PROPERTY("AnotherProperty", "i", do_AnotherProperty), // GB_PROPERTY("AWellDefinedProperty", "i", do_AWellDefinedProperty), // GB_EVENT("FirstEvent", NULL, "(Parameter)i", &FirstEvent), // GB_EVENT("SecondEvent", "b", NULL, &SecondEvent), // GB_METHOD("_get", "i", CGENERIC_get, "(X)i(Y)i"), // GB_METHOD("_put", NULL, CGENERIC_put, "(Value)i(X)i(Y)i"), // GB_STATIC_METHOD("_call", NULL, CGENERIC_call, "(Message)s"), GB_END_DECLARE }; /*** readme ***/ Gambas Generic Component This is a simple Gambas component example (for those of us [moi] that don't like comments :-) That could easily be extended to something real 1. @@@ Preliminary stuff 2. &&&& Binary install 3. $$$$$ Source install 1. @@@ Preliminary stuff The Gambas working files are various places /opt/gambas in Mandrake /usr/gambas in Lindows (Debian variant) (If you know another place in another distro write me and I will add the location to the list) Binary or source install, you must do the following Copy this next piece of text [gb.generic] Name=A generic component example Name[fr]=Un plume de composant Author=schrockk at ...26... And paste it into the file /(opt or usr)/gambas/lib/component This lets Gambas know that the component exists 2. &&&& Binary install Copy the gb.generic.help file to /(opt or usr)/gambas/lib/help Copy the gb.generic.info file to /(opt or usr)/gambas/lib/info Copy the files that start with lib.gb to /(opt or usr)/gambas/lib Run the Gambas app and play around (if you copy the Form1.xx files somewhere make sure you get the .project [hidden] file) 3. $$$$$ Source install To start out, put all these files in the Gambas source directory For the package I have, on Mandrake, this is gambas-0.57/src/lib/generic ( generic won't be there, create it and transfer the files or untar in lib) Take the file gb.generic.help and put it into gambas-0.57/src/help Go to gambas-0.57/src/lib directory and open makefile.am Change the top line SUBDIRS = eval example @DB_SUBDIRS@ @QT_SUBDIRS@ To SUBDIRS = generic eval example @DB_SUBDIRS@ @QT_SUBDIRS@ Go up to the gambas-0.57 directory and open configure.in Add this line to the list at the bottom of the file src/lib/generic/Makefile Inside the gambas-0.57 directory do the following commands autoconf automake ./configure make make install Rock and Roll >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The best >thread debugger on the planet. Designed with thread debugging features >you've never dreamed of, try TotalView 6 free at www.etnus.com. >_______________________________________________ >Gambas-devel mailing list >Gambas-devel at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-devel > > -- Using Linux Mandrake 8.2 From karl.reinl at ...16... Tue Jun 10 20:00:23 2003 From: karl.reinl at ...16... (Charlie) Date: Tue, 10 Jun 2003 20:00:23 +0200 Subject: [Gambas-devel] component References: <3EE4E099.7000304@...26...> <200306091945.22284.sourceforge-raindog2@...19...> <3EE59E31.5060605@...26...> <200306101009.14584.sourceforge-raindog2@...19...> Message-ID: <3EE61CB7.8010605@...16...> Rob schrieb: >On Tuesday 10 June 2003 05:00, Ken Schrock wrote: > > >>I run as root *always* (duck :-). I installed both as root, so that >> >> > >Don't feel too bad, I did the same thing for about six months after abandoning >win98 ;) Then I finally figured out I could use sudo and have the best of >both worlds, but I wouldn't expect normal users to figure that out since it's >all command line. I don't have the issues some people do with Lindows making >people root by default, I just expect them to eventually have to tighten it >up if they get as popular as they want to be. > > Don't know your Distros, but I remember when I started with SuSE their you have the choice between 3 permissions easy, secure and paranoide,first I dit paranoide the result was a normal user could do nearly nothing. So I went back to secure , and have to do some with sudo. May be you find a file like this on your system . Send you paranoide Charlie -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: permissions.paranoid URL: