Re: [fpc-pascal] How to read the 'a_quick_guide_to_fpgui.ipf'

2025-01-10 Thread Andrew Haines via fpc-pascal
On 1/8/25 12:02 PM, M B via fpc-pascal wrote: I have googled for a reader for this format but can't find one. I found a web page claiming to read this format but it didn't work. Am I misunderstanding something? The file is under /docs/quick_guide  in the repository. for fpGUI on github. ipf

Re: [fpc-pascal] unixsockets

2025-01-03 Thread Andrew Haines via fpc-pascal
On 1/3/25 6:12 AM, Michael Van Canneyt via fpc-pascal wrote: Yes. It was not built, I added it to fpmake. I also applied the fix you mentioned for the size_t problem. Thanks very much! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] unixsockets

2024-12-28 Thread Andrew Haines via fpc-pascal
Hi, is unixsockets.pp in rtl-extra supposed to be included when fpc is built for linux? I ran 'find /usr/lib/fpc/ | grep unixsockets' and it returns nothing, also not in /usr/local/lib/fpc. I needed msghdr/cmsghdr which I found in packages/rtl-extra/src/linux/unixsocketsh.inc. grep -r "uni

[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 TObjects

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 th

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 wo

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, usin

[fpc-pascal] fcl-web websocket

2022-12-24 Thread Andrew Haines via fpc-pascal
Hi, I am trying to test the websocket client in fcl-web by making a simple echo client. I have been unable to make it work using fpc trunk on linux64. I also crosscompiled to win64 and ran it on wine with identical results. The project is attached here if anyone can give some hints. I am tes

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 FromType(ATy

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
cted     FValues: TStringArray;     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

[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 v

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
On 07/25/2017 01:39 PM, José Mejuto wrote: El 25/07/2017 a las 8:33, Michael Van Canneyt escribió: Is it possible that the SVN RSS is stuck at day 21 ? https://svn.freepascal.org/feeds/fpcsvn.rss Yes. The post-commit script that creates the feed has been disabled due to time-out problems.

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
On 04/10/2017 02:58 AM, misabov wrote: The project has generated an exception class EOleSysError with a message: ?? ?? ??. uses ...,ComObj; var SpVoice: Variant; SpVoice := CreateOleObject('SAPI.SpVoice'); SpVoice.Voice:= SpVoice.GetVoices('','').Item(0); SpVoice GetVoices method