Re: [fpc-pascal] Problems with writing to console

2018-01-10 Thread James Richters
ln; End. See full example attached.Of course the program is intended to run on versions of random versions of windows, many of which had Ansi capability disabled, then this would not be a potential solution. Windows 3.11, Windows 95 and Windows 98 had Ansi capability, but Windows 2000, Windows X

Re: [fpc-pascal] Problems with writing to console

2018-01-10 Thread James Richters
> note that constants related to the windows 10 virtual terminal are not > defined in FPC yet. Correction: They were not added as of 3.0.4.rc1, they have been added now, not sure exactly which version they are/were included. James -Original Message- From: fpc-pascal [mailto:fpc-

Re: [fpc-pascal] pas2js mailing list

2018-01-16 Thread James Richters
Technically the anti-abuse field would produce the output of: Fatal Syntax error, ";" expected but "identifier WRITELN" found because there is no semicolon following the sample code. :DI guess maybe it's after an if statement and before an else so it doesn't need a semicolon? Silliness as

Re: [fpc-pascal] pas2js mailing list

2018-01-17 Thread James Richters
ons of the above, does not matter. AB On 01/16/2018 12:52 PM, James Richters wrote: > Technically the anti-abuse field would produce the output of: Fatal Syntax > error, ";" expected but "identifier WRITELN" found > because there is no semicolon following the sample c

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-01 Thread James Richters
>I have written a few small windows type apps, but still prefer console. More >of the programming is for function instead of display. I also prefer ‘console’ but I prefer it for heavy graphical UI applications as well as functional types of programming.I cannot stand programs the try to

[fpc-pascal] Seek with text file

2018-04-03 Thread James Richters
I am trying to figure out how I can remove the last line of a text file to replace it with a new one. I can do this with typed files with seek... but I am confused on how I could do this with just a text file. If I use: Var Myfile: Text; Mydata:String; Assign(myfile,'test.txt'

Re: [fpc-pascal] Seek with text file

2018-04-03 Thread James Richters
Thank you for the advice and for the example. I don't know what is considered a large file.. these files can be maybe about 1000 lines long, most will be less, would this solution be suitable for files of this size? Is Tstringlist something like an array of strings? -Original Message-

Re: [fpc-pascal] Seek with text file

2018-04-03 Thread James Richters
text file Op 03-04-2018 13:58 schreef James Richters: > Thank you for the advice and for the example. I don't know what is considered > a large file.. these files can be maybe about 1000 lines long, most will be > less, would this solution be suitable for files of this size? >

[fpc-pascal] Using constants instead of comments

2018-04-17 Thread James Richters
I have a whole section of diagnostic writeln's in a program, and it's tedious to comment them all out/in as needed. I'm curious if doing something like Const diagnosticdetail=false; If diagnosticdetail then Writeln('diagnostic info'); Is the same as // Writeln('diagnostic info'); And t

[fpc-pascal] detecting recursive loops

2018-05-05 Thread James Richters
I'm having an issue with one of my programs that I suspect is being caused by a recursive loop... in simplified form... something like this: Procedure Proc1; Begin Proc2; End; Procedure Proc2; Begin Proc1; End; I ended up getting a runtime error and the report showed something like above,

[fpc-pascal] math with infinity and NaN

2018-06-19 Thread James Richters
$00401A43: EInvalidOp: Invalid floating point operation $00401A43 main, line 22 of I:/Programming/Test/testmath.pas Sqrt(-1*V1) It seems to me that the whole purpose of +Inf, -Inf, and NaN was so you could evaluate complex formulas and NOT get a runtime error… Is this behavior just a bug th

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread James Richters
manity.com/Infinity_Minus_Infinity.html James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Marco van de Voort Sent: Wednesday, June 20, 2018 9:21 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] math with infinity and NaN In our previo

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread James Richters
Is there a way to prevent getting the runtime error? James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Florian Klämpfl Sent: Wednesday, June 20, 2018 4:59 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] math with

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread James Richters
>Please read the standard, exceptions are part of it. Not much of a 'standard' if it's full of exceptions so everyone just does it however they want and therefore nothing is actually standard. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread James Richters
mask... like ln(-1) or 0/0 why do some cause the exception and others do not? If someone wanted to volunteer time to adjust the math unit to always behave the same way, would it be something that would be accepted or is there some fundamental reason why it is like this? James -Original Me

