[fpc-pascal] Generic threadlist

2022-12-30 Thread Andrew Haines via fpc-pascal
Hi, I made a generic threadlist for the unit fgl. I'm wondering what is the opinion on stuff like that. Specifically it's T: TObject and not for "pointers." I had made both TFPGThreadList and TFPGObjectThreadList and I thought afterwards only TFPGThreadList is needed and it should hold

Re: [fpc-pascal] fcl-web websocket

2022-12-27 Thread Andrew Haines via fpc-pascal
On 12/27/22 3:39 AM, Michael Van Canneyt via fpc-pascal wrote: Anyway: I have applied the patch, and added your example with some minor modifications. Thank you for both ! Michael. ___ Awesome thanks very much! Andrew

Re: [fpc-pascal] fcl-web websocket

2022-12-26 Thread Andrew Haines via fpc-pascal
On 12/26/22 8:48 AM, Michael Van Canneyt via fpc-pascal wrote: Please make a version of your program that does not use the LCL. Then I'll test that too. 2 reasons for this request: - I don't have a working version of Lazarus with FPC trunk. - I want to exclude the problems of dealing with

Re: [fpc-pascal] fcl-web websocket

2022-12-26 Thread Andrew Haines via fpc-pascal
On 12/26/22 8:02 AM, Michael Van Canneyt via fpc-pascal wrote: I fixed the -p/--port option. I could reproduce the broken behaviour in the fcl-web example. As I thought, a change in the fcl-net ssockets unit is the cause of the behaviour. I fixed it. Please check if your example now also

Re: [fpc-pascal] fcl-web websocket

2022-12-25 Thread Andrew Haines via fpc-pascal
On 12/25/22 6:06 PM, Michael Van Canneyt via fpc-pascal wrote: Does the sample chat client/program work for you ? See below When I have a moment, I'll look at your test program. Thank you Michael. I'm not sure, maybe. It seems like the clients are not receiving messages. Also,

[fpc-pascal] fcl-web websocket

2022-12-24 Thread Andrew Haines via fpc-pascal
as a client. I may not have understood that fully. Regards, Andrew Haines <> ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Unrelated type helpers with the same members? Implement an interface with a type helper?

2022-12-23 Thread Andrew Haines via fpc-pascal
On 12/23/22 5:24 AM, Ondrej Pokorny via fpc-pascal wrote: This may be simpler: [TEnumAttr(['YES', 'NO', 'COULD_BE'])]   TMyEnum = (meYes, meNo, meCouldBe); TEnumAttr = class(TCustomAttribute)   protected     FValues: TStringArray;     FTypeName: String;   public     class function

Re: [fpc-pascal] Unrelated type helpers with the same members? Implement an interface with a type helper?

2022-12-22 Thread Andrew Haines via fpc-pascal
;     FTypeName: String;   public     class function FromType(ATypeInfo: PTypeInfo): TEnumAttr;     constructor Create(Val1: String);     constructor Create(Val1, Val2: String); etc Maybe this can help someone else with a similar use case. Regards, Andrew Haines On 12/22/22 8:40 PM, Andrew Haines via

[fpc-pascal] Unrelated type helpers with the same members? Implement an interface with a type helper?

2022-12-22 Thread Andrew Haines via fpc-pascal
Hi what I want to do is similar to this question here: https://en.delphipraxis.net/topic/423-rtti-determine-record-helper-type-for-a-base-type/ I am going to create multiple type helpers for enums and I would like to look up the helper and use common methods AsString AsOrdinal to get/set the

Re: [fpc-pascal] Type helper for JNI pointers

2018-08-22 Thread Andrew Haines via fpc-pascal
On 08/12/2018 07:42 AM, Benito van der Zander wrote: But this does not work, because fpc thinks jclass and jobject are the same type, so there is only one type helper for both of the types allowed. Because it is declared as type jobject=pointer; jclass=jobject; What can we do

Re: [fpc-pascal] SVN RSS

