Re: [fpc-pascal] Trying to compile fpGUI on Win 11

2025-01-05 Thread James Richters via fpc-pascal
: fpg_base.pas(41,32) Error: Parameters or result types cannot contain local type definitions. Use a separate type definition in a type block. I fixed it by changing it to: TfpgChar= String[4]; James >I run build.bat in /src and get this error messages: >" &

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread James Richters via fpc-pascal
>And the same machine otherwise ? Yes everything is the same other than the version I am trying to compile with, and being run on the same system. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/l

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread James Richters via fpc-pascal
>Could it be due to a change of compilation mode (DELPHIUNICODE etc.) by the user? I haven't change any code at all but the unit that does the TProcess call is being compiled with: {$Mode TP}{$I-} {$modeswitch exceptions} {$R+} James ___ fp

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread James Richters via fpc-pascal
I just tried compiling with the march version with -CpCOREI -OpCOREI -CfAVX2 -dMT and it worked as expected... so it's not the processor change that caused the issue. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread James Richters via fpc-pascal
y MIN/MAX doesn't work anymore on 80386 but it used to. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is there a recent change to TProcess?

2024-12-20 Thread James Richters via fpc-pascal
ogram that has the TProcess call in it. James -Original Message- From: fpc-pascal On Behalf Of Michael Van Canneyt via fpc-pascal Sent: Friday, December 20, 2024 8:23 AM To: Karoly Balogh via fpc-pascal Cc: Michael Van Canneyt Subject: Re: [fpc-pascal] Is there a recent change to TProc

[fpc-pascal] Is there a recent change to TProcess?

2024-12-19 Thread James Richters via fpc-pascal
d that I never re-compiled CMD_Message.exe so it must be that my TProcess is now sending modified parameters to my program. Is there any way to get TProcess in the current trunk to work the way it used to? James ___ fpc-pascal maillist - fpc-pasca

[fpc-pascal] fpGUI issue on current FPC trunk

2024-12-04 Thread James Richters via fpc-pascal
pgColor = type longword;// Always in AARRGGBB (Alpha, Red, Green, Blue) format!! TfpgString = type AnsiString; TfpgChar= type String[4]; PPoint = ^TPoint; TRGBTriple = packed record Red: byte; Green: byte; Blue: byte; Alpha:

Re: [fpc-pascal] Incremental compiling not working in new version

2024-12-04 Thread James Richters via fpc-pascal
that has anything to do with why it’s working so well now. James From: fpc-pascal On Behalf Of Hairy Pixels via fpc-pascal Sent: Tuesday, December 3, 2024 11:09 PM To: FPC-Pascal discussions Cc: Hairy Pixels Subject: [fpc-pascal] Incremental compiling not working in new version I just

Re: [fpc-pascal] What to do to get new users

2024-12-01 Thread James Richters via fpc-pascal
e in fpGUI so far, it's just a whole lot cleaner and a lot easier to understand. I'm excited to integrate it into my projects. After I get a few things going, I could switch to the Develop branch and see if there are any issues. It seems like there is quite a lot of work that's

Re: [fpc-pascal] Printing unicode characters

2024-12-01 Thread James Richters via fpc-pascal
#x27;Unicode scalar 1F496: ', WideChar($1F496)); // đź’– Note that these only work if you do NOT use the CRT unit. James From: fpc-pascal On Behalf Of Hairy Pixels via fpc-pascal Sent: Sunday, December 1, 2024 1:14 AM To: FPC-Pascal discussions Cc: Hairy Pixels Subject: [fpc-pascal] Printing u

Re: [fpc-pascal] FPGUI on Windows

2024-11-30 Thread James Richters via fpc-pascal
ish I took the time to get it working sooner. It seems a lot easier than fiddling around with windows API calls. James -Original Message- From: fpc-pascal On Behalf Of James Richters via fpc-pascal Sent: Friday, November 29, 2024 4:58 PM To: 'FPC-Pascal users discussions'

[fpc-pascal] FPGUI on Windows