Re: [fpc-pascal] math with infinity and NaN

2018-06-21 Thread James Richters
>For operations producing results in floating-point format, the default result >of an operation that >signals the invalid operation exception shall be a quiet NaN that should >provide some diagnostic >information (see 6.2). If it shall be a quiet NaN doesn't that mean it would never cause the

Re: [fpc-pascal] math with infinity and NaN

2018-06-21 Thread James Richters
- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of g...@wolfgang-ehrhardt.de Sent: Thursday, June 21, 2018 2:46 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] math with infinity and NaN Quoting James Richters : > SetExceptionMask(GetExceptionM

Re: [fpc-pascal] math with infinity and NaN

2018-06-21 Thread James Richters
discussions Subject: Re: [fpc-pascal] math with infinity and NaN Zitat von James Richters : >> For operations producing results in floating-point format, the >> default result of an operation that signals the invalid operation >> exception shall be a quiet NaN that should provi

Re: [fpc-pascal] Syntax changes suggestions

2018-07-22 Thread James Lee
On 7/21/2018 1:43 PM, Ben Grasset wrote: Shouldn't the attribute tags just be put wherever it's easiest for the compiler to deal with them? That would be bending the language to fit the implementation, when it should be the other way around. I think the vast majority of people care far

[fpc-pascal] CopyFile for FreePascal without Lazarus?

2019-04-17 Thread James Richters
Is there a copyfile for Freepascal I can use without installing Lazarus? I found: http://wiki.freepascal.org/CopyFile but that seems to only work with Lazarus. I just want to make a copy of a file into a different directory and maintain it's timestamps etc Any suggestions?

Re: [fpc-pascal] CopyFile for FreePascal without Lazarus?

2019-04-18 Thread James Richters
and where to copy them. James -Original Message- From: fpc-pascal On Behalf Of leledumbo via fpc-pascal Sent: Thursday, April 18, 2019 2:45 AM To: fpc-pascal@lists.freepascal.org Cc: leledumbo Subject: Re: [fpc-pascal] CopyFile for FreePascal without Lazarus? > but that seems

[fpc-pascal] Resolving math expression as input from user

2019-04-23 Thread James Richters
it somewhere. I started to add some missing functions to the unit I have and to convert it to use doubles.. etc, but it's going to be a long tedious process.. and I'll be wasting my time if I could have just used something that is already out there. Any Ideas? James

[fpc-pascal] using ^ in filename

2019-05-08 Thread James Richters
y ^ gets left out of parameters with no quotes or why windows would put two of them if I call the program? I'm sure there is some kind of reason, but I can't find any information about why ^ is treated differently than any other character. James _

[fpc-pascal] unexpected termination with no errors

2019-05-15 Thread James Richters
A program I have been working on for years has suddenly developed a bug in it and at a certain point, it is just terminating and not giving me any runtime errors or any error of any kind. It's just running running... running... then BAM - GONE, no explanation%errorlevel% is -107374

Re: [fpc-pascal] unexpected termination with no errors

2019-05-15 Thread James Richters
Wednesday, May 15, 2019 9:17 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] unexpected termination with no errors Hi, On Wed, 15 May 2019, James Richters wrote: > Has anyone encountered anything like this before or know how I can > make sure I always get the maximum amount of de

Re: [fpc-pascal] unexpected termination with no errors