2017-07-25 Thread Andrew Haines via fpc-pascal
. Hello, Will it be re-enabled ? If you only want to see commits in a feed you can use this link to the unofficial github mirror: https://github.com/graemeg/freepascal/commits/master.atom It's synced every 15 minutes. Regards, Andrew Haines

Re: [fpc-pascal] Get value of PPChar ?

2017-04-16 Thread Andrew Haines via fpc-pascal
On 04/16/2017 10:58 AM, fredvs wrote: K, the function seems to work because the result = 0 (no error). But how to retrieve the data icy_meta (PPChar) ? var theicytag : PPChar; resu : integer; ... resu := mpg123_icy(ahandle, theicytag); if resu = 0 then writeln(theicytag^); --> raise exception

Re: [fpc-pascal] SpVoice.GetVoices returned exception class EOleSysError

2017-04-11 Thread Andrew Haines via fpc-pascal
the Speechlib_tlb unit. But its been a long time now. I can email you directly the file if you want. Regards, Andrew Haines uses OleServer, ComObj, Speechlib_tlb, Windows, Variants, ActiveX, ... var SpeechVoice: ISpeechVoice; Voice: TSpVoice; Voices: ISpeechObjectTokens; ToSpeak

Re: [fpc-pascal] How to use pipes ?

2017-02-01 Thread Andrew Haines
On 02/01/2017 08:52 AM, fredvs wrote: Hello. Some more explanation. With that code, only +- 10 loops are working, after, no more Ouframes... why ? Where is it stopping? It may be that you are asking for more bytes than are available and it is blocking waiting for more data. Or the opposite

Re: [fpc-pascal] Interface performance

2016-11-12 Thread Andrew Haines
it to github if you want to check it out. It uses a list of IMyInterface. https://github.com/andrewd207/interfacetest Or as a zip: https://github.com/andrewd207/interfacetest/archive/master.zip Regards, Andrew Haines ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] picture preview

2016-11-08 Thread Andrew Haines
units for different image formats. FPReadPNG, FPWritePNG FPReadBMP, FPWriteBMP etc. Regards, Andrew Haines program imageresize; {$mode objfpc} uses Classes, FPimage, FPImgCanv, FPCanvas, FPReadPNG, FPWritePNG; function ResizeImage(ASrcImage: TFPCustomImage; ANewWidth, ANewHeight: Integer

Re: [fpc-pascal] How to sent totally custom parameters to the linker ?

2016-09-05 Thread Andrew Haines
On 09/05/2016 07:27 PM, fredvs wrote: Hello. Is it possible to sent new-other parameters to the linker ? Without the use of *-k*, fpc sent this to the linker: [5.227] (9017) Using util /usr/bin/ld [5.227] Executing "/usr/bin/ld" with command line "-b elf64-x86-64 -m elf_x86_64

Re: [fpc-pascal] Where is fpc finding link directories?

2015-12-11 Thread Andrew Haines
On 12/11/2015 09:50 AM, Anthony Walter wrote: I am having a problem with fpc picking up linking directories on my Raspberry Pi. I have a this lib: /opt/vc/lib/libGLESv2.so I get this linker error during compile: /usr/lib/ld: cannot lind -lGLESv2 But when I compile adding -Fl/opt/vc/lib

Re: [fpc-pascal] Getting build ID

2015-10-25 Thread Andrew Haines
On 10/25/2015 03:25 PM, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Andrew Haines wrote: On 10/22/2015 08:08 PM, Mark Morgan Lloyd wrote: If a program is linked with GNU ld using the --build-id option, how can it retrieve the value at runtime? I've never done it but maybe a place

Re: [fpc-pascal] Getting build ID

2015-10-24 Thread Andrew Haines
the .note.gnu.build-id section. Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] STM32F407?

2015-10-12 Thread Andrew Haines
gt; >Michael > >Am 12.10.15 um 03:31 schrieb Andrew Haines: >> Hi, >> >> I've seen on the list that the STM32F429 has some support in fpc now! >> >> A couple of years ago I got a STM32F407 discovery board. Is the code >>

[fpc-pascal] STM32F407?

