fpc-pascal · 2020-12
- GetClipboardFormatName causing an Error 21614
I'm trying to write a programs to get data from the windows clipboard that was put into it with Notepad++ using vertical editing. It uses a non-standard format and I'm…
- Operators for a class1
I try to convert some C++ source to FPC, see below a short example from it. How can I define same operator with FPC trunk? class Cla { INT64 Num; public: Cla operator…
- Two versions of freemem() - are they equal2
Do both these method yield the same result, or is one better (performance, safer?) that the other? procedure FreeMem(p:pointer;Size:ptruint); procedure…
- Reading Serial Hex Data10
I'm trying to figure out how to read a packet of HEX Bytes of an unknown length that have no specific termination character over a serial port as efficiently as…
- CP_NONE string disappearing1
this code: program Project1; {$mode objfpc}{$H+} var a,b, c: string; begin a := 'x'; b := 'y'; SetCodePage(RawByteString(b), CP_NONE, false); c := a+b; …
- TCustomStream still using LongInt and not Int642
Is this a bug in FPC 3.2.0 where TCustomStream still uses LongInt in the Read() method, where all other methods in in the class uses Int64 type? Here is the FPC code:…
- Documentation bug - Language Ref - Ordinal types1
According to this HTML page: https://freepascal.org/docs-html/ref/refsu4.html The data types Byte, Word and Cardinal (LongWord) has the following ranges: 128..255 Byte…
- heaptrc unit troubles with New() & Dispose() calls2
Are there any known issues with heaptrc unit via compiler parameters -gl -gh, when using New() and Dispose() to manually allocate and free memory. I helped someone debug…
- TurboVision is reborn as FOSS (again)30
https://github.com/magiblot/tvision Someone enterprising could make a TurboPascal clone out of FPC. :-) Liam Proven – Profile: https://about.me/liamproven Email: –…
- FCL-DB Classes Implementation.6
Are there plans to implement TArrayField, TADTField, TReferenceField, TDatasetField classes in fcl-db package? Thank you. Regards. Ioulianos Kakoulidis.
- Selecting Records with a variable14
The best way to explain what I'm hoping to do is by example... Say I have this record: Type Axis_Record = Record X,Y,Z,A,B,C : Double; End; Var AxisValue :…
- callback from c with varargs6
I'm trying to use a c library where I can define a logging plugin. The c prototype for the callback is void (*log)(void *logContext, UA_LogLevel level, UA_LogCategory…
- Initialization of constant record member of pointer type16
is there a way how to initialize record member of pointer type (other than PChar) in the following example: type TMyRec=record a: PByte; // if I change PByte…
- Error compiling on AROS/m68k: 1980-0-0 is not a valid date specification6
I've trying FPC on an Vampire 4 SA machine with ApolloOS/AROS m68k. Whenever I try to compile a pascal program (simple "Hello World" style) the compiler stopps with an…
- An idea for a "pair" type3
Just for fun I wanted to see what people thought about a potential "pair" type added to the compiler. Dictionaries have proven themselves to be a fundamental type we use…
- netdb, TCP, and DNS queries4
Following up on the work I've being doing to add support for DNS queries over TCP to netdb and to add support for querying all of the standard resource types such as MX,…
- Range Check runtime errors4
I was recently troubleshooting a program that got a range check error and had quite a time figuring it out... it gave me the line number that generated the error... but…
- How to get the current translation of a resource string?7
Since I want to treat a specific exception that cannot be distinguished by the class alone but only by the class and message, I need to find the current translation of…