2019-05-16 Thread James Richters
go. James From: fpc-pascal On Behalf Of Gary Doades Sent: Wednesday, May 15, 2019 12:11 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] unexpected termination with no errors Windows represents exception codes as an unsigned int. The error -1073741819 is actually

Re: [fpc-pascal] unexpected termination with no errors

2019-05-16 Thread James Richters
into the category of “things zero or less” which made my batch file treat it as a normal exit. It was my batch file that was failing to function correctly. James From: fpc-pascal On Behalf Of James Richters Sent: Thursday, May 16, 2019 7:31 AM To: 'FPC-Pascal users discus

[fpc-pascal] Detecting console close with red X on windows

2019-05-19 Thread James Richters
Is there a way I can detect that a user has pushed the red X in the upper right corner to close the console window in a free pascal console application so I can save some files before the program terminates? James ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Detecting console close with red X on windows

2019-05-19 Thread James Richters
Could I please get an example of this? I see lots of examples of how to do it in C but when I try to translate to pascal I always struggle a quite a bit. James From: fpc-pascal On Behalf Of Henry Vermaak Sent: Sunday, May 19, 2019 8:39 AM To: FPC-Pascal users discussions Subject: Re

Re: [fpc-pascal] Detecting console close with red X on windows

2019-05-19 Thread James Richters
aak Sent: Sunday, May 19, 2019 11:44 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Detecting console close with red X on windows On Sun, 19 May 2019 at 14:33, James Richters wrote: > > Could I please get an example of this? I see lots of examples of how to do > it in C

Re: [fpc-pascal] Detecting console close with red X on windows

2019-05-19 Thread James Richters
Thanks for clarifying, I have everything working well now in my real program, I didn’t need to do anything other than save and close some files, so I have plenty of time to get everything done. James From: fpc-pascal On Behalf Of Sven Barth via fpc-pascal Sent: Sunday, May 19, 2019

[fpc-pascal] Checking if a TStringList already exists

2019-05-20 Thread James Richters
.Free…. But I’m not sure where that would be documented. Also can someone explain that the purpose of .Destroy is and why I would use .Free Vs .Destroy ? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Checking if a TStringList already exists

2019-05-20 Thread James Richters
Thank you very much for the explanation and examples of this! I am glad you pointed out the FreeAndNill() function, I will defiantly be needing that. James -Original Message- From: fpc-pascal On Behalf Of Michael Van Canneyt Sent: Monday, May 20, 2019 8:03 AM To: FPC-Pascal users

[fpc-pascal] Debug Advice needed

2019-05-21 Thread James Richters
detailed debug reports that get me to the exact command that caused the problem and other times I have some information but then it just stops and I have nothing following the hex addresses. James ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] RPos Causing Access violation

2019-05-21 Thread James Richters
emory and that stays consistent, so I don’t think I have a memory leak anywhere. Any ideas?? I’m running on Windows 10, compiling with FPC 3.0.4RC1 with the FPC text IDE. James From: fpc-pascal On Behalf Of James Richters Sent: Tuesday, May 21, 2019 7:35 AM To: 'FPC

Re: [fpc-pascal] Checking if a TStringList already exists

2019-05-21 Thread James Richters
I don’t seem to have FreeThenNil I’m using FPC 3.0.4RC1 I don’t use Lazarus.. maybe it’s a Lazarus thing… or maybe it’s in a different unit plotdraw.pax.pas(20,7) Error: Identifier not found "FreeThenNil" James From: fpc-pascal On Behalf Of Giuliano

Re: [fpc-pascal] RPos Causing Access violation

2019-05-21 Thread James Richters
e if it's really a memory related issue? Something like a writeln for stack space etc? James -Original Message- From: fpc-pascal On Behalf Of Marco van de Voort Sent: Tuesday, May 21, 2019 9:51 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] RPos Causing Access violati

Re: [fpc-pascal] RPos Causing Access violation