2015-10-11 Thread Andrew Haines
Hi, I've seen on the list that the STM32F429 has some support in fpc now! A couple of years ago I got a STM32F407 discovery board. Is the code for *29 compatible with *07? Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-25 Thread Andrew Haines
On 03/25/2015 08:23 AM, fredvs wrote: Hello. Sorry to sorry to bother you with that file descriptors again... ;-( There are some answers there on mpg123 forum. They explain that simple stdin/stdout file descriptors would work. Of course all what they explained is in C ;-( OK, but how can i

[fpc-pascal] Helpers for objects (not classes)

2015-03-23 Thread Andrew Haines
Hi, Do the new class helpers support objects? If this is not implemented how much work (1-10) is it to do? Thanks, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread Andrew Haines
Check for writeln's in the htmlthread unit you added. On March 21, 2015 6:23:44 PM EDT, fredvs fi...@hotmail.com wrote: What do you do with the inHandle ? Michael. It is used by mp123 mp3-decoder library. =function mpg123_open_fd(mph: Tmpg123_handle; fd: integer); fp (file descriptor) :=

Re: [fpc-pascal] Internet audio streaming ?

2015-03-19 Thread Andrew Haines
On 03/19/2015 09:26 AM, fredvs wrote: PS:Andrew has done a excellent work with his PulseAudio wrapper = https://github.com/andrewd207/fpc-pulseaudio Only the pulse simple bindings are complete. I'm ~70% done the full pulse bindings. Andrew ___

Re: [fpc-pascal] License terms for FastHTMLParser

2015-03-09 Thread Andrew Haines
-delphi.zip) has a permissive license, while the file in the FPC source tree has the GPL pasted at the top. I also see that Andrew Haines is listed as the copyright holder in the FPC source, while the original file listed Jazarsoft. I know Andrew developed the chm support in FPC/Lazarus

Re: [fpc-pascal] Is there a CSS parser in FPC?

2015-03-05 Thread Andrew Haines
/lhelp and wasn't part of the original ipro component so it's mostly separated from ipro. http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/turbopower_ipro/ipcss.inc?view=markuprevision=44873root=lazarus Regards, Andrew Haines ___ fpc-pascal

Re: [fpc-pascal] Fast HTML Parser

2014-08-06 Thread Andrew Haines
:= GetHTMLValues('sel_x'); R There is the unit fasthtmlparser included with fpc in the packages/chm folder. It is pretty basic and just has callbacks for tags and text. I don't think it's smart enough to tell you of the name=sel_x part of your tag. Maybe it can be improved. Regards, Andrew Haines

[fpc-pascal] Fw: [5]

2014-05-08 Thread Andrew Haines
Hey! http://netchannel.hu/-hi.friend?odyhunjta=4841446fitymema=653709 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Fw:

2014-05-08 Thread Andrew Haines
Hey! http://boerbalink.nl/-hi.friend?kusjfib=3171095ravarydo=969545 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Andrew Haines
): SLresult; cdecl; function GetDuration(msec: PSLmillisecond): SLresult; cdecl; .. end; So now two questions: Is corba the interface type I need? Am I wrong to exclude the self parameter from the interface translation? Thanks, Andrew Haines ___ fpc

Re: [fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Andrew Haines
On 01/28/2014 12:26 PM, Jonas Maebe wrote: On 28 Jan 2014, at 18:13, Andrew Haines wrote: I want to use c interfaces exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. If they are exposed as structs, you should translate them

Re: [fpc-pascal] Re: ppcjvm linking jar

2013-04-22 Thread Andrew Haines
On 04/22/13 18:39, Andrew Haines wrote: On 04/22/13 05:22, leledumbo wrote: Just create jar file the usual way. However, you'll need to give FPC-JVM RTL classes as well (those in org.freepascal namespace) Alright I've figured it out: jar cfm trange1.jar manifest.txt trange1.class -C

[fpc-pascal] ppcjvm linking jar

2013-04-21 Thread Andrew Haines
file. How? My google-foo has failed me. Thanks, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Wiki search broken?

2012-08-27 Thread Andrew Haines
On 08/27/12 00:27, Vincent Snijders wrote: 2012/8/27 Andrew Haines andrewd...@aol.com: Hi, Search seems to be broken for me on the wiki What was your search word? Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] Wiki search broken?