2024-11-29 Thread James Richters via fpc-pascal
I just don't know where to look. I don't know what Unit X is or why I don't have it. It looks like a really cool package and I hope I can get it working. I have some GDI windows in my FPC projects, but FPGUI looks a lot easier to implement and a lot less confusing. James --O

Re: [fpc-pascal] What to do to get new users

2024-11-28 Thread James Richters via fpc-pascal
ror: I:\Programming\FPC\3.2.2\bin\i386-Win32\ppc386.exe returned an error exitcode Anyone have any ideas what I'm doing wrong? This is all way over my head I'm afraid. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] What to do to get new users

2024-10-16 Thread James Richters via fpc-pascal
e just tying to get it working it’s not until you want to really do something and try to use the help that you realize there is none, and by then you forgot what was on the download page. James ___ fpc-pascal maillist - fpc-pascal@lists.freepasc

Re: [fpc-pascal] PTCGraph resolution detection

2024-03-22 Thread James Richters via fpc-pascal
t we can have custom resolutions for the PTCGraph window, I just need to make sure it fits on the screen so it really doesn't matter how I get the screen resolution. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] PTCGraph resolution detection

2024-03-20 Thread James Richters via fpc-pascal
video card. They both have Windows 10 Pro. I just stuck my own variables in there were I can just tell it the resolution of the monitor, and if I put in 0x0 it does the original autodetect thing. With me supplying the monitor resolution, everything is now working correctly. Jame

[fpc-pascal] PTCGraph resolution detection

2024-03-19 Thread James Richters via fpc-pascal
trunk of FPC installed today. Does anyone have any idea why the 64bit version would work differently than the 32bit version? James Uses Windows,ptcgraph,ptccrt,crt,sysutils; Procedure WindowsGRAPHINIT; Var gd,gm:smallint; m: PModeInfo; graphinitialize,MaxX,MaxY:Integer;

Re: [fpc-pascal] Floating point question

2024-02-22 Thread James Richters via fpc-pascal
mber how it was all done, so I went back to Win32, just to get 80 Bit Extended. It's something to do with the cross compiler to 64 bit makes extended a double on 64bit, but if you weren't cross compiling and had just a native 64bit compiler then Extended

Re: [fpc-pascal] Floating point question

2024-02-20 Thread James Richters via fpc-pascal
rything, you can add a byte to a byte and get a word for an answer, the result of any math can always result in higher precision than all of the terms involved, otherwise there would be no point to double precision or extended precision. I have never needed to cast my terms to get expected

Re: [fpc-pascal] Floating point question

2024-02-19 Thread James Richters via fpc-pascal
y a single and get an extended, Pascal has ALWAYS worked that way. Forcing the result of an equation to be a single because one term is a single is just not right. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.or

Re: [fpc-pascal] Floating point question

2024-02-19 Thread James Richters via fpc-pascal
t I don’t know why and I don’t know how to explain it other than to give these examples. 1/3.5 == 2/7 What should this program produce? program Const_Vs_Var; Const A_const = (2/7)-(1/3.5); Begin WRITELN ( ' A_Const = ', A_Const); End. How can this possib

Re: [fpc-pascal] Floating point question

2024-02-16 Thread James Richters via fpc-pascal
f math with constants must always be exactly the same as math with variables otherwise no one can figure out what the heck is going on. James program Const_Vs_Var; Const A_const = Integer(8427); B_const = Byte(33); C_const = Single(1440.5); Win_Calc = 16854.045817424505380076362

Re: [fpc-pascal] Floating point question

2024-02-16 Thread James Richters via fpc-pascal
ormula with hard coded constants vs variables. Const_Ans = 2.0010627116630224 Const_Ans1 = 2.0010627116630224 Var_Ans1 = 2. This should not be happening. James ___ fpc-pascal maillist - fpc-pascal@lists.freepasc

Re: [fpc-pascal] Floating point question