2019-05-21 Thread James Richters
to get it to work... maybe I am not cleaning up or resetting the way I should be. I'm going to post that function with a separate title to make it clear it's a new topic James -Original Message- From: fpc-pascal On Behalf Of Bart Sent: Tuesday, May 21, 2019 12:50 PM

[fpc-pascal] Getting multiple files from GetOpenFileNameA

2019-05-21 Thread James Richters
Writeln; File_Stringlist.add(Filenamestr); Until TFileName.lpstrFile[loopx+1]=#0; Textcolor(14); If File_Stringlist.Count=1 then Writeln(File_Stringlist.Count,' File Selected') Else Writeln(File_Stringlist.Count

Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA

2019-05-21 Thread James Richters
to manage tStringList James -Original Message- From: fpc-pascal On Behalf Of Cyrax Sent: Tuesday, May 21, 2019 4:55 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA On 21.5.2019 22.12, James Richters wrote: > This is the function I

Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA

2019-05-22 Thread James Richters
nFileNameA El 21/05/19 a las 23:17, James Richters escribió: > I have it defined with the program variables: > > Here are all my Uses and Vars: > > Uses >ptcgraph,sysutils,Windows,Commdlg,Classes,CRT; > > Var > TFilename : TOpenFileNameA; &

Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA

2019-05-23 Thread James Richters
directory I expect to be in. Any Advice or suggestions on any of this, or on how I could improve the structure or methods of this program are greatly appreciated. James {$mode objfpc}{$H+} // https://docs.microsoft.com/en-us/windows/desktop/api/commdlg/nf-commdlg-getopenfilenamea

Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA

2019-05-23 Thread James Richters
I’m not clear about when they need one #0 or two. I thought it was just .lpstrFile to make it clear there weren’t more file names in it.. so one #0 between each name and double #0 at the end.. maybe they all need double #0 at the end? James From: fpc-pascal On Behalf Of Alexander

Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA

2019-05-23 Thread James Richters
Oh that makes sense… so it would know when there wasn’t another string. I’ll put another #0 that seems to be the correct way. James From: fpc-pascal On Behalf Of Alexander Grotewohl Sent: Thursday, May 23, 2019 12:22 PM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Getting

Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA

2019-05-23 Thread James Richters
directory, so I would like to learn the proper way to achieve both of these. Thank you again for the help and the great suggestions! It’s very much appreciated. James {$mode objfpc}{$H+} // https://docs.microsoft.com/en-us/windows/desktop/api/commdlg/nf-commdlg-getopenfilenamea

[fpc-pascal] Changing compiler modes

2019-07-01 Thread James Richters
e to solve all the issues I have with one mode ore the other... that would take years to accomplish. Any help or suggestions are greatly appreciated. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread James Richters
I see how {$ModeSwitch } work now.. I have far more code that only works in {$Mode TP} so I supposed I'll have to just re-write things to stay compatible with that. Is there a {$Modeswitch } feature I can turn on to allow the % to specify binary numbers when in {$Mode TP}?

Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread James Richters
low modifying a For loop variable, which works in {$Mode TP} For X := 1 to 10 do Begin If somethingmakesmewanttoexit then X:=10; If somethinmakesmewanttoskipthenextthing then Inc(X); End; James -Original Message- From: fpc-pascal On Behalf

[fpc-pascal] MD5 Hash of StringList

2019-07-04 Thread James Richters
strings into some sort of buffer myself and then get the hash from that? Any advice 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] MD5 Hash of StringList

2019-07-04 Thread James Richters
Thanks you! That got me on the right path. Here's the working sample: Hash := Md5Print(MD5String(MyStringlist.Text)); James -Original Message- From: fpc-pascal On Behalf Of Bo Berglund Sent: Thursday, July 4, 2019 11:49 AM To: fpc-pascal@lists.freepascal.org Subject: Re:

[fpc-pascal] specify variable name with string variable