2012-08-26 Thread Andrew Haines
for encoding UTF8: 0xc080 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by client_encoding. There's a bunch more raw html stuff as well. Regards, Andrew Haines ___ fpc-pascal

[fpc-pascal] virtual class var?

2012-08-06 Thread Andrew Haines
Hi, is it possible to have a virtual class variable? I want to have a pointer available per class that can be a different value. Something like this: TA = class class var Foo: TObject; virtual; end; TB = class(TA) class var Foo: TSpecialObject; override; end; I have in

Re: [fpc-pascal] virtual class var?

2012-08-06 Thread Andrew Haines
My current idea for a solution is here: http://pastebin.com/P3JsDQ03 Can anyone think of something with less code? I guess I could save a little if I skip the property and directly use GetVMT and SetVMT. Regards, Andrew ___ fpc-pascal maillist -

Re: [fpc-pascal] virtual class var?

2012-08-06 Thread Andrew Haines
On 08/06/12 23:02, Paul Ishenin wrote: Class variable is stored the same way as a regular variable and has the only difference is that it can be accessible with the class name prefix. The thing you need requires different implementation - something like storing a virtual class variable in

Re: [fpc-pascal] virtual class var?

2012-08-06 Thread Andrew Haines
Ahhh ok I understand now. , Thank you. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Paul Ishenin paul.ishe...@gmail.com wrote: 07.08.12, 11:24, Andrew Haines wrote: What is the current implementation? I would guess that class vars are stored in the vmt already

Re: [fpc-pascal] Converting big-endian signed 16bits values to fpc integer

2012-04-15 Thread Andrew Haines
On 04/15/12 18:38, Giuliano Colla wrote: I'm dealing with a large number of data coming from an external device. They are big-endian 16 bits signed numbers, which must be converted to integer and to real to perform calculations. Besides the obvious solutions of treating them as isolated

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-03-03 Thread Andrew Haines
On 02/23/12 16:23, Mattias Gaertner wrote: Now it stops earlier on my files: Exception at 00473837: ERangeError: Range check error. Backtrace does not help much: #0 0x004120d0 in fpc_raiseexception () #1 0x0045fc38 in

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-23 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: On Wed, 22 Feb 2012 12:06:08 -0500 I tried with only 500 files and it worked. That means I get a help and it finds files. But choosing a page just shows black. And after that any page is black. Note: If I don't use the search but the Index, then I

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-23 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: And I get an exception in: #5 0x005552aa in CHILDISFULL (this=0x415906, AWORD=0x409d0c \311\303f\220H\203\354(H\211\\$\bL\211d$\020L\211l$\030L\211t$ I\211\376I\211\365f\211\323L\211\350H\203, incomplete sequence \370,

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-22 Thread Andrew Haines
On 02/22/12 18:01, Mattias Gaertner wrote: Yes, this helped. Now the files are done in under a minute and with only 500MB. But then mem consumption goes up again. Then it goes down to 5GB and seems to be stuck in an endless loop. I cancelled it. I tried with only 500 files and it

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Andrew Haines
On 02/21/2012 03:18 AM, Mattias Gaertner wrote: On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Hainesandrewd...@aol.com wrote: 30% bigger than the size of the uncompressed html files?! Yes. does lazarus/docs/html/build_lcl_docs --outfmt chm work for you? I get a 8mb lcl.chm file. if --outfmt

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Andrew Haines
On 02/21/12 17:40, Mattias Gaertner wrote: On Tue, 21 Feb 2012 16:08:43 +0100 (CET) Mattias Gaertner nc-gaert...@netcologne.de wrote: Andrew Haines andrewd...@aol.com hat am 21. Februar 2012 um 15:24 geschrieben: [...] Your chm file should not be bigger than the the uncompressed files

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Andrew Haines
On 02/20/12 18:00, Mattias Gaertner wrote: Hi, I'm using TChmWriter to pack some html files into a chm file. The index works. I don't have a TOC. Now I want a full text search. I set Writer.FullTextSearch to true, it takes a long time to process and the resulting chm is 30% bigger than

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Andrew Haines
On 02/20/12 18:00, Mattias Gaertner wrote: Hi, I'm using TChmWriter to pack some html files into a chm file. The index works. I don't have a TOC. Now I want a full text search. I set Writer.FullTextSearch to true, it takes a long time to process and the resulting chm is 30% bigger than

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Andrew Haines
On 02/20/12 20:51, Andrew Haines wrote: I added an lcl program to the ccr in applications/chmmaker that I wrote Nevermind I had forgotten it's in lazarus/tools anyway. :) Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Andrew Haines
and the toc, index and search were all working. Can you PM me the chm(s) that are not working for you? Also what version of fpc are you using for which platform? Thanks, Andrew Haines P.S. Sorry for the storm of emails example.chm Description: application/chm