2024-02-13 Thread James Richters via fpc-pascal
les, either way there won't need to be a trade off and everything will work the way everyone wants it to.. performance when possible and precision when needed. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-13 Thread James Richters via fpc-pascal
t. >As usual, it is a trade-off between size (=precision) and speed. I agree with that, but only in the executing program, not the compiler. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-13 Thread James Richters via fpc-pascal
Sorry again for the duplicate. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-13 Thread James Richters via fpc-pascal
e sample program. I hope it is readable, because sometimes e-mail breaks lines where I donÂ’t intend it to. James program Const_Vs_Var; Const A_const = Integer(8427); B_const = Byte(33); C_const = Single(1440.5); Var A_Var : Integer; B_Var : Byte; C_Var : Single; FF, GG,

Re: [fpc-pascal] Floating point question

2024-02-13 Thread James Richters via fpc-pascal
just needs to do the calculations the same way as variables are calculated with the extra step of re-evaluating to see if the precision can be reduced when it's done. James program Const_Vs_Var; Const A_const = Integer(8427); B_const = Byte(33); C_const = Single(1440.5); Win

Re: [fpc-pascal] Floating point question

2024-02-09 Thread James Richters via fpc-pascal
>However, adding support for an option called -CFMax or similar should be no problem. It would be VERY much appreciated! James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-09 Thread James Richters via fpc-pascal
ns that use Extended. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-06 Thread James Richters via fpc-pascal
ne. On top of that the -CF option only works for -CF32 and -CF64 so its no solution for Extended.. why do I need a special option to do things correctly?' How about this.. if one variable is defined as a Double or Extended, then shut this 'feature' off, because it's a

Re: [fpc-pascal] Floating point question

2024-02-06 Thread James Richters via fpc-pascal
, then you know you might have to cast some things yourself, but to apply this globally and then require a directive to not do it, is just not right, unless ALL code can be run the way it did pre 2.2 without modification, this is CLEARLY not the case. James ___

Re: [fpc-pascal] Floating point question (Rafael Picanço)

2024-02-06 Thread James Richters via fpc-pascal
don’t qualify for the bonus, because I don’t know what LargerFloat is. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-06 Thread James Richters via fpc-pascal
; a true statement. If the entire formula was evaluated at full precision, and only the result was stored as a lower precision if possible, then there is never a problem for anyone. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-06 Thread James Richters via fpc-pascal
hat it's getting set to a single, and that single is throwing everything off... it just wasn't reduced far enough. James -Original Message- From: fpc-pascal On Behalf Of Thomas Kurz via fpc-pascal Sent: Tuesday, February 6, 2024 7:53 AM To: 'FPC-Pascal users discussi

Re: [fpc-pascal] Floating point question

2024-02-06 Thread James Richters via fpc-pascal
ced inaccuracies from time but I was never able to get far enough in to realize this is what was happening. It's very frustrating indeed and I think if something can be done to save others this frustration and unexpected behavior, it would be helpful. James -Original Message-

[fpc-pascal] FW: Floating point question

2024-02-05 Thread James Richters via fpc-pascal
/view?usp=s haring James -Original Message- From: James Richters Sent: Monday, February 5, 2024 7:26 AM To: 'FPC-Pascal users discussions' Subject: RE: [fpc-pascal] Floating point question I ran this program in Borland Turbo Pascal 7.0 for DOS, and it does not have this pr

Re: [fpc-pascal] Floating point question