2019-07-07 Thread James Richters
omehow get the value of the variable specified by the name here ) ,4)); End; Begin MyVariableName:= 'MyVariable1'; ShowVariable(MyVariableName); End. Is such a thing possible? James ___ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] specify variable name with string variable

2019-07-07 Thread James Richters
name with string variable On Sun, 7 Jul 2019, James Richters wrote: > This might sound silly, but is it possible to somehow specify a variable > with a string containing the name of the variable? > > For example: > > Var > MyVariable1 : Word; > MyVariableName

Re: [fpc-pascal] specify variable name with string variable

2019-07-08 Thread James Richters
Thank you for the answer and the example... I didn't know there was such a thing as a variable dictionary, but It looks like that may work for me, I'll give it a try! James -Original Message- From: fpc-pascal On Behalf Of zh loza Sent: Sunday, July 7, 2019 4:34 PM To: FPC-Pa

Re: [fpc-pascal] specify variable name with string variable

2019-07-08 Thread James Richters
Generics.Collections seems to be something that was added after 3.0.4, I've downloaded the current FPC source code, but I’m not sure how to build it.. can someone point me in the right direction on how to compile the current source code? James -Original Message- From: fpc-pasca

Re: [fpc-pascal] specify variable name with string variable

2019-07-08 Thread James Richters
I'm on windows Generics.Collections seems to be something that was added after 3.0.4, I've downloaded the current FPC source code, but I’m not sure how to build it.. can someone point me in the right direction on how to compile the current source code? James -Origin

Re: [fpc-pascal] specify variable name with string variable

2019-07-08 Thread James Richters
Thank you, using fgl; did work. Am I correct in assuming that if I want other types of Variables I would change PWord in specialize TFPGMap; to something else, maybe PString, PDouble, PLongint etc? James -Original Message- From: fpc-pascal On Behalf Of Stefan V. Pantazi Sent

Re: [fpc-pascal] specify variable name with string variable

2019-07-08 Thread James Richters
another array also referenced by the same string and then I could make my calls like that. James. From: fpc-pascal On Behalf Of Santiago A. Sent: Monday, July 8, 2019 3:40 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] specify variable name with string variable El

Re: [fpc-pascal] specify variable name with string variable

2019-07-08 Thread James Richters
I’m curious how use classes together with published properties would work, is there a sample of how to use this somewhere? James From: fpc-pascal On Behalf Of Sven Barth via fpc-pascal Sent: Monday, July 8, 2019 5:31 PM To: FPC-Pascal users discussions Cc: Sven Barth Subject: Re: [fpc

[fpc-pascal] Warning: Symbol "faHidden" is not portable

2019-07-19 Thread James Richters
not generate this warning. The Fact that there is a warning about it indicates to me that there must be a better way. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Warning: Symbol "faHidden" is not portable

2019-07-19 Thread James Richters
I'm using Windows 10, but I may in the future want to make a Linux version of my program. I guess that's what the warning is about.. that fAHidden won't detect hidden files on some operating systems? James -Original Message- From: fpc-pascal On Behalf Of wkitt...@wind

Re: [fpc-pascal] Warning: Symbol "faHidden" is not portable

2019-07-20 Thread James Richters
I appreciate the explanation it makes sense to me now. James -Original Message- From: fpc-pascal On Behalf Of Giuliano Colla Sent: Saturday, July 20, 2019 2:46 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Warning: Symbol "faHidden" is not portable Il 19/

[fpc-pascal] USB Human Interface Devices

2019-07-25 Thread James Richters
application. Figuring out how to interface with the device at all is what is holding me up, I don’t have any experience with direct interfacing to any USB devices. Any suggestions? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] USB Human Interface Devices

2019-07-25 Thread James Richters
I am using synapse for RS-232 and I have played with ethernet with it with good results. This device I am trying to use now is only available in USB and it's NOT a USB-Serial device.. The sample program I am referencing accesses it thorough an HID interface James -Original Me