[fpc-pascal] AIX

2012-02-10 Thread Andrew Haines
Hi, can freepascal compile programs for AIX PowerPc? I see hints of AIX when I search google but nothing that directly says it will work. Thanks Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-30 Thread Andrew Haines
On 01/30/12 02:19, Graeme Geldenhuys wrote: On 29 January 2012 16:31, Jonas Maebe wrote: GTK offers a plain C interface. QT only offers a C++ interface. FPC does not (fully) support directly calling external C++ libraries. LibQT4Pas offers a plain C interface to QT for use by FPC. Can

Re: [fpc-pascal] Why do string indices start at 1, but array indices start at 0?

2011-10-20 Thread Andrew Haines
On 10/20/11 17:43, Andrew Pennebaker wrote: It's inconsistent and ripe for bugs. Cheers, Andrew Pennebaker www.yellosoft.us http://www.yellosoft.us ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Andrew Haines
On 09/08/11 19:40, brian wrote: What are the commands? mpg321 -q -w tempfile.wav inputfile.mp3 oggenc -Q --output=outputfile.ogg tempfile.wav It makes no difference whether or not I use a full pathname for mpg321 and oggenc, and all the other files are in the current working

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Andrew Haines
On 09/08/11 19:52, Andrew Haines wrote: You can try something like oggenc -Q '--output=outputfile.ogg' tempfile.wav to see if that works or if you use TProcess directly I understand that options have been added recently to overcome the problem quotes can have on the arguments. or consider

[fpc-pascal] New Dispose and FreeMem and objects

2011-08-26 Thread Andrew Haines
Dispose(Obj) ? Maybe Dispose can call a destructor and that is the difference between Dispose and FreeMem? Thanks, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] New Dispose and FreeMem and objects

2011-08-26 Thread Andrew Haines
On 08/26/11 17:14, Jonas Maebe wrote: On 26 Aug 2011, at 22:39, Andrew Haines wrote: Maybe Dispose can call a destructor and that is the difference between Dispose and FreeMem? The other difference is that dispose() will finalize any reference counted fields, while freemem won't

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit att asm

2011-03-10 Thread Andrew Haines
On 03/09/11 14:18, Thomas Schatzl wrote: On Wed, 09 Mar 2011 13:23:55 -0500, Andrew Haines wrote: On 03/09/11 12:26, Thomas Schatzl wrote: FYL2X calculates the log to the base 2 of tmp, not log to the base e of tmp? Just a guess. I originally used log2(Tmp) but switched to ln to check

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit att asm

2011-03-09 Thread Andrew Haines
On 03/08/11 19:58, Andrew Haines wrote: Hi, I'm trying to convert the following 32bit asm to pascal so it's portable. Also to 64bit asm. It's from ACS audio component suite. What am I doing wrong? For anyone who's interested I fixed the 64bit assembly version which is good enough

Re: [fpc-pascal] Converting 32bit intel asm to Pascal or 64bit att asm

2011-03-09 Thread Andrew Haines
On 03/09/11 12:26, Thomas Schatzl wrote: Hi, On Wed, 09 Mar 2011 11:58:08 -0500, Andrew Haines wrote: if Tmp Im then begin //Tmp := ln(Tmp)*LogBase+Shift; // same as the following asm proc? asm FLD LogBase; FLD Tmp; FYL2X