2024-02-05 Thread James Richters via fpc-pascal
166671634000 I expected them to be both the same. James -Original Message- From: fpc-pascal On Behalf Of James Richters via fpc-pascal Sent: Sunday, February 4, 2024 10:52 AM To: 'FPC-Pascal users discussions' Cc: James Richters Subject: Re: [fpc-pascal] Floating poi

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
it the old way. BB = 8427+33/1440.0; comes out the same as doing: BB = Extended(8427+Double(33/1440)); which is 8427.0229166678793000 But BB = 8427+33/1440; still comes out right: 8427.022916625000 I still can't get $EXCESSPRECISION to work. James _

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
in the text book either. All of my examples above should be processed the same way, if 1440.1 doesn't force single precision, then 1440.0 should not force single precision either. James -Original Message- From: fpc-pascal On Behalf Of Jonas Maebe via fpc-pascal Sent: Sunday

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
= 8427.022916625000 A_Dbl = 8427.022460937500 B_Dbl = 8427.022916668000 C_Dbl = 8427.022916668000 A_Sgl = 8427.02246100 B_Sgl = 8427.02246100 C_Sgl = 8427.02246100 James ___ fpc-pascal

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
440 without the .0, there is no problem.The .0 is apparently defining it to be a floating point and the smallest floating point is a single… but that’s not the smallest data structure, the smallest data structure that can be used is a word and that would have s

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
xt = 8427.02291507534198978000 C_Ext = 8427.02291507534198978000 A_Dbl = 8427.0229150753421000 B_Dbl = 8427.0229150753421000 C_Dbl = 8427.0229150753421000 A_Sgl = 8427.02246100 B_Sgl = 8427.02246100 C_Sgl = 8427.02246100 All versions

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
ave off the .0 then it's correct: FF := 8427+33/1440; GG := 8427+33/1440; HH := 8427+33/1440; FF =8427.022916625000 GG =8427.022916668000 HH =8427.02246100 I feel much better about it all now.. I think it's SUPPOSED to work the way I expect, but t

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
reduce the precision of only the constant if it's justified. If it was done this way then it would always give the expected result. James -Original Message- From: fpc-pascal On Behalf Of Florian Klämpfl via fpc-pascal Sent: Sunday, February 4, 2024 8:20 AM To: FPC-Pascal users dis

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
How do I get -CF to work with the Text IDE? I put -CF and just CF in "Additional Compiler Args" either way I get: Error: Illegal parameter: -CF James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepasc

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
hey are expected by the vast majority to be, the directive should be needed for those few who even noticed the warnings in Delphi, and they were just warnings, not a substantial reduction in precision. James >But not at the price of loss in precision ! Unless an explicit compiler switch >li

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
Delphi is completely wrong to do it this way. I'm glad there is $EXCESSPRECISION I am Immediately putting that in every single program I have, because that is I always thought it would work, and I do have divisions where this can be a problem. James -Original Message- From:

Re: [fpc-pascal] Floating point question

2024-02-04 Thread James Richters via fpc-pascal
te bug you have discovered. I shouldn’t have to cast the division, it’s not what any user would expect to need to do. My tests were done on a Windows 10 64 bit machine with FPC Win32. ■ Free Pascal IDE Version 1.0.12 [2023/06/26] ■ Compiler Version 3.3.1-12875-gadf843196a James -

Re: [fpc-pascal] What's in Hello World

2024-01-07 Thread James Richters via fpc-pascal
e as Generate Smaller Code? or if not, is there another way to turn it on in the textmode IDE? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Profiling in windows

2024-01-03 Thread James Richters via fpc-pascal
ago. Is there some way to know what parameters the text mode IDE is using? Or What would the command line be to compile the same way as the IDE? Any advice on how to get this to work, or recommendations on another way I can profile my program under Windows is greatly appreciated. James

Re: [fpc-pascal] Procedures that work like WRITELN()

2023-12-27 Thread James Richters via fpc-pascal
ng. It will be a little more effort than doing a global search and replace but at least I know that it's the only way. Thanks for the help James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Procedures that work like WRITELN()

2023-12-27 Thread James Richters via fpc-pascal
? Any Ideas? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strings greater than 255 characters

2023-12-19 Thread James Richters via fpc-pascal
for now, but If I want to change them anyway then I just do If (Length(MyString)>0) and (MyString[1]='~') Then ... And that fixes the issue as well, and it's probably better code as I shouldn't be testing a particular character

[fpc-pascal] Strings greater than 255 characters

2023-12-19 Thread James Richters via fpc-pascal
ose records, for the same reason as above. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] case statement

