[fpc-pascal] Rtf to HTML
Hi, does anyone knows a good Rtf To HTML converter for FPC/Delphi? I need one that accept strings/streams, not files. Leonardo M. Ramé http://leonardorame.blogspot.com Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Rtf to HTML
I know rtf2html, the problem is it works with file (infile outfile). And I need one that works with strings as params. Also it must work on windows. --- Damien Gerard [EMAIL PROTECTED] wrote: Le May 12, 2008 à 8:34 PM, Leonardo M. Ramé a écrit : Hi, does anyone knows a good Rtf To HTML converter for FPC/Delphi? I need one that accept strings/streams, not files. Under OS X (via MacPorts): sudo port install rtf2html Under Linux (Gentoo): emerge -av app-text/rtf2html I suppose for Debian : apt-get install rtf2html (must be checked) Under Windows I don't know if it exists without cygwin. -- Damien Gerard [EMAIL PROTECTED] Intelligence is 10 million rules. -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Pointers in Pascal!!
You can assign nil to the pointer before using it, then check if PStruct = nil it wasn't created. Leonardo. --- Zaka E-Lab [EMAIL PROTECTED] wrote: I have something like this: PStruct = ^Struct; Struct = record num: integer; end; I have a unit to handle that structure ( is a bit more complicated, but is a good example), in this unit I have a procedure that deletes ( disposes ) the pointer. How can I know if a pointer are created or not?, I mean, I don't wont to try to delete something that has not been created yet, but I don't know how to do it, if that is possible. Thanks a lot. Zaka. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] ann: new pascal magazine
Hey, his site is writen in PHP. :( --- Coco Pascal [EMAIL PROTECTED] wrote: Bee schreef: Hi all, There is a new pascal magazine at http://www.blaisepascal.eu/ It might a good place to promote FreePascal and its technologies, e.g. - fpc features and supported platforms - lazarus IDE - lazarus components - mobile programming (wince, symbian) - macOS support - web framework (powtils, fpweb) - db component (fcl-db) - pascal cross platform programming - morfik - etc. So, who's gonna start? ;) I noticed Lazarus already being promoted at the frontpage. Let's start with subscriptions (at only EUR 25) first! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] ann: new pascal magazine
Of course, just read the magazine and found anyone can contact them to publish an article. Maybe Lars can ask them to publish one of his own about Powtils. Leonardo. --- Bee [EMAIL PROTECTED] wrote: Hey, his site is writen in PHP. :( That makes pascal (fpc's) web framework should be the first article from us. ;) -Bee- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fcl-db: oracle SP
Using fcl-db aka sqldb, how to call oracle's stored procedure through toracleconnection? So far, google can't help me much. :( Or is there a special component to handle stored procedure as in Delphi? TIA. Untested: If your stored procedure returns a recordset simply do: query.SQL.Text := 'select * from your_stored_sp'; query.Open; If the SP does not returns a resultset do: query.SQL.Text := 'execute your_stored_sp(''param1'', ''param2'')'; query.ExecSql; Leonardo M. Ramé http://leonardorame.blogspot.com You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] MySQL insert, load data
Try this: q.SQL.Clear; q.Add('LOAD DATA INFILE ''data.txt'' INTO TABLE database.my_table;'); q.Execute; // -- I don't remember the correct command right now Leonardo --- Wolfram Kläger [EMAIL PROTECTED] wrote: Ok. First one was simple. Keyword and opening bracket must be separated by a blank, e.g. '.. MYTABLE(..' // wrong '.. MYTABLE (..' // great '..)values(..' // wrong '..) values (..' // great All field contents have to be bracketed by double apostrophes, e.g. q.sql.add('''Florian Klaempfl'','); except it's an integer value, e.g. q.sql.add('1,'); Date values seem to be put as formatted strings. Unfortunately, my MySQL does not know Joost. His example, '1-jan-1975' works here as '1975.1.1' only. Guess this is a config issue. Now what about LOAD DATA? I still have no idea where to look for it. I learned TSQLQuery is descending Tbufdataset - TDBDataSet - TDataset - TComponent and assume there is somewhere an option to load from a CSV text file or stream. But how to push it forward to MySQL? Wolfram // Wolfram Kläger, 14.02.2008 22:49 Along Joost's examples I managed to get connected, create a table, put a query, get the result, and insert a single row. But when I try to insert several rows at once, I get an EDatabaseError near to first char of second row. ... q.SQL.Clear; q.Add('insert into MYTABLE(c1, c2, ..) values '); q.Add('(r1v1, r1v2, ..),'); q.Add('(r2v1, r2v1, ..),'); .. q.Add(';'); What am I missing or is multiple insert not supported? Alternatively, MySQL provides the LOAD DATA [LOCAL] INFILE statement. So far I was not able to find a special sqldb wrapper for it. Is it done via ExecuteDirect? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] remote mysql connection
, I doubt a shared hosting allows him to connect via SSH. Leonardo. --- Wolfram Kläger [EMAIL PROTECTED] wrote: // Michael Van Canneyt, 12.02.2008 20:08 On Tue, 12 Feb 2008, Wolfram Kläger wrote: I am trying to get access to a remote MySQL database via sqldb and mysql50conn, ending up with 'EDatabaseError, Server connect failed.' ... Make sure that a) the mysql server is listening to remote requests. b) the default mysql port is correct. (if not, add a port=xyz line to the Params property) c) the user has permissions to connect to the database d) the server doesn't run a firewall that blocks access. I tried everything ?! a) /etc/ssh/sshd_config: AllowTcpForwarding activated b) def. port 3306 is ok, Params.Add('port=anyother') as well c) several users, excl. root, granted all privileges on mysql command line, via PHPmyAdmin, ... everything alright, but SSH only d) Plesk 8.1 firewall on server allows SSH, but blocks MySQL ports Yes, it's a shared server, but instead of creating a CGI workaround, as Leonardo proposed, I feel tunnel forwarding would be more appropriate. Tried to do so by using the Putty command line tool plink ... -L 3306:127.0.0.1:3306 ... But then in a second cmd window, telnet 127.0.0.1 3306 returns empty, and plink says in the first window forwarded connection refused by server ... failed. Same with my .pas application, of course, trying to connect to 127.0.0.1 instead of remote host. Admitted, this is no fpc problem. Any hint, anyway? Thanks in advance Wolfram -- Wolfram Kläger Wrangellstrasse 11 D-70599 Stuttgart Tel. (+49) 0711 31 944 39 Fax (+49) 0711 31 944 37 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class constants
With your response I assume he meant something like static attributes when he said class constants. --- Joao Morais [EMAIL PROTECTED] wrote: A class function would be a better approach. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class constants
Jonathan, I never needed such type of feature, a propossed solution is to create one unit per class, and declare your constants in the implementation section of each unit. Example: unit People interface type TPeople = class .. end; implementation const name = 'default name'; ... end. --- Jonathan Benedicto [EMAIL PROTECTED] wrote: Hello, Does FPC support class constants, and if it doesn't, are there any plans to add this support? Example: type TMyClass = class begin private const MyConst = '123'; end; Jon ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started
I like the idea, can you start by creating the section's skeleton? --- Adrian Maier [EMAIL PROTECTED] wrote: - I think that the guide should contain easily identifiable sub-sections : Connecting to a database (with links to another page that presents the specifics for connecting to the various db engines) , Reading the contents of a table , Executing SQL commands , Using parameters , Calling a stored procedure , Getting metadata information from the database , etc.A long, complete tutorial is hard to follow if it doesn't have sub-sections . Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Patch for testsqldb
Thanks for the patch, applied in r 9261. I completely forgot that this example exists. I see that I'll hate to add the several mysqlversions and oracle also. Joost. Thanks for applying the patch, I found the example in the 2.2.0 sources when trying to understand how to work with FCL-Db and Sqlite3, that version hadn't extensive examples nor documentation. But, yesterday I checked out the 2.3.1 sources and noticed you created more examples that helped me a lot. I'm studying the sources trying to get a clear picture about this library, I'll use that knowledge to to create some documentation/tutorials. Thank's again for the amazing work you're doing. Leonardo M. Ramé http://leonardorame.blogspot.com Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Patch for testsqldb
The attached file is a small patch for testsqldb.pp located at /fpc/trunk/packages/fcl-db/sqldb/ The patch adds sqlite3 database to the example. P.S.: This is the only way to send a patch? Leonardo M. Ramé http://leonardorame.blogspot.com Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs Index: testsqldb.pp === --- testsqldb.pp (revision 9259) +++ testsqldb.pp (working copy) @@ -24,6 +24,7 @@ pqconnection, mysql4conn, IBConnection, + sqlite3conn, sqldb; var connection : tSQLConnection; @@ -37,6 +38,7 @@ if dbtype = 'mysql' then connection := tMySQLConnection.Create(nil); if dbtype = 'postgresql' then connection := tpqConnection.Create(nil); if dbtype = 'interbase' then connection := tIBConnection.Create(nil); + if dbtype = 'sqlite3' then connection := tSQLite3Connection.Create(nil); if not assigned(connection) then exit; // probably an invalid database type given ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC and JAVA
BTW, can anybody point us to emulators of these devices (I know Embedded Visual C++ has an ARM WinCE emulator)? Leonardo. --- Krishna [EMAIL PROTECTED] wrote: Hello!, On 10/23/07, Pianoman [EMAIL PROTECTED] wrote: Hello, I would like to ask whether is it possible to write program as usual then compile it but result wouldn't be a standard binary but a .jar file usable on mobile devices which can run java programs. Because for me as a FPC/delphi coder it would be great if I could code program and output could be .jar file which I could run on my mobile. Native code is what you need on these (usually) memory constrained devices to get the full bang for the buck. If you check the wiki, you can find that the symbian os port is a work-in-progress. If java bytecodes are an absolute necessity then maybe you can check Midlet Pascal (mentioned in the lazarus forum). btw, is it true j2me is being scrapped in favour of the full j2se? Cheers, -Krishna -- One reason that life is complex is that it has a real part and an imaginary part -Andrew Koenig ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Run process and exit (win32)
You might wish to seperate the process by creating two executables, That's already done. and execute a program in the background so you could decide what to do, like in a daemon way... Yes, the problem is I want to do it in a multiplatform way. In Linux I can set CommandLine := 'httpserver '; In Win32 I should create a service, *but* I don't have administrative privileges. Correct me if I'm wrong, can I create a Win32 service without admin privileges? Or do you know a better way? --- ik [EMAIL PROTECTED] wrote: Execute is blocking, so it will continue to execute itself until you will stop the execution. You might wish to seperate the process by creating two executables, and execute a program in the background so you could decide what to do, like in a daemon way... Ido On 10/23/07, Leonardo M. Ramé [EMAIL PROTECTED] wrote: Hi, I'm trying to start a Win32 process and exit leaving the process executing. The test scenario is a CGI calling a simple Http server (the Synapse Http server demo). The problem is the CGI program doesn't stop (in Firefox's status bar there's a Transfering data from localhost... message until I click Stop button) until the child process is finished. If I refresh the page, the program works as expected. Any hint on this? To start the child process I use TProcess as follows: ... lProcess := TProcess.Create(nil); try lProcess.CommandLine := 'httpserver.exe'; lProcess.Options := [poNoConsole]; lProcess.Execute; finally lProcess.Free; end; ... Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Run process and exit (win32)
program ShellExec; {$mode objfpc}{$H+} uses pwumain, windows; begin WebWriteln(' Hello! '); ShellExecute(0 , 'open', 'cmd /k c:\winnt\notepad.exe', nil, nil, SW_SHOWNORMAL) ; end. Because cmd /k forks open a new separate cmd shell for you (not a child, AFAIK). But test it, and let me know. Thanks L, do you know if I ShellExecute can create a process without showing the command window? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] D language and Object Pascal
What's wrong with http://www.freepascal.org/docs-html/ref/refch8.html#x79-860008 ? See http://www.freepascal.org/docs-html/ref/refse39.html I was reading the document and noted this hughe image with blanks http://www.freepascal.org/docs-html/ref/ref100x.png that really looks bad. Anyway, nothing related to the subject. Leonardo M. Ramé http://leonardorame.blogspot.com Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] defining record at runtime
An aproximation of what you want to accomplish is the usage of classes (descendants of TPersistent) with published properties accesed using RTTI. The visible fields you want to access are these published properties, all other information and methods can't be accessed using RTTI. TCustomer = class(TPersistent) private FAge: Integer; FName: string; published property Age: Integer read FAge write FAge; property Name: string read FName write FName; end; --- Marc Santhoff [EMAIL PROTECTED] wrote: Am Dienstag, den 25.09.2007, 11:56 +0200 schrieb Jonas Maebe: On 25 Sep 2007, at 11:49, Marc Santhoff wrote: would it be possible to set up a memory structure according to fpc's aligning rules that will be accepted as a record typed variable? Or does fpc create some informational support items that would miss in this case? I'm in doubt, since it is normally not possible (AFAIK, tell me if this is wrong) to get structural information about a record type at runtime (no RTTI). Initialisation rtti is generated in case the record contains reference counted types. It will be easier to answer your question if you explain what you want to achieve and why. I was a little fast in asking this question. It's about passing around arbitrary anonymous record consisting of atomic types and strings. But since in the end it all comes down to asking for a records members and field count I have to use additional typing info and doing the memory housekeeping by hand anyways. (If this hasn't changed since fpc 2.0.4) So forgat about it. Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Client/Server file transfer
Any advice is welcome, thanks Stephen You can try Synapse Lib (synapse.ararat.cz). Leonardo M. Ramé http://leonardorame.blogspot.com Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OT: Rename for Pascal
Before assuming FPC isn't atracting users, why don't we start tracking new users and compare it's evolution month by month, year by year. With the help of this method, we can figure out some ways to market FreePascal and Lazarus. We can start by extracting the subscription date of each user of our mailing lists (I don't know if it's possible). After that, it's easy to create statistics and take the corresponding actions. Leonardo. --- Skybuck Flying [EMAIL PROTECTED] wrote: Here is a suggestion: Called it puma ! :) Like the animal on the website. Puma's are fast. And that's a big adventage of Pascal/Delphi it compiles lightning fast compared to C/C++ crap. Bye, Skybuck. Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OT: Rename for Pascal
I joined this malling list not that long ago, however I use FPC for several years now, and I also used Delphi for more then 7 years... So how can you know who is new ? Well, we can't get really accurate dates, but some aproximations based on mailing lists subscription could show us some important numbers. Of course this isn't the best measurement method, it's just an idea, maybe a better one could be to look at other languages (PHP, Python, Ruby or Linux Os) and learn how they know how much users have. Another one could be a FPC Counter, just like http://counter.li.org/ -- Leonardo Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OT: Rename for Pascal
-- Dani�l Mantione [EMAIL PROTECTED] wrote: Overall, I don't think we are doing bad. I totally agree with you. Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] FreePascal TDataSet
One of my customers asked me if I can recompile a Delphi application that uses TDataSet descendants. Can someone tell me if FPC's TDataSet implementation is compatible with Delphi's?, or I must rewrite the whole application?. Thanks in advance. Leonardo M. Ramé http://leonardorame.blogspot.com Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] ISpell / ASpell + FPC
Does anyone used/created a unit to interact with ISpell or ASpell spellcheckers? Leonardo M. Ramé http://leonardorame.blogspot.com Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Problem with dynamic libraries
Replace procedure HalloWelt; with procedure HalloWelt; cdecl; procedure HalloWelt; begin end; Leonardo M. Ramé http://leonardorame.blogspot.com Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PASCAL programming for Novice
Are you trying to create a Peer-To-Peer architecture?, something like Windows Messenger?. I don't know how to implement that type of architecture, you can do a simple google search to find examples, but since it uses socket communications you can implement it using lNet or Synapse libraries with FreePascal. Leonardo M. Ramé http://leonardorame.blogspot.com --- Rick Seiden [EMAIL PROTECTED] wrote: Any tutorials out there on using Event Driven programming with Free Pascal? I'm hoping to create a server/client combo that will need to respond to both input from the client part, and input from the server part my server/client combo app +--+ User --- | server part--client part| -- another server +--+ So, when my user talks to my server, I need to be able to respond, and when the other server talks to my client, I need to be able to respond. Anyway, just a simple event driven programming tutorial using some version of Pascal will probably help. Thanks Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PASCAL programming for Novice
Francisco, that's not only a class, it's a Program containing the THelloWorld class. With Object Pascal (and Pascal), you can divide your program in units, then use those units in a program. Example: Unit HelloWorld; interface type THelloWorld = class procedure Put; end; implementation procedure THelloWorld.Put; begin WriteLn('Hello, World!'); end; end. program MyProgram uses HelloWorld; // this includes HelloWorld into your program var myHelloWorl: THelloWorld; // to declare a variable of type THelloWorld begin myHelloWorld := THelloWorld.Create; // to create an instance of THelloWorld. myHelloWorld.Put;// to execute Put method. myHelloWorld.Free; // to destroy the instance. end. --- Leonardo M. Ramé http://leonardorame.blogspot.com --- Francisco Reyes [EMAIL PROTECTED] wrote: Michael Van Canneyt writes: Both Turbo Pascal's Object Pascal and Delphi's object pascal are supported, depending on which mode you compile in. If I have a class like: program myclass; type THelloWorld = class procedure Put; end; var HelloWorld: THelloWorld; procedure THelloWorld.Put; begin WriteLn('Hello, World!'); end; begin HelloWorld := THelloWorld.Create; HelloWorld.Put; HelloWorld.Free; end. How do I use that class in another program? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Embedded web server
Thanks Michael, can you point me to the urls of that products? --- Michael Van Canneyt [EMAIL PROTECTED] wrote: On Wed, 14 Mar 2007, wrote: Hi, I need to create a web app and don't whant to use CGI or Apache modules, in fact I whant to create my own web server that serves only an embedded app. Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was looking for something similar. As far as I know, Lnet contains an embedded webserver. The fpc-xml also has one, in combination with fpasync. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Executing python code from a pascal program
Try addign cdecl or stdcall at the end procedure Py_Initialize;external name 'Py_Initialize'; cdecl; // or stdcall; procedure Py_Finalize;external name 'Py_Finalize'; cdecl; // or stdcall; --- Adrian Maier [EMAIL PROTECTED] wrote: Hello, I am trying to write a program that is embedding the python interpreter in order to execute python code. I don't need to transfer values between pascal and python. More specifically, I'm trying to convert to pascal the following: #include Python.h int main(int argc, char *argv[]) { Py_Initialize(); PyRun_SimpleString(from time import time,ctime\n print 'Today is',ctime(time())\n); Py_Finalize(); return 0; } I have a minimal unit which includes the needed functions (h2pas wasn't able to convert the Python.h , and i only need those 3 functions anyway ) : unit Python; interface uses Strings; {$LinkLib python2.4} {$IFDEF FPC} {$PACKRECORDS C} {$ENDIF} procedure Py_Initialize;external name 'Py_Initialize'; procedure Py_Finalize;external name 'Py_Finalize'; function PyRun_SimpleString(_para1:Pchar):longint; external name 'PyRun_SimpleString'; implementation end. The pascal program is : var cmd: PChar; begin cmd:=StrAlloc(256); Py_Initialize(); StrPCopy(cmd, 'print Hello'); PyRun_SimpleString(cmd); { --- the program crashes here : runtime error 216 } Py_Finalize(); end. The problem is that the program crashes at execution with Runtime error 216 at a_memory_address . The backtrace is : (gdb) backtrace #0 0xb7e6c3fa in PyOS_Readline () from /usr/lib/libpython2.4.so.1.0 #1 0xb7e6ca7b in PyTokenizer_FromFile () from /usr/lib/libpython2.4.so.1.0 #2 0xb7e6cf5d in PyTokenizer_FromString () from /usr/lib/libpython2.4.so.1.0 #3 0xb7e69fb3 in PyParser_ParseStringFlagsFilename () from /usr/lib/libpython2.4.so.1.0 #4 0xb7e6a091 in PyParser_ParseStringFlags () from /usr/lib/libpython2.4.so.1.0 #5 0xb7eeb408 in PyParser_SimpleParseStringFlags () from /usr/lib/libpython2.4.so.1.0 #6 0xb7eeb8a1 in PyRun_StringFlags () from /usr/lib/libpython2.4.so.1.0 #7 0xb7eecba3 in PyRun_SimpleStringFlags () from /usr/lib/libpython2.4.so.1.0 #8 0xb7eecc21 in PyRun_SimpleString () from /usr/lib/libpython2.4.so.1.0 #9 0x08048324 in main () at runpy.pas:16 What am i doing wrong ? Any idea ? Thank you, Adrian Maier ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Executing python code from a pascal program
I created a Python.pas unit this way using Delphi and it works correctly (note the cdecl directive before external): unit python; interface procedure Py_Initialize; cdecl; external 'python24.dll'; procedure Py_Finalize; cdecl; external 'python24.dll'; function PyRun_SimpleString(_para1:Pchar):longint; cdecl; external 'python24.dll'; implementation end. Leonardo M. Ramé http://leonardorame.blogspot.com Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] mixing C and Pascal and function pointers
The C routines are inside a shared library?. Can you post the C code to call these routines? --- Armando Navarro Vázquez [EMAIL PROTECTED] wrote: Dear members: I am not familiar with Pascal, but I would like to call some C routines inside the main Pascal program, is there any way, to pass function pointers from Pascal to the C subroutines? Thanks in Advance Armando -- Dr. Armando Navarro-Vázquez RIAIDT. Univdade de Resonancia Magnetica Universidade de Santiago de Compostela http://desoft03.usc.es/armando/index.html ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Using FPC as a scripting engine
The address of Lars's Pascal Server Pages is http://www.psp.furtopia.org, that program doesn't compiles code on the fly, just allows you to create CGI applications with FPC in an easy way. --- Marc Santhoff [EMAIL PROTECTED] wrote: Am Samstag, den 14.10.2006, 07:31 -0500 schrieb Jeff Pohlmeyer: I remember seeing some sort of system ( I can't remember the name or URL ) that used a pascal compiler to pre-compile CGI applications. Whenever a client request involved one the apps, the server would check the timestamp of the source against the timestamp of the binary. If the the binary was newer, it would just run, if the source was newer, it would be recompiled before running. Just a thought, maybe somebody else here knows the thing I'm talking about. Wasn't that Lars aka L505? That guy was doing a lot of website stuff with pasacal. Although I've forgotten the url you could try: www.l505.com / .org / .whatever HTH, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TDatabase, PostgreSQL and Mac OS X?
I don't know too much about OS X, but can't you simply rename libpq.dylib to libpq.so? --- Jeremy Cowgar [EMAIL PROTECTED] wrote: I have the following simple program that does not seem to be working. Connectivity using postgres unit works fine. Here's the error and then the program will follow. Thank you! Oh, a note. I do not have libpq.so. I do have libpq.dylib. Also, my postgresql is installed in a non-standard place, /usr/local/pgsql however other programs have not had a problem with that thus far. I created symlinks to /usr/ local/pgsql/libpq* into /usr/lib but that did not solve the problem. Jeremy $ ./dbtest Connecting to database... An unhandled exception occurred at $0007864C : EInOutError : Can not load PosgreSQL client. Is it installed? (libpq.so) $0007864C $00054F87 program dbtest; uses sqldb, pqconnection; var Fconnection : tSQLConnection; begin writeln('Connecting to database...'); Fconnection := tpqConnection.Create(nil); with Fconnection do begin DatabaseName := 'test'; open; end; writeln('Connected...'); Fconnection.Free; end. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TDatabase, PostgreSQL and Mac OS X?
Well, congratulations. I've experienced that same problem trying to use the ZeosLib PostGresql protocol on Linux. It try to use libpq.so and i had libpq-x.x.so, so i created a smart link to it. --- Jeremy Cowgar [EMAIL PROTECTED] wrote: Leonardo, Wow. That worked. I did a symlink from libpq.dylib to libpq.so and it works now. Is there a proper way to do this on mac os x anyone? Thanks Lenardo! Jeremy On Sep 27, 2006, at 7:55 AM, Leonardo M. Ramé wrote: I don't know too much about OS X, but can't you simply rename libpq.dylib to libpq.so? --- Jeremy Cowgar [EMAIL PROTECTED] wrote: I have the following simple program that does not seem to be working. Connectivity using postgres unit works fine. Here's the error and then the program will follow. Thank you! Oh, a note. I do not have libpq.so. I do have libpq.dylib. Also, my postgresql is installed in a non-standard place, /usr/local/pgsql however other programs have not had a problem with that thus far. I created symlinks to /usr/ local/pgsql/libpq* into /usr/lib but that did not solve the problem. Jeremy $ ./dbtest Connecting to database... An unhandled exception occurred at $0007864C : EInOutError : Can not load PosgreSQL client. Is it installed? (libpq.so) $0007864C $00054F87 program dbtest; uses sqldb, pqconnection; var Fconnection : tSQLConnection; begin writeln('Connecting to database...'); Fconnection := tpqConnection.Create(nil); with Fconnection do begin DatabaseName := 'test'; open; end; writeln('Connected...'); Fconnection.Free; end. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] memory leak detection using FPC
That's true, because of that i don't use interfaces in FPC, instead i use virtual abstract classes. --- Inoussa OUEDRAOGO [EMAIL PROTECTED] wrote: hi I reported a bug for interface reference counting at http://www.freepascal.org/mantis/view.php?id=7281 Bellow is the test program. Regards, Inoussa. program test_intf; {$mode objfpc}{$H+} uses SysUtils; type ITest = interface procedure DoIt(AMsg : string); end; TTest = class(TInterfacedObject,ITest) protected procedure DoIt(AMsg : string); public constructor Create(); destructor Destroy();override; end; var InstancesCount : Integer = 0; procedure TTest.DoIt(AMsg: string); begin WriteLn(AMsg); end; constructor TTest.Create(); begin Inherited; Inc(InstancesCount); WriteLn('Creating ',Integer(self)); end; destructor TTest.Destroy(); begin Dec(InstancesCount); WriteLn('Destroying ',Integer(self)); inherited Destroy(); end; procedure proc1(ATest : ITest); begin ATest.DoIt(' called in proc1'); end; procedure test(); begin (TTest.Create() as ITest).DoIt(' called in test'); proc1(TTest.Create() as ITest); end; begin test(); WriteLn('Remaining instances ... ',InstancesCount); end. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Who applies patches for FPC
Yes, do you remember the issue http://www.freepascal.org/mantis/view.php?id=7187 ?. The patch didn't seems to exist in newer versions of 2.1.1, and in mantis it's marked as resolved. --- Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Just come to the fpc IRC channel and talk about your patch, try to find someone in charge and bug him again and again, until it is either applied or denied ;-) :-) I have never used IRC before, but have heard of it.. What server do I connect to, and what channel in that server do I use? I think Ubuntu comes with an IRC client. Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Who applies patches for FPC
Maybe in the source version the patch is included but i've downloaded current compiled version from ftp://ftp.freepascal.org/pub/fpc/snapshot/v21/i386-win32/fpc-2.1.1.i386-win32.zip; and it isn't included. --- Graeme Geldenhuys [EMAIL PROTECTED] wrote: I haven't noticed that, sorry. I double checked it now with my current 2.1.1 (r4609) and the fix for bug #7187 is still there. All my unit tests testing for that bug pass. Not sure if it got into FPC 2.0.4 though. Should be worth a check. Regards, - Graeme - On 13/09/06, Leonardo M. Ramé [EMAIL PROTECTED] wrote: Yes, do you remember the issue http://www.freepascal.org/mantis/view.php?id=7187 ?. The patch didn't seems to exist in newer versions of 2.1.1, and in mantis it's marked as resolved. -- There's no place like 127.0.0.1 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Caching a big file on memory
I don't tested this with large files, but why don't you use TMemoryStream: var myFile: TMemoryStream; begin myFile := TMemoryStream.Create; myFile.LoadFromFile('c:\myfile'); ... end; --- Eduardo [EMAIL PROTECTED] wrote: Hello: I have a little problem, i participe in the 'Large Compression Benchmark' (http://cs.fit.edu/~mmahoney/compression/text.html) and need to cache the whole enwik8 file (100MB) on memory but when i try to allocate space for it i get a compiler error, saying that maximum is 64MB (67108864). I tried to use $MEMORY 2,5 (200MB stack and 500MB heap) and the compiler switches, but no success. I need all the file on RAM beacause i want to do a BWT, which implies a sort of the 100MB and uses 400 more MB, and doing so from hard disk is very slow. The contest has a time limit of 10 hours on a 1Ghz machine, but i need all speed at BWT/sort phase, so i can spend the time on getting better compression. Must i touch the system, rtl etc... files and recompile compiler? Or is there another, and simpler, way? P.D. Of course, my pc has more than 100 MB (1.25 GB) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Data exchange between programs
Or encapsulate your variables into an object and pass it to the DLL. Check out my blog at http://leonardorame.blogspot.com to see how pass objects to Dlls. --- Michael Van Canneyt [EMAIL PROTECTED] wrote: On Wed, 6 Sep 2006, Carsten Bager wrote: I have 2 FPC programs running on a Linux machine, is there an easy way to exchange a few data between these programs (I do not want to use disk operations). I was thinking of using environment variables, but I cannot find a way to change environment variables from a program. Does anybody have a hint? I think you'd better use shared memory or pipes or so. If the communication is one-way, have a look at the simpleipc units. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] TurboExplorer
It looks like TurboExplorer wait time is finished but...Can't download anithing :( Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] NewStr error in RTL documentation
I found that the documentation of the rtl (objects unit) contains a small error in the Synopsis of the NewStr function. It says: Synopsis: Allocate a copy of a SHORTSTRING on the heap. I think you should replace the word SHORTSTRING by STRING. Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
Maybe a third party can distribute a commercial version of FreePascal / Lazarus and share profits with the FPC community/team. Just like many linux distributions do (think of something like RedHat, Debian, etc.). My opinion. --- Rainer Stratmann [EMAIL PROTECTED] wrote: Am Freitag, 1. September 2006 13:27 schrieb Graeme Geldenhuys: On 9/1/06, Florian Klaempfl [EMAIL PROTECTED] wrote: So why not make a commercial Version of it, if it is better? Then you can concentrate more on your work and the work you like! Then it gets a duty and gets boring. I so agree with that! :-) Has someone another opinion, or is it only allowed to say something if someone has the same opinion??? sorry :-( Rainer Graeme. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
Yes, of course. But if i --- Jonas Maebe [EMAIL PROTECTED] wrote: On 1 sep 2006, at 13:52, Leonardo M. RamX wrote: Maybe a third party can distribute a commercial version of FreePascal / Lazarus and share profits with the FPC community/team. Just like many linux distributions do (think of something like RedHat, Debian, etc.). They can even do that without sharing any profits with us if they want to. And they can provide professional support for it and anything else they want. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Delphi collaborates FPC?
Yes, of course. Buf i think if you make money from an open source software it's your responsibility to compensate in some way to the developers of that software. --- Leonardo M. Ramé [EMAIL PROTECTED] wrote: Yes, of course. But if i --- Jonas Maebe [EMAIL PROTECTED] wrote: On 1 sep 2006, at 13:52, Leonardo M. RamX wrote: Maybe a third party can distribute a commercial version of FreePascal / Lazarus and share profits with the FPC community/team. Just like many linux distributions do (think of something like RedHat, Debian, etc.). They can even do that without sharing any profits with us if they want to. And they can provide professional support for it and anything else they want. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Httpd (apache modules)
I downloaded the httpd wrapper and examples from http://www.freepascal.org/wiki/index.php/FPC_and_Apache_Modules and can't start my Apache 2.2.3 server on Win2k SP4 when i include the mod_hello.so file compiled with FPC 2.1.1 and 2.0.4 Are there any known bugs with Apache 2.2? or the example doesn't works anymore? Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] DLL and Shared Libs in FPC
Yes, i've been writing Dlls and shared libs from 2.0.0 --- Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: On 8/6/06, Jason P Sage [EMAIL PROTECTED] wrote: I have read some things here and there, but can anyone simply tell me if its now possible to write DLL's and Linux Shared Libraries with FPC now? I think this has being supported for a long time now. At least FPC 2.0.2 can build libraries without any problems. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] allocating memory for records
You also can create an object an instantiate it in the initialization section of the unit an finalize at the end, if you use this unit, the instance of the created object will not lose it's value: type MyRec = class public a: integer; /* very clear */ b: string; /* not clear, how much bytes are needed? */ end; var myRecVar: MyRec; initialization myRecVar := MyRec.Create; myRecVar.a := 10; myRecVar.b := 'Hello World!'; finalization myRecVar.Free; --- Marc Santhoff [EMAIL PROTECTED] wrote: Am Freitag, den 07.07.2006, 10:09 -0700 schrieb Leonardo M. RamX: Marc, you don't need to allocate memory for records, you can us as follows: type MyRec = record a: integer; /* very clear */ b: string; /* not clear, how much bytes are needed? */ end; var myRecVar: MyRec; begin myRecVar.a := 10; myRecVar.b := 'Hello World!'; end; Yes, I know. But in this case I definitely have to because a static variable disappears outside a function declaring it, so I need a solution that is robust and portable. But thank you anyways, a helping hand is always welcome. Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Report Tool
Hi, can anibody knows if the project LazReports is still active? In the case of no, can you recommend another report tool that works with FPC? Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Report Tool
Yes, at SourceForge the project is outdatet (30 dec 2005). Thanks. --- Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: On 7/4/06, Jesus Reyes [EMAIL PROTECTED] wrote: http://wiki.lazarus.freepascal.org/index.php/Projects_using_Lazarus#LazReport Maybe the sourceforge website and project should be updated. Who is the admin of lazreport sf project? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal