fpc-pascal
Subscribe to this list Your subscription
Latest threads
- FPC linker oddity5
The following simple program which uses the $LINKLIB compiler directive builds fine under Linux: program Project1; {$Linklib c} Const P : PChar = 'This is fun !';…
- Object file requiring kernel32.dll functions1
The situation is as follows: - Platform: Windows - file1.obj: 3rd omf object file (no source available) that can be used by Delphi linker and calls kernel32.dll…
- FPC linking syntax error10
Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error:…
- loadlibrary() unsafe ?14
Hello. Here the thing: a open-source program, eSpeak (voice synthezer) uses 2 libraries: espeak-library and portaudio. In eSpeak source => - For the Windows version, the…
- For .. in .. loops with sets and valued enums8
Consider the following program: program Project1; type TMyEnum = ( c = 5 ); TMySet = set of TMyEnum; var Item: TMyEnum; begin for Item in TMySet do Writeln('Value = ',…
- FPC ARMEL and ARMHF under the same tree7
I currently have my [cross-]compilers under the same tree, to ease management and the ability to use single fpc.cfg. AFAIU FPC ARMEL and ARMHF are two distinct targets,…
- How to get the permission f a file ?6
Hello. With fpchmod(), it is possible to change the permission of a file. Perfect. But how to check if a file has executable permission (and if not, change it with…
- fpGUI Features11
Does FpGUI supports custom drawing or custom styles of the controls? Regards
- SetPropValue: value as string does not work for Chars and Booleans3
Trying to set the value 'a' to a property Char and a 'True' to a Boolean property, I got some errors (logs in attached) in function 'TypInfo.SetPropValue'. But I did the…
- TDataset incompatible with Delphi 7 and later2
I've noticed the following incompatible (missing) TDataset properties, which have been available at least since Delphi 7 onwards (maybe even earlier). These are missing…
- Re: FPC roadmap?13
Thank for answers. Are some dates planned for 3.0 release ? Actually, we have some risks : 2.6 is frozen and not supported but 3.0 is not released yet. I took a little…
- [PATCH] Extends SetPropValue/GetPropValue making it compatible with new versions of Delphi0
Please see it in: http://bugs.freepascal.org/view.php?id=28278 Thank you! Silvio Clécio My public projects - github.com/silvioprog
- record helpers & how they effect records3
using a simple record, e.g. some_record_type = record a, b : longint; end; If I declare a record helper, does this change the record in any way? i.e. does the record…
- p2js - pascal to javascript compiler5
Take a look at this interesting product: http://p2js.gelicon.biz/en It's build upon FPC source and has GPL license. It looks interesting. Perhaps we can use this to…
- Tips & Tricks: AllocationPreference Registry Key0
I was only recently made aware that this registry key exists. I thought it might be useful to other developers developing for the Windows platform. This can help with…
- Writing a DLL to be use in a VBA code4
At work, I need to create a Excel sheet containing certain more complex functions. I tried to use only VBA, but I released I will more productive if I could use a DLL…
- valgrind: "invalid read"4
I have just started using valgrind, and I was surprised that I got a lot of errors, particularly in places that look like clean code. So I whittled things down and…
- Re: FPC roadmap?2
Thanks for info. Personally, I'm able to use fixes_3_0 branch, the problem is that solution is not easy to support even for small developers group and some build/tests…
- How can I write a multithread program as simple as possible?8
Hi! I read the Wiki about this article, it's looks like very complicated for me. :-( Can anybody show me a very simple example? Below is a code, i would like to run it…
- FPC roadmap?2
Hi All! Does "roadmap" exist in some form? As we (small company) are planning to migrate many modules from D7 to FPC, it was very interesting to know the plans of…
- Managed types within records1
when I have a record which has managed types (i.e. strings), how are they handled by the compiler when I assign one record to the other? Example:…
- DateTimeToStr: 2958466, 00 is not a valid TDatetime encoding, maximum value is 2958466, 003
This code works fine in Delphi 7 / XE 7: var D: TDateTime; S: string; begin D := MaxDateTime; S := DateTimeToStr(D); end; Return: 12/31/9999 11:59:59 PM. But, in FPC…
- File handling: the TFileStream or the classical way is faster and more efficient?8
Hi All! What is the faster and more efficient, using the TFileStream or the classical way ("file of byte", or "file") type with blockread/blockwrite and the other…
- Debug info at runtime?2
How is possible to get some debug information at runtime? Assuming, the program compiled with required debug information/symbols. I.e. how to get actual call stack state…
- Boring problem when I try to create a database using SQLdb (again)4
I need to create numbered databases like 09_0025, 09_0026 etc., that using any SQL tool like pgAdmin, I just execute this script, and it works fine: CREATE DATABASE…
- How to instantiate a public type in a generic class3
Using Freepascal 2.6.4, I have a problem about generics. In short, I can't specialize a class with a subtype of a type declared with "public type". Let me try to explain.
- Re: fpc-pascal Digest, Vol 131, Issue 191
Thank for answer. I would be a good idea to add this limitation in doc. Serguei
- Truncate procedure unable to work under Linux, is this a bug?7
Truncate procedure unable to work under Linux, is this a bug? This code is unable to work under linux: the Truncate drops an error message if the file is larger than 2…
- TFPHashList and nil pointers3
Is it normal that TFPHashList cannot find an item by name if the pointer is nil? However, the item is stored in the list. FPC 2.6.4, both Windows and Linux versions.…
- SqlDB + SQLite3 - CreateDB() call3
Does SqlDB+SQLite3 support creating a SQLite database via the TSQLConnection.CreateDB() call? I tested with FPC 2.6.4 and it doesn't seem to work. More specifically,…
