Re: [fpc-pascal] linklib c using mingw, cygwin, both, or ...

2008-10-06 Thread Wolfram Kläger
> 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

[fpc-pascal] constructor overloads - only class methods can ..?

2008-03-15 Thread Wolfram Kläger
>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

Re: [fpc-pascal] splitting string into array

2007-07-10 Thread Wolfram Kläger
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

Re: [fpc-pascal] FTP client unit recommendations

2007-05-20 Thread Wolfram Kläger
> > 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 __

[fpc-pascal] FTP client unit recommendations

2007-05-17 Thread Wolfram Kläger
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

Re: [fpc-pascal] Integer = Extended?

2007-05-17 Thread Wolfram Kläger
> -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

[fpc-pascal] Integer = Extended?

2007-05-16 Thread Wolfram Kläger
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

Re: [fpc-pascal] Font handles from Win API

2007-03-19 Thread Wolfram Kläger
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

[fpc-pascal] Font handles from Win API

2007-03-16 Thread Wolfram Kläger
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

Re: [fpc-pascal] Unknown runtime error 202

2006-07-27 Thread Wolfram Kläger
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

Re: [fpc-pascal] Unknown runtime error 202

2006-07-27 Thread Wolfram Kläger
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

Re: [fpc-pascal] Unknown runtime error 202

2006-07-27 Thread Wolfram Kläger
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

[fpc-pascal] Unknown runtime error 202

2006-07-26 Thread Wolfram Kläger
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

Re: [fpc-pascal] internal error 200306184

2006-01-23 Thread Wolfram Kläger
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

Re: [fpc-pascal] internal error 200306184

2006-01-23 Thread Wolfram Kläger
, 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

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-19 Thread Wolfram Kläger
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

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-19 Thread Wolfram Kläger
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

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-19 Thread Wolfram Kläger
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

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-19 Thread Wolfram Kläger
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

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-18 Thread Wolfram Kläger
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

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-18 Thread Wolfram Kläger
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

[fpc-pascal] parameter names local, global, glocal

2006-01-18 Thread Wolfram Kläger
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

Re: [fpc-pascal] method pointers

2006-01-17 Thread Wolfram Kläger
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-pascal] method pointers

2006-01-16 Thread Wolfram Kläger
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 //

Re: [fpc-pascal] internal error 200306184

2006-01-16 Thread Wolfram Kläger
> 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

Re: [fpc-pascal] internal error 200306184

2006-01-15 Thread Wolfram Kläger
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

Re: [fpc-pascal] internal error 200306184

2006-01-15 Thread Wolfram Kläger
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 -

[fpc-pascal] internal error 200306184

2006-01-15 Thread Wolfram Kläger
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