Re: [fpc-pascal] GLPT v0.1.1 released

2018-10-10 Thread dhkblaszyk
I created a new branch called GL-version. Accepting pull requests! 😉  Verzonden vanaf mijn Samsung-apparaat Oorspronkelijk bericht Van: Ryan Joseph Datum: 10-10-18 05:23 (GMT+01:00) Aan: FPC-Pascal users discussions Onderwerp: Re: [fpc-pascal] GLPT v0.1.1 released

[fpc-pascal] Get variable name at runtime

2013-03-04 Thread dhkblaszyk
Hi, How can I retrieve a variable name at runtime? I know about RTTI on classes, what about simple type variables? Regards, Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Forward struct declaration in C

2013-02-22 Thread dhkblaszyk
Thanks Sven and Michael, I will do as you proposed and simply use a pointer for now. Later once the code has been ported I will have a look to refactor the code. Regards, Darius > On 22.02.2013 09:57, dhkblas...@zeelandnet.nl wrote: >> Hi, >> >> I'm porting a piece of software to FPC but I go

[fpc-pascal] Forward struct declaration in C

2013-02-22 Thread dhkblaszyk
Hi, I'm porting a piece of software to FPC but I got stuck at a forward struct declaration. The situation is as folows. Header 1 declares: struct TaskHandle__; typedef void (*CallBackProcPtr)(struct TaskHandle__ *task); And Header2 provdes: typedef struct TaskHandle__ { int unused; }

Re: [fpc-pascal] problems compiling FPC

2012-10-16 Thread dhkblaszyk
I heard you the first time, don't worry. Just don't clown around so much. It was a perfectly normal reply on your mail. I will do as you proposed. On 16 okt '12, mar...@stack.nl wrote: > In our previous episode, dhkblas...@zeelandnet.nl [1]said: > >> The starting compiler is also from SVN

Re: [fpc-pascal] problems compiling FPC

2012-10-16 Thread dhkblaszyk
The starting compiler is also from SVN (21955). On 16 okt '12, mar...@stack.nl wrote: > In our previous episode, dhkblas...@zeelandnet.nl [1]said: > >> I am trying to update my FPC from SVN, but for some reason I keep on getting a compilation error. The last build was from 21955 (23rd July

[fpc-pascal] problems compiling FPC