[fpc-pascal] Converting 32bit intel asm to Pascal or 64bit att asm

2011-03-08 Thread Andrew Haines
Hi, I'm trying to convert the following 32bit asm to pascal so it's portable. Also to 64bit asm. It's from ACS audio component suite. What am I doing wrong? I tested my Pascal code with linux 32bit but the output differs from the 32bit asm. In 64bit linux it differs further but this could be

Re: [fpc-pascal] Ansistrings under Android

2011-02-22 Thread Andrew Haines
it would especially happen when a character alone was accessed i.e. PChar(Foo)[x]. It could be the problem. Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] assign code to a method

2011-02-18 Thread Andrew Haines
TrampolineManager.AllocateBlock; Result := GenerateCode(args); end; end; end; Hope this helps :) Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Permuted index (KWIC) of function descriptions

2011-01-26 Thread Andrew Haines
becomes do, something, cool ? Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Basic instructions for quick start of free basic setup with subversion.

2011-01-22 Thread Andrew Haines
On 01/22/11 14:31, Peter Eric Williams wrote: Hi pascal list, Please excuse me asking such a basic question, but I'm new to this list. I require the basic instructions for quick start with subversion for all of the free pascal compiler using subversion. I am using Windows 7 Ultimate and

Re: [fpc-pascal] Skipping an the inherited of an ancestor

2011-01-15 Thread Andrew Haines
On 01/14/11 14:38, Torsten Bonde Christiansen wrote: Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when calling inherited on a method? A small example of what i'm trying to achieve below (and don't mind the incomplete TB class implementation). Kind

Re: [fpc-pascal] Skipping an the inherited of an ancestor

2011-01-15 Thread Andrew Haines
On 01/15/11 10:30, Andrew Haines wrote: On 01/14/11 14:38, Torsten Bonde Christiansen wrote: Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when calling inherited on a method? I *think* I've done this before this way but test it to make sure it works

Re: [fpc-pascal] Skipping an the inherited of an ancestor

2011-01-15 Thread Andrew Haines
On 01/15/11 11:01, Andrew Haines wrote: On 01/15/11 10:30, Andrew Haines wrote: On 01/14/11 14:38, Torsten Bonde Christiansen wrote: Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when calling inherited on a method? I *think* I've done this before this way

[fpc-pascal] CDDB unit

2010-12-18 Thread Andrew Haines
Hi, Does anyone have the cddb unit that was on the wiki once upon a time? http://wiki.lazarus.freepascal.org/CDDB The link on that page is now dead. Thanks, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: FPC programs in Android without JNI

2010-12-17 Thread Andrew Haines
On 12/16/10 12:23, Felipe Monteiro de Carvalho wrote: Hello, It might be interesting to know that I managed to build a bridge which exports the Java API and the Android API to Free Pascal. Check this hello world code and screenshot:

Re: [fpc-pascal] Re: FPC programs in Android without JNI

2010-12-17 Thread Andrew Haines
On 12/17/10 15:46, Felipe Monteiro de Carvalho wrote: I a ?? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Looking for SDL_opengl header

2010-12-07 Thread Andrew Haines
On 12/07/10 18:23, Darius Blaszyk wrote: Has anyone ever converted the SDL_opengl header to FPC? Couldn't find it in the repository, but perhaps someone knows if it is part of another project. Is there one included with jedi sdl?? Regards, Andrew Haines

Re: [fpc-pascal] Using C functions

2009-11-22 Thread Andrew Haines
Ivo Steinmann wrote: Thanks, I thought so. I am considering to write a C library (cdecl) to wrap the calls to the C library(fastcall), but it doesn't feel right. You can compile your c wrapper and link the .o file

Re: [fpc-pascal] sysutils.beep doesn't beep under Linux?

2009-11-21 Thread Andrew Haines
Michael Van Canneyt wrote: By that rationale: no beep() on linux. Can beep be made a procvar? Regards, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Porting linux to pascal, would it be, possible ?

