Re: [fpc-pascal] remote mysql connection

2008-02-13 Thread Leonardo M. Ram
, 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 > >>

Re: [fpc-pascal] remote mysql connection

2008-02-12 Thread Leonardo M. Ram
Are you trying to connect to a MySql server included in a Shared Hosting account? In most cases, those servers doesn't allow remote MySql connection, just from localhost (local to the remote server). With that, you can use a CGI script located inside the shared host and connect to MySql. An al

Re: [fpc-pascal] class constants

2008-01-24 Thread Leonardo M. Ram
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. > >

Re: [fpc-pascal] class constants

2008-01-23 Thread Leonardo M. Ram
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'; ...

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2007-12-03 Thread Leonardo M. Ram
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 > th

Re: [fpc-pascal] FCL-DB/SQLDB docs started

2007-11-26 Thread Leonardo M. Ram
Of course Db unit will be documented as well. By documenting SQLDb (in fact, I don't call it a documentation, but a how-to in this instance), we started answering the common question of how to connect to an sql database, maybe the first most important thing a new user of an unknown database libr

Re: [fpc-pascal] FPC and JAVA

2007-10-24 Thread Leonardo M. Ram
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

Re: [fpc-pascal] Run process and exit (win32)

2007-10-23 Thread Leonardo M. Ram
> 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). >

Re: [fpc-pascal] Run process and exit (win32)

2007-10-23 Thread Leonardo M. Ram
> 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 := 'httpserv

[fpc-pascal] Run process and exit (win32)

2007-10-22 Thread Leonardo M. Ram
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 unti

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Leonardo M. Ram
> > 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,

Re: [fpc-pascal] defining record at runtime

2007-09-25 Thread Leonardo M. Ram
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 = c

Re: [fpc-pascal] Client/Server file transfer

2007-09-17 Thread Leonardo M. Ram
> 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!'

Re: [fpc-pascal] OT: Rename for Pascal

2007-08-12 Thread Leonardo M. Ram
-- 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. Y

Re: [fpc-pascal] OT: Rename for Pascal

2007-08-12 Thread Leonardo M. Ram
> 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

Re: [fpc-pascal] OT: Rename for Pascal

2007-08-12 Thread Leonardo M. Ram
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

[fpc-pascal] FreePascal TDataSet

2007-08-10 Thread Leonardo M. Ram
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

[fpc-pascal] ISpell / ASpell + FPC

2007-07-22 Thread Leonardo M. Ram
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. V

Re: [fpc-pascal] Problem with dynamic libraries

2007-06-13 Thread Leonardo M. Ram
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 y

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Leonardo M. Ram
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

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Leonardo M. Ram
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 wit

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Leonardo M. Ram
After reading the tutorial suggested by Daniel, you sould go to http://en.wikipedia.org/wiki/Delphi_(programming_language) and follow a link to "object pascal language guide" to learn Object Pascal. --- Daniël Mantione <[EMAIL PROTECTED]> wrote: > > > Op Sat, 9 Jun 2007, schreef Aruna Goke: >

Re: [fpc-pascal] Embedded web server

2007-03-14 Thread Leonardo M. Ram
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 s

[fpc-pascal] Embedded web server

2007-03-14 Thread Leonardo M. Ram
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. Leonardo M. Ramé http://leonardorame.b

Re: [fpc-pascal] Web development

2007-01-08 Thread Leonardo M. Ram
> How can FPC help me to develop web applications ? > What kind of web technologies are already available in FPC ? Take a look at PSP: http://www.psp.furtopia.org/cgi-bin/psp/index.psp Leonardo M. Ramé http://leonardorame.blogspot.com __ Do You

Re: [fpc-pascal] Executing python code from a pascal program

2006-11-13 Thread Leonardo M. Ram
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:Pch

Re: [fpc-pascal] Executing python code from a pascal program

2006-11-13 Thread Leonardo M. Ram
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

Re: [fpc-pascal] mixing C and Pascal and function pointers

2006-10-19 Thread Leonardo M. Ram
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 w

Re: [fpc-pascal] Re: Using FPC as a scripting engine

2006-10-15 Thread Leonardo M. Ram
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 Pohlme

Re: [fpc-pascal] TDatabase, PostgreSQL and Mac OS X?

2006-09-27 Thread Leonardo M. Ram
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

Re: [fpc-pascal] TDatabase, PostgreSQL and Mac OS X?

2006-09-27 Thread Leonardo M. Ram
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 w

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Leonardo M. Ram
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. >

Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Leonardo M. Ram
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 do

Re: [fpc-pascal] Who applies patches for FPC

2006-09-13 Thread Leonardo M. Ram
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 yo

Re: [fpc-pascal] Caching a big file on memory

2006-09-11 Thread Leonardo M. Ram
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 '

Re: [fpc-pascal] Data exchange between programs

2006-09-06 Thread Leonardo M. Ram
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 o

[fpc-pascal] TurboExplorer

2006-09-05 Thread Leonardo M. Ram
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

Re: [fpc-pascal] NewStr error in RTL documentation

2006-09-04 Thread Leonardo M. Ram
Ok. Do you know a way to allocate a new PString?. In Delphi NewStr does it. --- Peter Vreman <[EMAIL PROTECTED]> wrote: > At 14:41 4-9-2006, you wrote: > >I found that the documentation of the rtl (objects unit) contains a > >small error in the Synopsis of > >the NewStr function. > > > >It says:

[fpc-pascal] NewStr error in RTL documentation

2006-09-04 Thread Leonardo M. Ram
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.

Re: [fpc-pascal] Httpd (apache modules)

2006-09-01 Thread Leonardo M. Ram
Thanks Felipe, i'll try with Apache 2.0.x (i don't really need 2.2.x). --- Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: > On 9/1/06, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: > > Are there any known bugs with Apache 2.2? or the example doesn't works > > anymore? > > The current bin

[fpc-pascal] Httpd (apache modules)

2006-09-01 Thread Leonardo M. Ram
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 doe

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Leonardo M. Ram
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: > > >

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Leonardo M. Ram
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 distributi

Re: [fpc-pascal] Delphi collaborates FPC?

2006-09-01 Thread Leonardo M. Ram
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. Sept

Re: [fpc-pascal] DLL and Shared Libs in FPC

2006-08-07 Thread Leonardo M. Ram
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

Re: [fpc-pascal] allocating memory for records

2006-07-07 Thread Leonardo M. Ram
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 muc

Re: [fpc-pascal] allocating memory for records

2006-07-07 Thread Leonardo M. Ram
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; --- Vincent

Re: [fpc-pascal] Report Tool

2006-07-04 Thread Leonardo M. Ram
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 a

[fpc-pascal] Report Tool

2006-07-04 Thread Leonardo M. Ram
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

Re: [fpc-pascal] Code example needed, please!

2006-06-30 Thread Leonardo M. Ram
Rainer, If the application is a standalone one you can create the backend in a dll. The front end can be a windows application who share the dll. Later, if you want to evolve to a Client/Server architecture, you can create a service/daemond linked to the dll, the daemond must have a protocol to