2012-10-16 Thread dhkblaszyk
Hi, I am trying to update my FPC from SVN, but for some reason I keep on getting a compilation error. The last build was from 21955 (23rd July 2012). See below for the makefile output. Regards, Darius C:lazarusfpctrunk>make all make compiler_cycle RELEASE=1 make[1]: Entering directory `C:

Re: [fpc-pascal] Memory alignment with FPC

2012-10-11 Thread dhkblaszyk
On 11 okt '12, Jonas Maebe wrote: > On 11 Oct 2012, at 15:23, dhkblas...@zeelandnet.nl [1] wrote: > >> Thanks, I think everything is clear now. My plan now is to >> respect default padding and write records in one go to disk. The padding >> value will be written to the file header so the re

Re: [fpc-pascal] Memory alignment with FPC

2012-10-11 Thread dhkblaszyk
On 11 okt '12, Jonas Maebe wrote: > On 11 Oct 2012, at 15:00, dhkblas...@zeelandnet.nl [1]wrote: > >> So misalignment of for instance a double (or whatever type) will only happen if the record is packed and the packed value is smaller than what the ABI prescribes, correct? > > Yes. > >> Le

Re: [fpc-pascal] Memory alignment with FPC

2012-10-11 Thread dhkblaszyk
On 11 okt '12, Jonas Maebe wrote: > As mentioned before, it not only depends on the platform, but also on the contents of the object/record. E.g., a badly misaligned double will generally give much worse performance even on Intel. > >> This makes me wonder if >> choosing a proper value for

Re: [fpc-pascal] Memory alignment with FPC

2012-10-11 Thread dhkblaszyk
On 10 okt '12, dhkblas...@zeelandnet.nl wrote: > One more question, when using packed records, is there anything to say about performance? Are there some tests anywhere that show how the performance is impacted? I did some performance tests on win32 and it appears that both packed and unpack

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread dhkblaszyk
On 10 okt '12, Jonas Maebe wrote: > On 10 Oct 2012, at 12:02, dhkblas...@zeelandnet.nl [1] wrote: > >> Does FPC ensure the same memory alignment for records and objects >> over different platforms? > > No, alignment is defined by the platform ABI. > >> If I want to be sure to have the sa

Re: [fpc-pascal] Memory alignment with FPC

2012-10-10 Thread dhkblaszyk
On 10 okt '12, Sven Barth wrote: > Am 10.10.2012 12:02, schrieb dhkblas...@zeelandnet.nl: [1] > >> Does FPC ensure the same memory alignment for records and objects over different platforms? If I want to be sure to have the same alignment must I use packed (with possibly some aligning assign

[fpc-pascal] Memory alignment with FPC

2012-10-10 Thread dhkblaszyk
Does FPC ensure the same memory alignment for records and objects over different platforms? If I want to be sure to have the same alignment must I use packed (with possibly some aligning assigned) records instead in combination with data types that are guaranteed to be of the same size over the

[fpc-pascal] Re: using macros

2012-10-02 Thread dhkblaszyk
On 1 okt '12, dhkblas...@zeelandnet.nl wrote: > I need to translate this: #define mymalloc(x,y) (x*)malloc((y)* sizeof(x)) > > Is it possible using macro's in FPC or do I need to convert it to a procedure? How would I cast the pointer in the latter case (without having to change the sourcec

[fpc-pascal] using macros

2012-10-01 Thread dhkblaszyk
I need to translate this: #define mymalloc(x,y) (x*)malloc((y)* sizeof(x)) Is it possible using macro's in FPC or do I need to convert it to a procedure? How would I cast the pointer in the latter case (without having to change the sourcecode significantly)? Regards, Darius _

Re: [fpc-pascal] Re: Assigning pointer address

2012-10-01 Thread dhkblaszyk
On 1 okt '12, Reinier Olislagers wrote: > On 1-10-2012 13:55, dhkblaszyk-47ckw973qwsgtviba+r...@public.gmane.org [4]wrote: > >> On 1 okt '12, michael.vancanneyt-0is9kj9s...@public.gmane.org [3]wrote: >> >>> On Mon, 1 Oct 2012, dhkblas...@zeelandnet

Re: [fpc-pascal] Assigning pointer address

2012-10-01 Thread dhkblaszyk
On 1 okt '12, michael.vancann...@wisa.be wrote: > On Mon, 1 Oct 2012, dhkblas...@zeelandnet.nl [2]wrote: > >> Hi Tomas, Thanks for clarifying. I will use PtrUInt to store the pointer address in. BTW: the documentation it says not to use PtrInt because it's signed and therefore smaller than a

Re: [fpc-pascal] Assigning pointer address

2012-10-01 Thread dhkblaszyk
Hi Tomas, Thanks for clarifying. I will use PtrUInt to store the pointer address in. BTW: the documentation it says not to use PtrInt because it's signed and therefore smaller than a pointer (as in max value). Also there seems to be an error in the documentation. On http://www.freepascal.or

[fpc-pascal] Problem compiling

2012-08-05 Thread dhkblaszyk
Hi, I get: text.inc(199,34) Error: Illegal type conversion: "Text" to "TextRec" after updating the compiler sources from SVN. Free Pascal Compiler version 2.7.1 [2012/05/22] for i386 Anyone have an idea what could be wrong? Regards, Darius

Re: [fpc-pascal] Converting from seconds to TTime: easiest way?

2012-06-20 Thread dhkblaszyk
Try MyTTime := HugeNumberOfSecondsInteger / (3600 * 24); On 20 jun '12, Reinier Olislagers wrote: > Morning list, > > I'm trying to convert a large number of seconds to a TTime. > > To my surprise - without a Delphi background ;) - EncodeTime only takes > up to 59 seconds... ;) > Same f

Re: [fpc-pascal] Parameters to Format()

2012-05-25 Thread dhkblaszyk
You should do: type MyVarArray = array of variant; and then procedure TUnyokedFrontendForm.OutputWriteF(const str: widestring; values: MyVarArray; fg: TColor= clBlack; bg: TColor= clDefault); Darius On 25 mei '12, Mark Morgan Lloyd wrote: > How should I put this? > > procedure

[fpc-pascal] Strange compile error

2012-05-17 Thread dhkblaszyk
Hi, I have a simple application that uses glut and opencv. However as soon as I add the opencv wrapper unit to the uses clause I get: video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" found The compiler does not recognize the main unit anymore. I have searched the opencv.p

Re: [fpc-pascal] InstantFPC and argv

2012-05-04 Thread dhkblaszyk
On 4 mei '12, michael.vancann...@wisa.be wrote: > On Fri, 4 May 2012, michael.vancann...@wisa.be [3]wrote: > >> On Fri, 4 May 2012, dhkblas...@zeelandnet.nl [1]wrote: >> >>> I'm creating a script to be executed by instantfpc when I noticed that paramstr(0) does not reflect the location of

[fpc-pascal] InstantFPC and argv

2012-05-04 Thread dhkblaszyk
I'm creating a script to be executed by instantfpc when I noticed that paramstr(0) does not reflect the location of the script but the location of the cached executable. Is there a way to alter this location programatically to the script location? Is there an alternative way? Regards, Darius

Re: [fpc-pascal] c to pascal converters

2012-05-03 Thread dhkblaszyk
c2pas32 often gives acceptable results. On 3 mei '12, mar...@stack.nl wrote: > Hello, > > I'm in the process of converting an old MSVC6 application to FPC/Delphi, > so I'm thinking about using a c to pascal converter. > > The code is older 6-10kloc, and is plain C in a MFC C++ framework.

Re: [fpc-pascal] Re: Problems with assigning pointers

2012-04-11 Thread dhkblaszyk
Hi Sven en Vincent, Thanks for your hints. Indeed the dynamic array was the problem. I have now replaced it by a linked list of verts/edges/faces. It now works perfectly. Regards, Darius On 11 apr '12, Sven Barth wrote: > Am 10.04.2012 22:16, schrieb Vincent Snijders: > >> Op 10 april

[fpc-pascal] Problems with assigning pointers

2012-04-10 Thread dhkblaszyk
I have some issues when assigning a pointer to a pointer variable. Consider this: TVertex = record x: double; y: double; end; PVertex = ^TVertex; TEdge = record v1: PVertex; v2: PVertex; end; I have assigned a value to a vertex variable. In my code I have an array of TEdge. When

[fpc-pascal] Looking for NSOpenGLView example

2012-04-10 Thread dhkblaszyk
Hi, I'm looking for an example of how to use NSOpenGLView. I would like to create a "native" opengl window on Mac. Sofar I have found only some snippets but nothing that actually shows how to setup and use a native window. I will prepare a demo app so it can be included in the examples of the

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread dhkblaszyk
> In our previous episode, dhkblas...@zeelandnet.nl said: >> > See also >> > http://bugs.freepascal.org/view.php?id=14843 >> > >> Could XML attributes be used to distinguish overloaded functions? eg >> >> boolean result >> integer result >> >> >> It should be relatively

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread dhkblaszyk
> In our previous episode, michael.vancann...@wisa.be said: >> >> On a side note, >> >> >> >> 1) for overloaded functions it seems >> > that only one result string is possible to define. As seen in the XML >> > file:(no desitinction based on result type) >> >> Correct. > > See also > http://bugs.fr

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-05 Thread dhkblaszyk
Resending the email. The images are here: http://imagebin.org/192019 [3] http://imagebin.org/192020 [4] http://imagebin.org/192021 [5] On 6 jan '12, dhkblas...@zeelandnet.nl wrote: > I checked doxygen (http://www.stack.nl/~dimitri/doxygen/examples/overload/html/class_test.html#a8e7b46

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-05 Thread dhkblaszyk
Resending the email. The images are here: http://imagebin.org/192019 [3] http://imagebin.org/192020 [4] http://imagebin.org/192021 [5] On 6 jan '12, dhkblas...@zeelandnet.nl wrote: > I checked doxygen (http://www.stack.nl/~dimitri/doxygen/examples/overload/html/class_test.html#a8e7b46

[fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-05 Thread dhkblaszyk
When you have overloaded functions, fpdoc will group them on one page. The arguments however are listed in two separate arguments sections. It would be nice to have the arguments merged in one section. I do not know how to display the arguments though (no idea what others do like pasdoc or doxyge

Re: [fpc-pascal] FPDoc visibility sections

2012-01-04 Thread dhkblaszyk
I filed the report here: http://bugs.freepascal.org/view.php?id=21022 [4] BTW, it think it has to do with overloaded methods. Whenever fpdoc encounters such methods it will enclose them in visibility directives. Regards, Darius On 4 jan '12, Michael Van Canneyt wrote: > On Wed, 4 Jan 20

[fpc-pascal] FPDoc visibility sections

2012-01-04 Thread dhkblaszyk
Found some strange behaviour imho. For some reason there are extra visibility sections inserted in my documentation, instead of following the source. I expected fpdoc to respect the visibility directives instead of deciding autonomously when to place one. See for example: documentation:http

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread dhkblaszyk
Thanks for the help. After also re-reading the documentation I now better understand how to use fpdoc. No more error messages anymore However, including an image in the documentation does not work unfortunately. After generating the chm file the image is not shown and an alternative text

[fpc-pascal] Problems with fpdoc

2012-01-02 Thread dhkblaszyk
Hi, I seem to have some problems using fpdoc in combination with html tags. When I enter some text (taken from the documentation) I get compilation errors: Text used: With Strings do For i:=Count-1 downto 0 do Delete(i); Compilation errors: [] Invalid description (illegal XML eleme

Re: [fpc-pascal] Contributed units on freepascal site

2011-12-22 Thread dhkblaszyk
On 22 dec '11, Jonas Maebe wrote: > On 22 Dec 2011, at 14:37, dhkblas...@zeelandnet.nl [1]wrote: > >> The contributed unit section on the freepascal site does not work anymore. Can someone please have a look and fix this? Is there an alternative link available? > > The location of the page

[fpc-pascal] Contributed units on freepascal site

2011-12-22 Thread dhkblaszyk
The contributed unit section on the freepascal site does not work anymore. Can someone please have a look and fix this? Is there an alternative link available? Regards, Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.

Re: [fpc-pascal] Memory leak

2011-12-18 Thread dhkblaszyk
On 18 dec '11, Jonas Maebe wrote: > If you use freemem or reallocmem, then you will get a memory leak because freemem/reallocmem do not finalize the memory before freeing it. You have to manually call finalize() on the records inside that memory block prior to freeing them via freemem/realloc

Re: [fpc-pascal] Memory leak

2011-12-18 Thread dhkblaszyk
On 18 dec '11, Jonas Maebe wrote: > On 18 Dec 2011, at 15:45, dhkblas...@zeelandnet.nl [1]wrote: > >> It was an ansistring indeed, and finalize did the trick! Thanks for your help. How does New and Dispose work btw? Do they use RTTI to call finalize appropriatly? > > Yes. > >> I tried sear

Re: [fpc-pascal] Memory leak

2011-12-18 Thread dhkblaszyk
On 18 dec '11, Jonas Maebe wrote: > On 18 Dec 2011, at 14:04, dhkblas...@zeelandnet.nl [1]wrote: > >> mytest^.name := Format('%s.%.3d', ['name', 1]); This assigns 'name.001' to the pointer variable but causes a memleak. If I assign the same value as string constant no memleak occurs, so it m

[fpc-pascal] Memory leak

2011-12-18 Thread dhkblaszyk
While dabbling with pointers, I came across a memleak for which I don't understand why it happens. Hopefully someone can help me with it. mytest^.name := Format('%s.%.3d', ['name', 1]); This assigns 'name.001' to the pointer variable but causes a memleak. If I assign the same value as strin

Re: [fpc-pascal] initializing pointer values

2011-12-16 Thread dhkblaszyk
On 16 dec '11, Michael Van Canneyt wrote: > On Fri, 16 Dec 2011, dhkblas...@zeelandnet.nl [1]wrote: > >> On implementing a linked list I hit to some unexpected (doesn't mean incorrect though) behaviour. ptest = ^test; test = record p: pointer; end; new(mytest); When I allocate "mytest" the p

[fpc-pascal] initializing pointer values

2011-12-16 Thread dhkblaszyk
On implementing a linked list I hit to some unexpected (doesn't mean incorrect though) behaviour. ptest = ^test; test = record p: pointer; end; new(mytest); When I allocate "mytest" the pointer variable "p" is initialized as $ instead of nil as I did suspect. In my code thoug

[fpc-pascal] HDR imaging

2011-09-27 Thread dhkblaszyk
ZeelandNet Webmail Has anyone ever used HDR images in a freepascal application. I'm looking for a native library or a binding to a lib eg OpenEXR. Regards, Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

[fpc-pascal] Virtual inline methods

2011-08-18 Thread dhkblaszyk
ZeelandNet Webmail I'm porting a piece of code from C++ and there they use virtual inline methods. I tried it in FPC but it accepts either virtual OR inline methods. Is this a bug, or a feature that I don't understand enough about? Regards, Darius __

Re: [fpc-pascal] Quitting simplehttpserver

2011-08-10 Thread dhkblaszyk
On Wed, 10 Aug 2011 12:06:15 +0200, wrote: Nevermind, I overlooked the deactivation code in the example. Darius I've been trying the simplehttpserver and found a problem, but I have no idea what is goiing on. When I request a page, everything works fine, but when I try to request a non exist

[fpc-pascal] Quitting simplehttpserver

2011-08-10 Thread dhkblaszyk
ZeelandNet Webmail I've been trying the simplehttpserver and found a problem, but I have no idea what is goiing on. When I request a page, everything works fine, but when I try to request a non existing page and then go back to the existing page, the server quits. I have tried GDB, but I get

Re: [fpc-pascal] Platform independent alternatives

2011-06-23 Thread dhkblaszyk
On Thu, 23 Jun 2011 15:38:18 -0300, Flávio Etrusco wrote: On Thu, Jun 23, 2011 at 3:18 PM, wrote: Hi, I'm porting an app from Delphi to Lazarus when I came across a couple of functions from the windows unit. Can anyone help me finding the platform independent alternatives? TerminateThrea

[fpc-pascal] Platform independent alternatives

2011-06-23 Thread dhkblaszyk
ZeelandNet Webmail Hi, I'm porting an app from Delphi to Lazarus when I came across a couple of functions from the windows unit. Can anyone help me finding the platform independent alternatives? TerminateThread WaitForSingleObject CloseHandle TIA, Darius __

Re: [fpc-pascal] Re: better understanding of fpdoc

2011-05-20 Thread dhkblaszyk
3. How can I "compile" fpDoc using fppkg ? no idea. fppkg does not compile anything, fpmake does. See: http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg20238.html Though the report is not closed, the patch was comitted. Darius ___ fp

Re: Re: [fpc-pascal] accessing files from a function

2011-05-16 Thread dhkblaszyk
On Mon, 16 May 2011 10:28:19 +, johnelee1...@googlemail.com wrote: > thanks all - btw it wasn't the real code just an example I made up , the while loop wasn't needed- mistake! > >But the q still remains - having three functions would still give the problem I have now- that when doing a f

[fpc-pascal] Message methods

2011-04-19 Thread dhkblaszyk
ZeelandNet Webmail Hi, I'm trying to understand how message methods work in FPC. For this I created a simple app that shows a message. I also created a second (identical form) and I expected that all message methods related to MY_MESSAGE would be executed when I pressed either one or the othe

Re: [fpc-pascal] Font reading library

2011-04-12 Thread dhkblaszyk
On Tue, 12 Apr 2011 13:33:35 +0200, Helmut Hartl wrote: (Have a look at : http://www.freetype.org/freetype1/index.html, and the name of the authors ...) What's special with the name of the authors nothing - but a name compare should have revealed the strong indication that fornix has nothing

[fpc-pascal] Problems with GetMem

2011-04-09 Thread dhkblaszyk
ZeelandNet Webmail I get strange errors when using GetMem. In my app I keep on allocating and freeing memory in a variable. At a certain moment I do keep getting a SIGSEGV on the GetMem call when trying to allocate exactly 128bytes. However allocating other sizes seems to work just fine. Is

Re: [fpc-pascal] Font reading library

2011-04-01 Thread dhkblaszyk
On Fri, 1 Apr 2011 18:44:02 +0200 (CEST), Michael Van Canneyt wrote: On Fri, 1 Apr 2011, Darius Blaszyk wrote: As it happens, I stumbled across this one just now. Supposedly this is a native freetype implementation. I did not check it out yet, so if you get to it, please let me know how it wo

Re: [fpc-pascal] fpGUI powered by OpenGL

2010-12-20 Thread dhkblaszyk
But why is it not possible to integrate this with the regular fpGUI ? Can you explain in a couple of sentences ? Can't remember having said that it was impossible with the current approach. In fact it is perfectly doable. However (free)glut and opengl are already available on a large number of

Re: [fpc-pascal] Re: fpGUI powered by OpenGL

2010-12-20 Thread dhkblaszyk
On Mon, 20 Dec 2010 04:51:52 -0800 (PST), leledumbo wrote: Nice :) We could benefit from hardware accelerated OpenGL graphics with this. Have you implemented all the required low level backend? No not yet. I have only done the absolute minimum sofar. Yesterday I got u bunch of widgets runni

Re: [fpc-pascal] Unexpected duplicate identifiers

2008-12-22 Thread dhkblaszyk
> I've got a class that looks in part like this: > > TTextStore= CLASS(TStringList) > PRIVATE >PROCEDURE NeverSort(sort: BOOLEAN); > PUBLIC >FUNCTION HereDocument(CONST name: STRING; VAR strings: > TStringList): BOOLEAN; >PRO

Re: [fpc-pascal] streaming file from zip into my app

2007-11-30 Thread dhkblaszyk
> What de- and encoding is it, are you talking of character sets or > encryption? I was referring to compression. It should be trivial to implement, but I never got around it. So if you have interest and want to patch it please do, I will apply it. Darius

Re: [fpc-pascal] Capture HeadTrace output to file?

2007-11-30 Thread dhkblaszyk
> [ Charset ISO-8859-1 unsupported, converting... ] >> Hi, >> >> If I compile a project the -gh (Heaptrc unit), how to I capture the >> output generated when I quite the application to a file? >> >> >> I tried the normal: $./text > out.log >> >> But that doesn't work... the out.log is empty. > >

Re: [fpc-pascal] streaming file from zip into my app

2007-11-30 Thread dhkblaszyk
> Hi, > > I'd like to unzip one file from a zip archive and use it directly as > input for something else (sax or self written parser). > > Since the unzip package form the "extra" dir only writes to disc files: > > Is there any alternative source for writing from zip to a stream instead > of a fil

Re: [fpc-pascal] streaming file from zip into my app

2007-11-30 Thread dhkblaszyk
> Hi, > > I'd like to unzip one file from a zip archive and use it directly as > input for something else (sax or self written parser). > > Since the unzip package form the "extra" dir only writes to disc files: > > Is there any alternative source for writing from zip to a stream instead > of a fil

Re: [fpc-pascal] Duplicating palette of TFPCustomImage

2007-11-01 Thread dhkblaszyk
I found the problem. When using Merge the new palette colors are appended and with Build the new palette colors are in order of appearance in the image, which is total nonsense imho. Anyway I've implemented a Copy function, that makes an exact copy of a supplied palette. Will submit a patch for it

[fpc-pascal] Duplicating palette of TFPCustomImage

2007-11-01 Thread dhkblaszyk
Hi, I'm entering unknown territories with TFPCustomImage. What I would like to do is, to duplicate the palette of a loaded image to a newly created image in memory. Something like: NewImg := TFPMemoryImage.Create(OrgImg.Width, OrgImg.Height); NewImg.Palette.Build(OrgImg); I also tried NewImg.Pa

Re: [fpc-pascal] What does this warning mean?

2007-09-12 Thread dhkblaszyk
> Hi All, > > "drawing.pp(19,42) Warning: Constructing a class "TFPImageCanvas" with > abstract methods". > Thanks! > jk For more information: http://delphibasics.co.uk/RTL.asp?Name=Abstract Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepasc

Re: [fpc-pascal] Unknown usage of function FixPath

2007-08-14 Thread dhkblaszyk
>> Maybe we can make a TCustomInstaller and TInstaller where the TInstaller >> will default to install a >> FPC package (=units) in the default location so the units work >> out-of-the-box for fppkg and fpc. >> The TCustomInstaller can be the base for a complete custom installation >> of independen

Re: [fpc-pascal] Unknown usage of function FixPath

2007-08-14 Thread dhkblaszyk
>> 1) why is the colon converted to a slash which yields invalid paths (at >> least >> on windows) >> 2) although fpmake initially was developed to be a make tool for FPC, it >> can >> (and will be) used for other projects. Therefore I would propose not to >> initialize FBaseInstallDir with the FPC

Re: [fpc-pascal] Inconsistencies in fpmake?

2007-08-13 Thread dhkblaszyk
> > > On Mon, 13 Aug 2007, [EMAIL PROTECTED] wrote: > >> >> I was doing some tests with fpmake and came across what appears to be >> an >> >> inconsistency. >> >> >> >> When fpmaking a program a units/cpu-os is created but the commandline >> >> parameters for FPC are "-FE." which causes the tool an

Re: [fpc-pascal] Inconsistencies in fpmake?

2007-08-13 Thread dhkblaszyk
>> I was doing some tests with fpmake and came across what appears to be an >> inconsistency. >> >> When fpmaking a program a units/cpu-os is created but the commandline >> parameters for FPC are "-FE." which causes the tool and possible other >> units to be placed in the directory where the progra

[fpc-pascal] strange "with" usage

2007-06-08 Thread dhkblaszyk
In a delphi app I came across the following syntax; with PropInfo^, PropType^^ do Which results in a "Error: Illegal qualifier". Has anyone an idea of what is meant here and how to port that to FPC? I'm puzzled. Darius ___ fpc-pascal maillist -

Re: [fpc-pascal] fpcUnit todo list

2006-11-09 Thread dhkblaszyk
>> On 09/11/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: >>> First, I would prefer a patch to the fpcunit which makes the unit >>> itself >>> indenpendend from other stuff (xml) so it can be used in the fpc >>> test suite :) >> >> The xml used is the xmlwriter unit - part of FPC. Is this a prob

[fpc-pascal] zstream.pp strange dependency?

2006-09-21 Thread dhkblaszyk
I have encountered a strange phenomenon, and I would like to fix it, if it weren't for the fact that I have no idea why it appears. So what happened? When using the zstreams.pp unit in a sample project I get an error message "Fatal: Can't find unit FPReadPNG". I searched all sources to find out w

Re: [fpc-pascal] fpcUnit testing Exceptions

2006-07-14 Thread dhkblaszyk
Graeme, I would try and test this: AssertException('Failing on 3', EUnknownSlideType, TRunMethod(@si.SlideTypeDB)); Haven't been able to test though, but it's what comes to mind. Perhaps it helps. Darius > Hi, > > Is it possible to test the code below using the AssertException() > call? I am

Re: [fpc-pascal] Modify XML Document

2006-06-22 Thread dhkblaszyk
Felipe, Have a look at the lazdocfrm.pas file located in lazarus/ide. for a working example. Darius > Hello, > > I am trying to use the units XMLRead, XMLWrite, DOM to modify the > structure of a XML file. > > Reading the XML file is very easy and works very well, but I am lost > about how to m

Re: [fpc-pascal] Polymorphism question

2006-03-03 Thread dhkblaszyk
I made a typo which I didn't notice, thanks for the replies. > On Fri, 03 Mar 2006 04:52:36 -0300, <[EMAIL PROTECTED]> wrote: > >> (I sent this mail yesterday but somehow it didn't get trough, therefore >> a >> new try) >> >> I would like to declare a polymorph class. The class has several >> prop

[fpc-pascal] Polymorphism question

2006-03-03 Thread dhkblaszyk
(I sent this mail yesterday but somehow it didn't get trough, therefore a new try) I would like to declare a polymorph class. The class has several properties and it's the read and write specifiers that I want to be virtual abstract. So derived classes override the read and write specifiers. The p

Re: [fpc-pascal] Remote FreePascal compile service, feedback requested

2005-12-05 Thread dhkblaszyk
One thing I would like to add to the discussion is support for the LCL. Dunno if it was explicitly the puurpose to do that already, but I thought I should mention it anyway. Darius > We (still) use FreePascal quite a bit in our first/second-year education, > in particular, in , our Programming Ed

Re: [fpc-pascal] Path, Search Path and Source Path

2005-12-04 Thread dhkblaszyk
Please switch for Lazarus specific questions to the lazarus mailinglist. About your question, check Environment | Environment options. The tab files contains all paths to your FPC directory. Darius > Hi, > > I have just compiled both FPC and Lazarus from SVN > and except for one very miniscule g

[fpc-pascal] Download file

2005-11-17 Thread dhkblaszyk
Question: I would like to download a file via HTTP, how can I achieve that in a platform independent way? What components to use and is there some code suited for dummy's available. Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] ShellExecute alternative

2005-11-12 Thread dhkblaszyk
I'm using ShellExecute in my application on numerous occasions. What is considered to be an OS independent alternative here?? Or do I ifdef it for each platform?? Darius Blaszijk ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

[fpc-pascal] strange compiler message

2005-11-07 Thread dhkblaszyk
Hi, When I want to compile a unit, I get a strange error message: Warning: Comment level 2 found The lines involved do contain comments that use brackets {}. Anybody any ideas what might be causing the compiler messages?? Darius Blaszijk ___ fpc-pas

[fpc-pascal] question on pointers

2005-11-06 Thread dhkblaszyk
I have a question on copying data to a pointer array. I'm not that into pointers, so I can't figure out what I'm missing here. I have included sample code below, and I get a SF on the line where I assign the data to the pointer. Is it perhaps that I need to assign memory to the pointer data?? Dari

Re: [fpc-pascal] Question on method pointers

2005-11-05 Thread dhkblaszyk
It works, thanks > > On 05 Nov 2005, at 20:21, [EMAIL PROTECTED] wrote: > >> I have a variable that is of this type and I want to assign the >> result of >> this function to a variable of type extended. I was thinking to do >> it like >> this; >> >> var MyFuncVar: TMyFunc; >> >> MyResult := M

[fpc-pascal] Question on method pointers

2005-11-05 Thread dhkblaszyk
I have a question regarding the assignment of the result of a function. The function is declared as such: TMyFunc = function : extended of Object; I have a variable that is of this type and I want to assign the result of this function to a variable of type extended. I was thinking to do it like t

Re: [fpc-pascal] FPDoc question

2005-09-26 Thread dhkblaszyk
> If you look at cvsmodule fpcdoc, there is a baseunix.xml I see now thanks. It apears that example is also a non documented tag, next to topic. Is there some way to find more information other that look in the source of fpdoc?? Darius ___ fpc-pascal m

[fpc-pascal] FPDoc question

2005-09-25 Thread dhkblaszyk
I have two questions regarding FPDoc; - can I find somewhere a description on topic tags?? I have searched the reference manual, but it seems it's not documented there. - how can I add examples to my documentation. I understand how to add formatted code, but what I mean is shown here: http://commu

[fpc-pascal] Extending FPDoc

2005-09-16 Thread dhkblaszyk
Hi there, For Lazarus I have made a tool called LazDoc that attempts to integrate a documentation editing tool with the IDE. Depending on the position of the cursor on the source editor, the appropriate documentation tag is searched and then selected in the editor. Anyway, while I was working on t

[fpc-pascal] Extending FPDoc

2005-09-16 Thread dhkblaszyk
Hi there, For Lazarus I have made a tool called LazDoc that attempts to integrate a documentation editing tool with the IDE. Depending on the position of the cursor on the source editor, the appropriate documentation tag is searched and then selected in the editor. Anyway, while I was working on t

[fpc-pascal] XMLcfg question

2005-09-06 Thread dhkblaszyk
I'm working with XMLcfg to do read and write to XML files. I want to extract data from the following XML file where element name is "second", how can I achieve that?? Darius second description second description