2023-12-14 Thread James Richters via fpc-pascal
about OTHERWISE though, I'll probably throw it in just to help remind me that this belongs to the CASE Statement, and not part of some IF, maybe it will be more readable that way. James -Original Message- From: fpc-pascal On Behalf Of Martin Wynne via fpc-pascal Sent: Thursday, Decem

Re: [fpc-pascal] case statement

2023-12-14 Thread James Richters via fpc-pascal
I didn’t know there was such a thing as OTHERWISE. Is there any functional difference between OTHERWISE and ELSE? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-27 Thread James Richters via fpc-pascal
index.'); Exit; end; voiceName := v.GetVoices.Item(selectedVoiceIndex - 1).GetDescription; v.Voice := v.GetVoices.Item(selectedVoiceIndex - 1); Writeln('Selected Voice: ', voiceName); speechText := 'Hello World, t

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-26 Thread James Richters via fpc-pascal
Well that's worth a lot, it may be indicating a bug in 3.3.1? I guess I need to get on the current trunk to see if it's still misbehaving. James >Also, for what it's worth, your code works fine on fpc 3.20. ___ fpc-pascal maill

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-26 Thread James Richters via fpc-pascal
I was using OleVarient and Varient. How can I check to see if CreateOleObject was successful? James >It sounds like " SpVoice := CreateOleObject('SAPI.SpVoice');" is failing and >then SpVoice is nil ? >May be try with an OleVariant instead of a simple Variant

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-26 Thread James Richters via fpc-pascal
When I run the code below I get: An unhandled exception occurred at $004143C0: â–  Free Pascal IDE Version 1.0.12 [2022/02/07] â–  Compiler Version 3.3.1-10077-gc8403ad49e â–  GDB Version GNU gdb (GDB) 7.2 Running "i:\programming\sapi.exe " EOleError: Variant does not reference an automation object $00

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-26 Thread James Richters via fpc-pascal
stuff? I'm sure I'm doing something wrong but I still can't get it to work. Here's my original program. I wasn't even trying to change the voice yet. What do I need to do to this to make it work? James {$mode objfpc} uses CRT, Windows, SysUtils, ComObj, Variants,

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-26 Thread James Richters via fpc-pascal
I was trying to figure this out on my own.. I went to: https://wiki.freepascal.org/SAPI that is where I got my advice. I took the top example code from the link and made it into the following program: {$Mode OBJFPC} uses comobj; var SavedCW: Word; SpVoice: Variant; begin SpVoice := Creat

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-26 Thread James Richters via fpc-pascal
ript.vbs'); End; Begin Zira('Hello World'); End. From: fpc-pascal On Behalf Of Rafael Picanço via fpc-pascal Sent: Sunday, June 25, 2023 2:17 PM To: fpc-pascal@lists.freepascal.org Cc: Rafael Picanço Subject: Re: [fpc-pascal] Microsoft SAPI on Freepascal Hi James, I am

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-25 Thread James Richters via fpc-pascal
So it’s broken? It seems like the link you provided is trying to show a workaround, but I don’t know how I could apply that. >"Remark Dispatch interface support for variants is currently broken in the >compiler." (https://www.freepascal.org/docs-html/ref/refsu20.html) ___

Re: [fpc-pascal] Microsoft SAPI on Freepascal

2023-06-25 Thread James Richters via fpc-pascal
Ooops forgot the link: https://wiki.lazarus.freepascal.org/SAPI From: fpc-pascal On Behalf Of James Richters via fpc-pascal Sent: Sunday, June 25, 2023 8:52 AM To: 'FPC-Pascal users discussions' Cc: James Richters Subject: [fpc-pascal] Microsoft SAPI on Freepascal I am try

[fpc-pascal] Microsoft SAPI on Freepascal

2023-06-25 Thread James Richters via fpc-pascal
I feel I must be missing something but I don't know what it is. Any help is greatly appreciated! James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Size of set.

2023-05-23 Thread James Richters via fpc-pascal
>You can transverse a set with > for ... in Interesting, I learned something new, I did now know I could do this with FreePascal. It says it works for Strings and Arrays as well, does it also work for StringLists? James ___ fpc-pascal ma

[fpc-pascal] Windows Display Settings

2023-05-13 Thread James Richters via fpc-pascal
Is there some way with FreePascal that I can Get / Set the windows display settings for multiple monitors like their resolutions, portrait/landscape, scale factors, and if they are disconnected or not? James ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Pause Key

2023-04-16 Thread James Richters via fpc-pascal
It occurs to me that since Pause is independent of keypressed, I could actually us it as an extra modifier key if I wanted to... "Pause-A" could be different than "A", and also different than "CRTL-A" or "ALT-A", in fact I could do "Pause-CTRL-ALT-A" and have that be different than "CTRL-ALT-

Re: [fpc-pascal] Pause Key

2023-04-14 Thread James Richters via fpc-pascal
e is Back!! Now I can use F12 for something more useful. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Pause Key

2023-04-13 Thread James Richters via fpc-pascal
Does anyone know what's up with the Pause key in Windows? Is there some way to tell if it was pushed? I have a need for the user to pause execution of my Freepascal program, I have a pause key.. seems like there should be some way to use it.

[fpc-pascal] Save and Restore Windows 10 Display configuration?

2023-04-03 Thread James Richters via fpc-pascal
Is there some way I can programmatically use FreePascal to save and Restore all the settings found in the Windows 10 Display settings such as the resolution and position of each monitor and if they are enabled or not? ___ fpc-pascal maillist - fpc-p

[fpc-pascal] For Loop with QWord

2023-01-03 Thread James Richters via fpc-pascal
o be a negative number? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-30 Thread James Richters via fpc-pascal
I don’t know how my previous message got so out of sequence. I am not intending to continue this discussion, it was a message I sent early Thursday morning that was somehow delayed and is out of sequence. ___ fpc-pascal maillist - fpc-pascal@lists.fr

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-30 Thread James Richters via fpc-pascal
t to accomplish something. I was simply trying to offer you that other point of view. Again, I am very sorry if I offended you. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-29 Thread James Richters via fpc-pascal
>Well, this discussion has not gone well at all! I agree >I suggest that everyone relax and discontinue pursuing it. I apologize to Anthony and everyone on the list for getting too carried away. James ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-29 Thread James Richters via fpc-pascal
ect is too complicated. I actually don't even fit into your target audience at all because I am very familiar with writing computer software... just not involving databases, and I am extremely familiar with Pascal and Free Pascal... yet I found it confusing and too complicated. James _

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-29 Thread James Richters via fpc-pascal
“James, when you raised these questions are you saying that you don't know, or that someone who doesn't know much if anything about programming doesn't know” The point I was trying to make is that most of this is gobbely gook to me. So I went looking for something I could re

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-28 Thread James Richters via fpc-pascal
:37 PM, Anthony Walter via fpc-pascal wrote: > "I see there's a timer there.. but what starts it? What happens when > it times out? How do I set the amount of time? Why is there even a > timer at all? I don't know any of this." > > James, when you raised these q

Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-27 Thread James Richters via fpc-pascal
hat the things mean in the SQL monitor box or why SQLs whatever they are might need to be monitored. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Program efficiency

2022-11-09 Thread James Richters via fpc-pascal
Sounds to me that if the compiler will probably insert temp variables anyway, then I might as well make my own and make it easier to understand later. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi

[fpc-pascal] Program efficiency

2022-11-09 Thread James Richters via fpc-pascal
es for you while your program ran..and then I could just try a sample program both ways and see what the results are... James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] mciSendString with long file names