2008-12-07 Thread Andrew Haines
Graeme Geldenhuys wrote: On Fri, Dec 5, 2008 at 5:55 PM, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: If you want to do some large work to increase the use of FPC I would recommend creating a Window Manager instead, probably with fpgui. How far did you guys get with the 'fpwm'

Re: [fpc-pascal] Tiburon and unicode rtl

2008-07-01 Thread Andrew Haines
Felipe Monteiro de Carvalho wrote: Hello, Ok, so far we have a couple of unicode rtl proposals. Will FPC remain compatible with code from Tiburon? If yes, then we need a set of utf-16 RTL routines, even if another solution is chosen. Yes, surely the utf-16 routines could just call the

[fpc-pascal] FPC on Palm

2008-06-03 Thread Andrew Haines
Hi, I tried to build a crosscompiler for palmos-arm and palmos-m68k but both failed to compile. Here's the results for m68k make[5]: Entering directory `/home/andrew/programming/fpc/rtl/palmos' /usr/bin/mkdir -p /home/andrew/programming/fpc/rtl/units/m68k-palmos make[5]: *** No rule to make

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-09 Thread Andrew Haines
Michael Van Canneyt wrote: On Fri, 7 Dec 2007, Andrew Haines wrote: PS you can have a peek at some chm's I made with fpdoc here: http://hainesservice.com/andrew/chms/ they are all crosslinked. With kchmviewer I get the following errors: An error occurred while loading ms-its:/home

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-09 Thread Andrew Haines
Andrew Haines wrote: Michael Van Canneyt wrote: On Fri, 7 Dec 2007, Andrew Haines wrote: PS you can have a peek at some chm's I made with fpdoc here: http://hainesservice.com/andrew/chms/ they are all crosslinked. With kchmviewer I get the following errors: An error occurred while loading

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Michael Van Canneyt wrote: On Fri, 7 Dec 2007, Andrew Haines wrote: Michael Van Canneyt wrote: On Fri, 7 Dec 2007, Andrew Haines wrote: PS you can have a peek at some chm's I made with fpdoc here: http://hainesservice.com/andrew/chms/ they are all crosslinked. With kchmviewer I get

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Michael Van Canneyt wrote: On Fri, 7 Dec 2007, Andrew Haines wrote: PS you can have a peek at some chm's I made with fpdoc here: http://hainesservice.com/andrew/chms/ they are all crosslinked. With kchmviewer I get the following errors: An error occurred while loading ms-its:/home

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Michael Van Canneyt wrote: How do I view this on a Linux KDE system ? you can use xchm or gnochm and I think there is a kde variant too, though I don't know it's name. Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Mattias Gaertner wrote: I downloaded them, installed kchmviewer 3.1 (ubuntu gutsy) and got: An error occurred while loading ms-its:/home/mattias/file:/home/mattias/pascal/docs/rtl.chm::/index.html: Could not read file ms-its:/home/mattias/file:/home/mattias/pascal/docs/rtl.chm::/index.html.

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-07 Thread Andrew Haines
Mattias Gaertner wrote: On Fri, 07 Dec 2007 09:43:57 -0500 Andrew Haines [EMAIL PROTECTED] wrote: Michael Van Canneyt wrote: On Fri, 7 Dec 2007, Andrew Haines wrote: Michael Van Canneyt wrote: On Fri, 7 Dec 2007, Andrew Haines wrote: PS you can have a peek at some chm's I made

Re: [fpc-pascal] can we have fpc's doc in chm format?

2007-12-06 Thread Andrew Haines
Andrew Haines wrote: Attached is a patch to add chm output to fpdoc. I edited Makefile.fpc to require the package chm. Also a patch for chmwriter.pas with some minor changes that were needed. Don't apply this patch. I have improved it a bit and now fpdoc (here) can autogenerate a TOC. Later

Re: [fpc-pascal] can we have fpc's doc in chm format? [Patch]

