, 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
> >>
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
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.
>
>
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';
...
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
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
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 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).
>
> 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
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
>
> 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,
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
> 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!'
-- 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
> 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
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
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
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
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
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
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
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:
>
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
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
> 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
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
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 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
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
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
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
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.
>
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
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
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 '
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
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
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:
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.
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
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
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:
>
> >
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
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
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
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
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
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
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
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
50 matches
Mail list logo