2022-09-22 Thread James Richters via fpc-pascal
d does work, but it's not so convenient for Asynchronous mode because it leaves the file open.. if you close it before it finishes playing, it stops and if you wait for it to finish and then close it.. well, that's just not asynchronous. James -Original Message- From: fpc-pasc

Re: [fpc-pascal] mciSendString with long file names

2022-09-22 Thread James Richters via fpc-pascal
Won’t backslashes before each space be defining a subdirectory? If my path looks like: C:\Program Files\My Program\Some File.MP3 I don't see how changing it to: C:\Program\ Files\My\ Progam\Some\ File.MP3 can possibly work.. it's just butchering the path. James From: fpc-pascal On

Re: [fpc-pascal] mciSendString with long file names

2022-09-20 Thread James Richters via fpc-pascal
0, 0); I'm still trying to see if there is a way to close everything even if I don't know the alias anymore. James -----Original Message- From: fpc-pascal On Behalf Of James Richters via fpc-pascal Sent: Tuesday, September 20, 2022 5:21 PM To: 'FPC-Pascal users discussions

Re: [fpc-pascal] mciSendString with long file names

2022-09-20 Thread James Richters via fpc-pascal
ast the procedure that fired it off... at least for repeat playing, it will have closed the old one before it made a new one. I wonder if there is a way to do a 'CLOSE ALL' that I could run when before my program exits just to clean up the system. James __

