fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Avoiding that terminal window is opened when running a app with allegro.pas graphics?0
If I create a shortcut to the binary and run it from the desktop a terminal window is opened. Is there away to avoid this?
- It's alive !11
Finally, the moment has come: https://www.youtube.com/watch?v=xos2MnVxe-c Following up on a bounty offered, Dmitry Boyarintsev has accomplished milestone one in the…
- for-in loop cast4
Question I’ve always had. Why do I need to cast “value” to “pointer" otherwise I get: Incompatible types: got "Pointer" expected “TObject” error?. I don’t…
- Printing terminal colors with writeln4
In C I can do: // https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences printf("\033[31;1;4mHello\033[0m"); and get red text in the terminal…
- FPC docs about FindFirst15
https://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html 1) add to the list of attribs the value faAnyFile. 2) correct the example: call FindClose only inside…
- Calculating Pixels to represent 3D coordinates14
I'm curious if Freepascal has any package available that would calculate X,Y screen pixels based on 3D X,Y,Z data at some given rotations. I'm using Agg-Pas with…
- Overloading Inc and Dec procedures?2
seems, that overloading of Inc, Dec internal compiler procedures is not allowed. Is it by intention or can it be fixed (adding overload keyword to system function…
- Generics: Error: Can't determine which overloaded function to call1
I have generics record, where one method computes distance between 2 points: function T2DPoint.Distance(P: T2DPoint): Single; begin Result := Sqrt(Sqr(x-P.x) +…
- Read lines into UnicodeString variable from UCS2 (UTF-16) encoded text file26
is there any smart way how to read string data line by line from UCS2 encoded text files (lines delimited by $0A00). Using ReadLn(TextFile, UnicodeStringVariable) does…
- Illegal counter variable?30
Can someone please tell me why this happens? Var I : Longint = 0; Begin For I := 1 to 6 Do Writeln(I); End. This gives me : initialize.pas(4,5) Error: Illegal counter…
- Very vague gettickcount64 description?31
While consulting the online reference about gettickcount https://www.freepascal.org/docs-html/rtl/sysutils/gettickcount64.html I could not know anything about the units…
- Challenge accepted7
Few months ago I read somewhere on the fpc-mailinglists that someone stated that FPC is fine, but it could use more additional stuff. I really searched, but I can not…
- Tests results of several pascal based JSON parsers18
I've posted a new page that tests the speed and correctness of several pascal based JSON parsers. https://www.getlazarus.org/json/tests/ In full disclosure I am the…
- Interface delegation causes memory leak0
- unit DelegateTalkerImpl; - - interface - - {$MODE OBJFPC} - - uses - - TalkerIntf; - - type - - …
- USB Human Interface Devices164
Does Freepascal have support for USB Human Interface devices? I am attempting to interface to an WHB04B-4 https://www.amazon.com/gp/product/B07M5ZY1P2 I have an…
- how to convert JNByteBuffer variable type to type usable by fw.write2
Please, does somebody of us know how to write file by using binary mode and writing data from The variable which have JNByteBuffer variable type? What do I had to do so…
- ppc64le ABI problem18
while examining a crash when running Lazarus on ppc64le, I found the following issue in function calls. Calls to functions with more than eight parameters seem to be…
- A new design for a JSON Parser2
I know the FCL already has a capable JSON parser, but I am writing some Amazon web service interfacing projects and wanted a smaller easier to use JSON parser to assist.…
- New Cocoa headers3
I just updated to the newer Cocoa headers (Thanks Jonas!) and I've run into a problem with Lazarus. NSExtensionContext.inc includes this line: {$if…
- fpcjvm code for examination1
Because my Java knowledge are very very very weak my attempts to call new Android API functions consists of GOogle search engine which shows Me some code examples from…
- bug while generating androidR25.pas and Androidr25.inc0
I know, that this task is heavy and should be only performed by The elites among Pascal programmers not by users of this programming language. But I Am sure, that if…
- linking Openwatcom object files (DOS)2
While reading some old FPC posts I saw that the old DOS compiler (3.0.4) used the OpenWatcom linker. Does this mean that I can link object files and libraries created…
- Documentation generation4
How are the FPC RTL documentations generated? I wanted to see if I could generate .docsets files from them also. Ryan Joseph
- TFPSList clear but not shrink0
Is it possible to remove or clear items from TFPSList without actually shrinking the memory (i.e. setting capacity to 0)? Looking the source below I see every time I…
- String type with specified length and without codepage3
I try to rewrite some C/C++ code with FPC. I don't know which is the best string handling technique in this case. The original code for example: char …
- Compiler regression2
Hi all Could somebody look at https://bugs.freepascal.org/view.php?id=35877 ? Latest fpc trunk is completely broken while using generics.collections. Denis Golovan
- FPCJVM Android JVM target and Android 23.inc issue0
I have fallen in to complex issue and I do not know how to solve that. I can make myself happy thanks to Pandroid and his author, because I can create, modify some…
- where to find materials about MP3 file format4
I have A very big and non easy dream. Making similar MP3 editor like MP3 direct cut for Windows is. But sure! I would like to develop it for Android. And I want to…
- PPCJVM Android JVM target and 64 bit native libraries calling0
Please does somebody of you know, if is it possible to call 64 Bit native .so libraries when user uses PPCJVM and Android JVM target and system produces .dex file from…
- += property bug?38
Is this a bug? It should resolve to: d.setter(d.getter + 10) but it doesn’t seem to be working. ======================================== {$mode objfpc} {$modeswitch…
