> I'm trying to follow the tutorial, How to use C code in FreePascal projects,
>
> ftp://ftp.freepascal.org/pub/fpc/docs-pdf/CinFreePascal.pdf
>
> In order to get gcc running on Windows, I tried both options, mingw and
> cygwin. ...
Solved. Instead of
{$linklib c}
as described in the tutoria
>From time to time I get the error, "only class methods can be referred with
>class references". While always managed to get a workaround, I am still not
>able to understand exactly when this happens and why. Example:
type
TmyClass = class(TObject)
private
..
public
constructor Cr
Here is a Delphi implementation of the common PHP function 'explode'.
http://www.michael-puff.de/Developer/Delphi/Code-Snippets/Explode.html
Your example then becomes to
..
A := Explode('-', 'ab-cd-ef');
writeln(A[1]); // expect 'cd'
..
The inverse is accomplished by using PHP like 'implode', wh
> > http://curl.haxx.se/libcurl/pascal/
> >
> > Looks like my favorite, so far. Thanks in advance for any advice.
>
> Synapse has no external dependencies, you'd better use that.
Thanks Michael. Synapse seems to deliver perfectly, indeed.
Wolfram
__
WhatŽs the best FTP client to be integrated in a FP console project, without
need to hook up Lazarus? Nothing fancy, but as robust as possible. Any
recommendations? Did anybody give CurlPas a serious try?
http://curl.haxx.se/libcurl/pascal/
Looks like my favorite, so far. Thanks in advance for
> -Ursprüngliche Nachricht-
> Von: FPC-Pascal users discussions
> Gesendet: 17.05.07 08:21:54
> An: FPC-Pascal users discussions
> Betreff: Re: [fpc-pascal] Integer = Extended?
>
>
>
> Op Thu, 17 May 2007, schreef Wolfram Kläger:
>
> > What?s w
WhatŽs wrong with the following declarations:
function Any(A1 : Extended; A2 : Extended) : AnyType; overload;
function Any(A1 : Integer; A2 : Integer) : AnyType; overload;
FPC 2.04 on Win32 says, both functions have same parameter list. Consequently,
there is no error message, when IŽm feeding
I wrote something like
>... CallbackProc(
>...EnumFontFamilies(
> DeviceContext,
The problem is solved. Finally I managed to draw text of any style on any
bitmap I want by squeezing Windows GDI the way it likes to be squeezed.
Fortunately, the FPC windows unit works great. In some sp
Hi everyone,
IŽm too stupid for Windows. Before drawing text on a bitmap, I need to know the
handle of the selected font, specified by name, say 'Arial'. This is my last
attempt. Anybody knows, where IŽm still wrong?
function CallbackProc(
var AFontInfoVar : TEnumLogFont;
var AMetric
Michael wrote:
> .. FileName/Linenumber info is only available through debug information.
> It's not an interpreted language, but compiled language.
Thanks for explanation.
Wolfram
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://list
Vinzent wrote:
> > BTW, do you know why exceptions donŽt return a line number?
>
> Because you forgot to include the "-gl" switch for automatically
> including the line info unit?
As I understand it, this option is only helpful when you are struggling with
the debugger. My question is: What is
Vinzent wrote:
> .. According to the documentation, the size of the
> local variables (allocated on the stack) should not exceed 32 KiBytes
> for portability reasons.
Thanks a lot. And I thought, I did RTFM often enough ...
BTW, do you know why exceptions donŽt return a line number? As I under
I had this error two or three times these days. I managed to get rid of it by
moving a local method variable to a field. Example:
class.method
var
d3 : array[ .., .., ..] of ...
begin
...
Works, if length(d3) < unknown limit. When I get the unknown runtime error 202
instead, I rearrange d3 to
At 23.01.2006 18:44, Felipe Monteiro de Carvalho wrote:
What compiler version did you use?
2.0.2 on XP. Compiling all units always (-B) helped.
Wolfram
--
Wolfram Kläger
[EMAIL PROTECTED]
___
fpc-pascal maillist - fpc-pascal
, when Köhler´s examples run.
Wolfram
--
Wolfram Kläger
[EMAIL PROTECTED]
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ot to copy Delphi perfectly. Dotnet mode
anybody? :-)
--
Wolfram Kläger
[EMAIL PROTECTED]
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
At 19.01.2006 11:08, Jonas wrote:
...
Anyway, in Delphi mode we should compile everything also compilable
by Delphi, so if that's not the case please submit a bug.
Ok. I will check it again and do so. Maybe it helps to trust in Delphi mode
and makes porting to FP easier.
--
Wolfram K
to be
careful. Let´s keep the difference to Delphi for religious purposes.
Wolfram
--
Mosaikfabrik (r) Bilder von Bildern www.mosaikfabrik.de
MEMPHIS GmbH HRB Kirchheim/Teck 1231 Geschäftsführer
Wolfram Kläger Wrangellstrasse 11 D-70599 Stuttgart
Tel. (+49) 0711 31 944 39 Fax (+49) 012126
www.mosaikfabrik.de
MEMPHIS GmbH HRB Kirchheim/Teck 1231 Geschäftsführer
Wolfram Kläger Wrangellstrasse 11 D-70599 Stuttgart
Tel. (+49) 0711 31 944 39 Fax (+49) 012126 31 944 944
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http
L505 18.01.06 21:33:48:
> ... use the underscore, although a bit messy looking:
>
> function SubstringData(const Offset, Count_: Integer): WideString; virtual;
> ...
Thanks. Matches to the habit of the guy, who has written the Delphi code, that
I am working on. He usually begins each private
Jonas 18.01.06 21:30:58:
> ... This error should not be reported if you switch to Delphi mode.
Unfortunately no. This kind of errors ís reported by FPC, no matter which mode,
while Delphi does not.
I understand your explanation, but don´t really understand that an
anyproc.anyparam.name can
of the machine.
Wolfram
--
Mosaikfabrik (r) Bilder von Bildern www.mosaikfabrik.de
MEMPHIS GmbH HRB Kirchheim/Teck 1231 Geschäftsführer
Wolfram Kläger Wrangellstrasse 11 D-70599 Stuttgart
Tel. (+49) 0711 31 944 39 Fax (+49) 012126 31 944 944
FPC-Pascal users discussions schrieb am
17.01.06 07:52:13:
>
> > FPC can´t assign value to address, where Delphi can. For example:
> Did you use {$mode delphi} ? ...
Thanks a lot, Peter. In my cfg file, I had OP extensions on. Switched to Delphi
mode, and I have other problems again :-)
W
FPC can´t assign value to address, where Delphi can. For example:
TDomNode = class(TDomCustomNode);
private
...
FUserData : TUtilsWideStringList;
FUserDataHandlers : TList;
...
destructor TDomNode.Destroy;
var
I: Integer;
UserDataEvent: TDomUserDataEvent;
begin
//
> Micha wrote:
>
> If you can reproduce in a small unit (or two I guess), then make a bug
> report.
Unfortunately, the main unit from Köhler is some 28.000 lines of code, calling
additional nine utility units. Each single unit compiles, and the main unit
including all others, as well. But, as
Felipe Monteiro de Carvalho wrote:
> Can you make it publicly available somewhere? ...
When I got it up and running, sure. At the moment, I still have no idea how to
get rid off this internal error.
___
fpc-pascal maillist - fpc-pascal@lists.freepas
After some trials and errors, I found that some $DEFINE clauses caused the
error. After cleaning up these clauses, all units together are compiled as
usual. If somebody is interested in exact details , I´ll deliver.
Wolfram
___
fpc-pascal maillist -
I am trying to freepascalize Dieter Köhler´s Open XML for Delphi, see
http://www.philo.de/xml/. So far, I managed to flat all FPC errors, warnings,
and hints. But when I call the unit from another, FPC throws an internal error
200306184, and that´s it.
How can I proceed to find out more? What i
28 matches
Mail list logo