Re: [fpc-pascal] mciSendString with long file names

2022-09-20 Thread James Richters via fpc-pascal
I just figured out that short filenames won't work, my files are on a linux server... not NTFS drives.. so I'm back to getting it to work with spaces the normal file names James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] mciSendString with long file names

2022-09-20 Thread James Richters via fpc-pascal
ame( lpszLongPath: LPCTSTR; lpszShortPath: LPTSTR; cchBuffer: Windows.DWORD ):Windows.DWORD; does anyone know how to convert a pascal string to the LPCTSTR needed for the long path and then how to convert the LPTSTR short path to LPCTSTR for mciSendString? Are the LPCTSTR and LPTSTR

[fpc-pascal] mciSendString with long file names

2022-09-20 Thread James Richters via fpc-pascal
record with a string variable in it.. part of another whole system that I don't want to change just to get this to work. Any one have any ideas how to get long file names with spaces to work? James ___ fpc-pascal maillist - fpc-pascal@lists.fre

[fpc-pascal] SerReadTimeout question

2022-09-18 Thread James Richters via fpc-pascal
f the timer stated when I call the function, I will have to caclculate how long it should take and add a little in case the data isn't ready when I ask for it. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepasc

Re: [fpc-pascal] Getting Shift key with PTCCRT

2022-09-18 Thread James Richters via fpc-pascal
; End; James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get highest element of a StringList

2022-09-12 Thread James Richters via fpc-pascal
n't know about for that as well? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get highest element of a StringList

2022-09-12 Thread James Richters via fpc-pascal
x27;t need the index for anything. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get highest element of a StringList

2022-09-11 Thread James Richters via fpc-pascal
I think .High should just be added to all things that have a .Count because everyone always needs it ALL THE TIME. But I am happy it's possible to add a helper function to add it myself. James >Why the loop? ___ fpc-pascal

Re: [fpc-pascal] Get highest element of a StringList

2022-09-10 Thread James Richters via fpc-pascal
Array)-1] := something; While it does work.. it's less readable and prone to errors. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Get highest element of a StringList

2022-09-10 Thread James Richters via fpc-pascal
High: NativeInt; end; I getError: Identifier not found "class" I have the Classes unit. Is there something else I am missing? James >Another alternative would be declaring a helper: >type TStringListHelper = class helper for TStringList function High: NativeInt;

[fpc-pascal] Get highest element of a StringList

2022-09-10 Thread James Richters via fpc-pascal
ment was a stringlist? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Getting Shift key with PTCCRT

2022-09-10 Thread James Richters via fpc-pascal
TCCRT James >looking at the list of constants in ptcpas, i find PTCKEY_SHIFT... i also find, in Classes, the IPTCKeyEvent which has a GetShift function as well as a Shift >property... seems like you should be able to the shift status with something like >type myKeyEvent : IPTCK

  1   2   3   4   5   6   7   8   9   >