Re: [fpc-pascal] USB Human Interface Devices

2019-07-26 Thread James Richters
tion method or demo I could use to access this USB HID device? James -Original Message- From: fpc-pascal On Behalf Of Brian Sent: Thursday, July 25, 2019 10:41 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] USB Human Interface Devices Try the libusb library Free Pasc

Re: [fpc-pascal] USB Human Interface Devices

2019-07-26 Thread James Richters
PC-Pascal users discussions Cc: Dimitrios Chr. Ioannidis Subject: Re: [fpc-pascal] USB Human Interface Devices Hi, On 2019-07-26 13:39, James Richters wrote: < snip > > Anyone have any suggestions for an FPC only console application method > or demo I could use to access this USB H

Re: [fpc-pascal] USB Human Interface Devices

2019-07-30 Thread James Richters
>>Due to my lack of understanding of Windows, I've not yet taken over his >>changes, because I wanted to wait for confirmation from other users. So if >>James had some feedback, I'd appreciate it greatly. I'm trying to get this to work on windows, I'm h

Re: [fpc-pascal] USB Human Interface Devices

2019-07-30 Thread James Richters
I can figure that out. James -Original Message- From: fpc-pascal On Behalf Of Johann Glaser Sent: Tuesday, July 30, 2019 4:54 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] USB Human Interface Devices Hi James! Am Dienstag, den 30.07.2019, 13:52 -0400 schrieb James Ric

Re: [fpc-pascal] USB Human Interface Devices

2019-08-01 Thread James Richters
I will need to use for Windows. James >Yes, pas-libusb is a Pascal wrapper for the Linux library libusb. That library >itself further depends on libc. Thats why you have to install them, and >including their respective development packages. &

Re: [fpc-pascal] USB Human Interface Devices

2019-08-04 Thread James Richters
easy. Here is the python code that I am trying to implement in my FPC program: https://github.com/wolfmanjm/kivy-smoothie-host/blob/master/modules/hb04.py James From: fpc-pascal On Behalf Of Jean SUZINEAU Sent: Sunday, August 4, 2019 12:39 PM To: fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] USB Human Interface Devices

2019-08-05 Thread James Richters
Hi Jean, Thank you very much for posting the zip, I’ll download it and see if I can figure it out. Also thank you very much for your efforts and help with this. It is VERY much appreciated! James From: fpc-pascal On Behalf Of Jean SUZINEAU Sent: Monday, August 5, 2019 6:49 AM

Re: [fpc-pascal] USB Human Interface Devices

2019-08-06 Thread James Richters
Or for me to learn anything at all about it…. As you probably can guess I haver zero USB experience. James >With pleasure. It's a good occasion for me to learn a bit more on USB. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.o

Re: [fpc-pascal] USB Human Interface Devices

2019-08-06 Thread James Richters
bit? Maybe some completely unrelated issue? If 64bit is needed, what’s the best way to install FPC3.0.4 for x86_64-win64? It seems like I tried to do that before and it wasn’t really very easy to try to learn how to compile it. James I verified, test1library can be build with this command line:

Re: [fpc-pascal] USB Human Interface Devices

2019-08-06 Thread James Richters
26) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted Error: I:\Programming\FPC\3.0.4\bin\i386-win32\ppc386.exe returned an error exitcode Not sure why it can’t find it now, I renamed libusb-1.0.dll and the new one is right under the one I renamed. James

Re: [fpc-pascal] USB Human Interface Devices

2019-08-07 Thread James Richters
e 2: ID 0BDA:5411, port: 1, port path from HCD: 0, Speed: 480 Mbit/s (USB HighSpeed) YAY! I have no idea what this means yet.. but I can see these are the USB devices on my system! I’m going to figure out how to compile the rest of my project with x86_64-win64 an

[fpc-pascal] FP.exe error in x86_64-Win64