2007-12-06 Thread Andrew Haines
Michael Van Canneyt wrote: On Thu, 6 Dec 2007, Andrew Haines wrote: Andrew Haines wrote: Attached is a patch to add chm output to fpdoc. I edited Makefile.fpc to require the package chm. Also a patch for chmwriter.pas with some minor changes that were needed. Don't apply this patch. I

Re: [fpc-pascal] can we have fpc's doc in chm format?

2007-12-04 Thread Andrew Haines
, are the manuals written in rtf? why couldn't they be in a chm file? Regards, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] can we have fpc's doc in chm format?

2007-12-04 Thread Andrew Haines
Michael Van Canneyt wrote: On Sun, 2 Dec 2007, Bisma Jayadi wrote: Can we have fpc's doc in chm format? It's easier to navigate and search compare to other formats. :) The reference material: If you complete the chm backend of fpdoc, yes. Attached is a patch to add chm output to fpdoc.

Re: [fpc-pascal] Linux : Using SDL with GTK2 ?

2007-11-15 Thread Andrew Haines
Tom wrote: Hi, I'm desperately trying to build a application mixing GTK with SDL for *Linux*. I know that's not always recommended as it involves 2 listening loops but it should work. I found some *C* snippets/applications (eg making window hacks) but I'm unable to translate them into

Re: [fpc-pascal] How do I join the Lazarus list?

2007-07-03 Thread Andrew Haines
Tom York wrote: I cannot seem to find a way to join the mailing list. It's on this page: http://www.lazarus.freepascal.org/modules.php?op=modloadname=StaticPagefile=indexsURL=maill It's the link that says subscribe mailto:[EMAIL PROTECTED] Regards, Andrew

Re: [fpc-pascal] Re: html link extractor

2007-07-02 Thread Andrew Haines
L wrote: Andrew Haines wrote: Is there a unit somewhere that can extract links from html pages? I want to be able to recursively add pages to a chm archive. I created a program called GetLinks in a couple minutes: http://opensvn.csie.org/pspcgi/general-utilities/parser/html/demo

[fpc-pascal] html link extractor

2007-06-30 Thread Andrew Haines
Is there a unit somewhere that can extract links from html pages? I want to be able to recursively add pages to a chm archive. Thanks, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] html link extractor

2007-06-30 Thread Andrew Haines
Andrew Haines wrote: Is there a unit somewhere that can extract links from html pages? I want to be able to recursively add pages to a chm archive. I think this from l505 will work: http://lists.freepascal.org/lists/fpc-announce/2007-February/000536.html but are there any units that come

Re: [fpc-pascal] Class Memory Table Size

2007-05-09 Thread Andrew Haines
Daniël Mantione wrote: Op Tue, 8 May 2007, schreef Andrew Haines: The reason for this is, I want to trick gtk into thinking that a TObject is really a GObject. This is where the TypeID for GType's are stored. I know this won't work for most GObject's, but I am only implementing

[fpc-pascal] Class Memory Table Size

2007-05-07 Thread Andrew Haines
which is looked up by the TypeID, so that is all I need. I've tested this and it is working. But what horrible things can happen? Thanks, Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] [SYSTEM]: How detecting if run as root ?

2006-10-11 Thread Andrew Haines
TOUZEAU DAVID wrote: Dear I need to detect if the program is executed as root privileges on Linux system. Did somebody had developped a such function ?? Best regards. Well you can try GetEnv('USER') = 'root'; or GetEnv('UID') = '0'; but there may be better ways to check this. Andrew

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Andrew Haines
; for I := 0 to GetEnvironmentVariableCount-1 do begin fName := GetEnvironmentString(I); Result.Add(fName); end; end; HTH Andrew Haines ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-pascal] No Hello World after updating Xcode to 2.1

2005-09-20 Thread Andrew Haines
Lance Boyle wrote: if [ $BUILD_STYLE = Development ]; then echo \Build Style = Development\ /usr/local/bin/ppcppc $INPUT_FILE_NAME -Ci -Co -g -gl -O1 -vr - FEbuild/$PROJECT_NAME.build/$TARGET_NAME.build -o$PRODUCT_NAME else echo \Build Style = Deployment\ /usr/local/bin/ppcppc

  1   2   >