fpc-pascal · 2017-08
- Free Pascal 3.0.4-rc1 released!7
We have placed the first release candidate of the Free Pascal Compiler version 3.0.4 on our ftp servers. You can help improve the upcoming 3.0.4 release by downloading…
- TP compatibility: procedural type15
Hello, all. According to Borland's official language guide to To be used as procedural values, procedures and functions must be declared with a 'far' directive or…
- Agg Pas Arcs8
I'm having an issue with drawing Arcs with AggPas, and I can't quite put my finger on it... What's happening is that small arc segments are just not being drawn...…
- H2pas tool vs others, C header translation39
Forgive me, I have forgotten, this may have been discussed before.. Is h2pas the latest tool to convert C headers to pas files? Is there a competing tool that does more,…
- HTTPS with fphttpclient1
I'd like to make a request to a HTTPS address with TfpHTTPClient but am getting an unknown protocol error. I'm running fpc 2.6.4 on Rasbian 8 (Jessie) on a Pi 3. Here's…
- FPHTTPClient OpenSSL implementation2
For years I'm working with synapse (Ararat) with OpenSSL and there is same openssl.pas lib. So problem is with: in InitSSLInterface: if assigned(_RandScreen)…
- Freepascal Floating Point Issue37
I am having an issue with a simple floating point application. I am setting a variable to a specific value and immediately after I set it, it is not exactly what I set…
- sending new parameters to existing instance4
I have a windows console application I wrote with Freepascal. I can send it a command line parameter for a file to use have it working so if I just double click on…
- ExtractRelativePath() not always returning expected result4
I’m trying to figure out ExtractRelativePath() and I’ve run the sample program found here: https://www.freepascal.org/docs-html/rtl/sysutils/extractrelativepath.html…
- Inline ASM code3
I need store result of floating point calculation (in my example arctan()) in memory pointed by some variable. See this code: var a: single; pa: PSingle; asm fild dy…
- Check In Interface Type Helpers21
I just wanted to point out that revision 37023 Sven added type helper support for interfaces. Good job and thank you Sven!
- StringOfChar for Unicode/Widestring1
Do we have a StringOfChar function for UnicodeString/WideString in FreePascal? I could not find it in 3.0.4RC1 (which may tell you more about me that fpc). Bart
- fpReport released3
A long time wait. But it finally made it: fpreport has been committed to FPC SVN: packages/fcl-report. It should compile on windows, linux, freebsd and darwin. Features…
- TStringHelper missing3
I’m trying to split a string by a delimiter and see there is a type helper called TStringHelper (https://www.freepascal.org/docs-html/rtl/sysutils/tstringhelper.html).…
- Super Large Integer Math Calculations10
For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine, why can't the math be broken down into peices the way a human does it on paper, and then…
- Serial communications: synaser vs FPC's serial unit10
If somebody with more experience (than me) with the Synaser and FPC serial.pp units could comment, that would be much appreciated. For a new cross-platform project where…
- Defining sonames?33
MSEgui uses xlib by the units in packages/x11. The linker searches for libX11.so which is not installed on most systems by default so one has to install the libx11 devel…
- Pascal support in the Kattis educational site3
A bit of news which I think has some interest here: "Kattis" (open.kattis.com) is a site where students can make programming exercises. This is quite important IMHO;…
- Proposed tidy-up of the FPC Manual section on Character Types and the FPC Wiki3
There has been some heated discussion on the Lazarus lists on the subject to character encodings etc. This has exposed several issues with the FPC Manual that I wanted…
- homepage - no foundation link1
Maybe I'm going blind (considering the amount of screen time its very likely), but I don't see any link to the Free Pascal Foundation from the Free Pascal homepage?…
- TStringList - Strange quotation mark handling7
With the attached example program and data.csv I got the next result: 0 * 84392 1 * asfds 2 * hytr 3 * 43421454 4 * O 5 * fdsfds 6 * 654645645 "O" fdsfsd 7 * hgfgfedw 8…
- Multi-OS fp.ini and fp.cfg ?1
Would it be not too hard to make fp.ini and fp.cfg containing sections dedicated to one OS (bot read by others, but kept untouched) ? I'm working on my source codes both…
- Using other fpc installation10
For debugging reasons I have installed fpc 2.6.4 on Debian so I can compile some old SVN revisions, number 32959 for example. I want to use the fp editor to run the…
- Best way to insert bytes into a TBytes variable?21
I am working on moving away from using AnsiString as communications buffer in an old application, so I need to write efficient replacements for certain string functions…
- TInifile does not handle " " (space) as a value.9
Dear List. I was trying to use the ini file for our program to store a single space " " as a value, but this does not seem to be posible. From the Wikipedia definition…
- TMemDataSet1
Does TMemDataSet support loading/saving blobs? Mattias
- BlockWrite() version 2.6.46
Can anyone familiar with FPC 2.6.4 comment on the specifics of how BlockWrite() functions under Linux. Specifically does BlockWrite() call the Linux kernel or call…
- program crash when -Cfsse2 enabled0
Hi this is a portion of the program , when i add -Cfsse2 it crashes. but works ok without sse2 ////////////////////////////////////// program demo; {$ifdef FPC}{$mode…
- Food for thought - language string improvement46
Ever had a problem like this? You have some SQL, say: SELECT Customers.CustomerName, Orders.OrderID FROM Customers FULL OUTER JOIN Orders ON Customers.CustomerID =…
- FPC IDE generating Sig2910
I keep getting 'Program generated a signal 291. Save your sources and restart the IDE.' Errors with the FPC IDE. I'm using version 3.0.4RC1 on a Windows 10 x64…
- Windows API SendMessage()4
I'm trying to use SenMessage() to turn the display on or off under program control of a console application. I got the function to work, and it turns off the display,…
- inline callback functions?3
I’m seeing feature this in other languages and it’s pretty useful. Has anyone ever considered this for Pascal? Instead of declaring a method in the class (or other…
- why the 0.5 in the Unix Epoch (for UnixToDateTime function)5
I just noticed that the definition of the constants have 0.5 in it. Why? from dateh.inc const JulianEpoch = TDateTime(-2415018.5); UnixEpoch = JulianEpoch +…
- Syncobjs Event and BlockWrite() question0
When using WaitFor() , ResetEvent and SetEvent as a semaphore , if a thread is using BlockWrite() and the execution of BlockWrite() is conditional on WaitFor() , will…
- Is it always safe to typecast a old style object as its parent?0
TParent = object A : integer; end; TChild=object(TParent) B : integer; end; var Parent : TParent; Child : TChild; begin Child.A := 10; Child.B := 20; Parent :=…