2019-08-07 Thread James Richters
why this is bombing immediately or what this error even means? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-07 Thread James Richters
I deleted all files that start with FP so it would have to make new ones and tried to compile: Writeln('Hello World!'); And it did not work.. it has the exact same error. James -Original Message- Hi, Le 07/08/2019 à 13:17, James Richters a écrit : > I’m trying to use

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-07 Thread James Richters
eluxe/releases/tag/1.6.2x to compile the x86_64-Win64 package I don't know what a win64 GDB is either. Can you point me in the right direction? James -Original Message- From: fpc-pascal On Behalf Of Pierre Muller Sent: Wednesday, August 7, 2019 8:07 AM To: fpc-pascal@lists.free

Re: [fpc-pascal] USB Human Interface Devices

2019-08-08 Thread James Richters
Is the static linking issue just with Windows, and it works on Linux, or it isn’t working with FPC at all on either? James From: fpc-pascal On Behalf Of Jean SUZINEAU Sent: Thursday, August 8, 2019 5:40 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] USB Human Interface

Re: [fpc-pascal] USB Human Interface Devices

2019-08-08 Thread James Richters
I finally got the text IDE working with x86_64-Win64! I was thinking of making a bug report on the problem with the Text IDE but before I did that I thought I would test the current Trunk, and surprisingly that worked just fine! so I got my settings all put in it and I was able to compile my

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-08 Thread James Richters
I tried using fpcupdeluxe to compile x86_64-win64 - Trunk, I was then able to compile 64bit programs with the text IDE. I guess the problem was already fixed at some point. James From: fpc-pascal On Behalf Of Jean SUZINEAU Sent: Wednesday, August 7, 2019 7:00 PM To: fpc-pascal

Re: [fpc-pascal] USB Human Interface Devices

2019-08-08 Thread James Richters
were 4 errors compiling module, stopping libusbutil.pas(0) Fatal: Compilation aborted Anyone know what this means and how I might fix it? James -Original Message- From: fpc-pascal On Behalf Of James Richters Sent: Thursday, August 8, 2019 8:20 PM To: jean.

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread James Richters
I am compiling with the Text IDE, and I set it up with the same settings I was using with the 32bit version… and yes I did turn on Range checking, so that explains why we didn’t notice it before. James From: fpc-pascal On Behalf Of Jean SUZINEAU Sent: Friday, August 9, 2019 12:34 AM

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread James Richters
re.ihx file. What is the correct procedure to obtain firmware.ihx?Is there something else I need besides the EZUSB unit that would use that unit to create this file? James -Original Message- From: fpc-pascal On Behalf Of James Richters Sent: Thursday, August 8, 2019 9:37 PM T

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread James Richters
I feel like I'm almost to where I will understand things again but I'm just missing something. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] USB Human Interface Devices

2019-08-09 Thread James Richters
re out how to somehow get similar functions to those in FPC. Some example of how to perform those kinds of functions would be extremely helpful! Thank you for your help with this James -Original Message- From: fpc-pascal On Behalf Of Johann Glaser Sent: Friday, August 9, 2019 7:17

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-09 Thread James Richters
Now I have a new problem. I am able to successfully compile and run my project with the text IDE if I use the trunk version of FPC, and I can run the resulting exe just fine on the computer I compiled it on, but when I run it on one of my other computers, one that I was always able to run the

Re: [fpc-pascal] FP.exe error in x86_64-Win64

2019-08-09 Thread James Richters
: Friday, August 9, 2019 9:24 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] FP.exe error in x86_64-Win64 Le 09/08/2019 à 14:19, James Richters a écrit : Now I have a new problem. I am able to successfully compile and run my project with the text IDE if I use the trunk version of

Re: [fpc-pascal] USB Human Interface Devices

2019-08-10 Thread James Richters
Hi Hansi, Thanks for the sample programs and information. I'm going to try to do as you suggest and try to translate to the new libusb-1.0.. I'm not sure I'll understand it enough but it seems like it's heading in the right directions so would be worth a try. James -

Re: [fpc-pascal] USB Human Interface Devices

2019-08-10 Thread James Richters
where these identifiers were/are defined. I made a fork in github and a branch called "test" here: https://github.com/Zaaphod/pas-libusb/tree/Test Any advice is greatly appreciated James > Actually you could copy the class TUSBPseudoHIDInterface (plus the types > THIDReport and TInt

Re: [fpc-pascal] USB Human Interface Devices

2019-08-11 Thread James Richters
ything with TLibUsbPseudoHIDInterface yet, I was just trying to get libusboop.pas to compile, and be able to still run the previous examples. I've updated my repository at https://github.com/Zaaphod/pas-libusb/tree/Test Let me know if I should do something different with the ^ above, or

Re: [fpc-pascal] USB Human Interface Devices

2019-08-12 Thread James Richters
; WriteLn('Status: ',TheDevice.GetStatus); while true do Write( TheDevice.ReadString); TheDevice.Free; Context.Free; end; begin WHB04B_Device; End. When I run it I get: Running "i:\programming\pas-libusb_test_dll\src\examples\test_open_wh

Re: [fpc-pascal] USB Human Interface Devices

2019-08-13 Thread James Richters
upid to use another complete computer to interface this once device to windows... I guess I'll keep trying to come up with a solution. Anyone have any thoughts on all this? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://list

Re: [fpc-pascal] *** SPAM *** Re: USB Human Interface Devices

2019-08-14 Thread James Richters
t hat I really wanted HidUSB driver and I changed it to LibUsb then is there a way to put it back? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] USB Human Interface Devices

2019-08-14 Thread James Richters
>My code to manage HID USB relays uses hid.dll (32 & 64 bits) or >libusb-1.0 (32 bits only tested) on Windows, and libusb-1.0 or >libusb-0.1 in Linux. I'll have a look at your project.. maybe it will give me some clues. Can you tell me how to get hid.dll? I find it all very confusing, can I just

Re: [fpc-pascal] += property bug?

2019-08-14 Thread James Richters
t than how many keyboard keys you need to hit to get the code on the screen. James -Original Message- From: fpc-pascal On Behalf Of Rainer Stratmann Sent: Wednesday, August 14, 2019 12:33 PM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] += property bug? On Mittwoch, 14.

Re: [fpc-pascal] += property bug?

2019-08-14 Thread James Richters
d with it. If anything perhaps it is a bug of Lazarus to turn it on by default when FPC by itself has it off by default. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] += property bug?

2019-08-14 Thread James Richters
ing 2 years from now is way more important than getting it to work right now... it's when you go back later you want it to be as readable as possible. I guess I just prefer Variable := Formula; syntax and the clarity of it. James -Original Message- From: fpc-pascal On Beha

Re: [fpc-pascal] += property bug?

2019-08-14 Thread James Richters
e new files it creates is to have nothing on except "Allow LABEL and GOTO" and "Allow inline". All other Syntax Switches are turned off including "C-like operators" by default when the text IDE creates a new fp.cfg and fp.ini from scratch. James >> No, th

Re: [fpc-pascal] += property bug?

2019-08-14 Thread James Richters
I agree, I hate the self. And this. I really don't even understand them... I'll keep Freepascal too, which I've been able to do more with than I ever imagined possible. James >I also think to the worse case, in Java, when you need to type something like >a.SetX( a.GetX()+

Re: [fpc-pascal] USB Human Interface Devices

2019-08-15 Thread James Richters
r other windows APIs? James -Original Message- From: fpc-pascal On Behalf Of José Mejuto Sent: Thursday, August 15, 2019 8:34 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] USB Human Interface Devices El 14/08/2019 a las 16:29, James Richters escribió: > I'll have a

<    1   2   3   4   5   6   7   8   9   >