freepascal Questions
3
Solved
It's incredibly impossible to find things for FreePascal because all searches end up at some sort of Delphi related site.
Is there a built-in Dictionary object?
This page references "TDictionary...
Pteridophyte asked 2/4, 2013 at 21:45
4
I just installed FPC 3.2.0 (on Linux Mint 19.3) and trying to use FPC IDE. I launched the IDE from the bin installation subfolder as ./fp, written a simplest program in IDE
program hello;
begin
w...
Dismuke asked 4/7, 2020 at 14:12
2
Solved
I tried to use Delphi's syntax for anonymous methods:
type
fun = reference to function(): Integer;
Fpc shows a syntax error:
Error: Identifier not found "reference"
What's the Free Pascal eq...
Aleron asked 17/10, 2011 at 20:19
4
I installed 64-bit Lazarus and want to generate 32-bit code. When I try to set Target OS to Win32 I get error message
Compiler "C:\Programs\lazarus\fpc\2.6.0\bin\x86_64-win64\fpc.exe" does
not ...
Eno asked 14/12, 2012 at 8:10
2
Why is pascal giving me unreachable code in line (8,21) and (8,12). I don't know why its a simple code for making an octal number of 3 digits to decimal. The program is ok because is giving me the ...
Johiah asked 9/5, 2020 at 8:44
1
I am trying to implement nsurlconnectiondatadelegate as I need to support async mode - in synchronous mode redirects are followed automatically which I do not want.
For reference I have the code ...
Replevin asked 27/5, 2018 at 10:18
2
Solved
Today I tried to use BrookFramework with Lazarus 2.0.6 on Windows 10. It compiled everything just fine (I tried the simple FastCGI application), but when I try to open the file "http://localhost/cg...
Amethist asked 4/3, 2020 at 15:55
2
Solved
Why would you use a Dependency Injection Framework when you can simple use the following pattern?
unit uSomeServiceIntf;
interface
type
ISomeService = interface
procedure SomeMethod;
end;
va...
Adore asked 10/5, 2011 at 4:5
4
Solved
For a function to return a value in Pascal the assignment FunctionName := SomeVal; is used. I assume it doesn't stop the function execution in that exact place as return in C does. Is there somethi...
Titustityus asked 9/3, 2012 at 22:6
4
Solved
I'm looking to find something like Torry but instead of being Delphi centric, it should be Lazarus centric.
I'm aware of the Source Forge Project Code and Component Repository but I'm looking for ...
Weakfish asked 3/8, 2009 at 22:58
4
I have a multi-platform application written in Free Pascal. This application plays a short sound on some event. On Windows, I can do this by MMSystem and sndPlaySound('sound.wav'). However, I don't...
Woald asked 7/8, 2012 at 21:45
4
Solved
I can't believe I am struggling so much with this! Hopefully it is an easy one. Using either Delphi or Freepascal:
Given the whole integer value "1230", or "1850", how do you format that as a flo...
Graniah asked 26/11, 2019 at 13:50
7
Solved
I'm interested in a library(for windows) written in Delphi/Pascal or C++ that allows me to record(to a video format) desktop screen, requirements:
must be able to specify the frame rate, or...
Bacterin asked 29/11, 2011 at 20:34
8
Solved
I have a co-worker with a strong background in Ruby that is interested in getting started with Delphi and native development. However, I understand that Turbo Delphi (based on Delphi 2006) is no lo...
Angiosperm asked 9/7, 2010 at 4:41
3
Solved
I have the following:
TDirection = (dirNorth, dirEast, dirSouth, dirWest);
TDirections = set of TDirection;
In a seperate class I have it declared as a property:
property Directions: TDirection...
Wilmer asked 12/9, 2013 at 19:50
3
Solved
I'm starting to play with FreePascal/Lazarus and there appears to be an Indy port available. Is this a recent port and is it stable enough to use in production use? (Standard HTTP post/get client t...
Gatias asked 15/12, 2010 at 14:41
1
Solved
Why is it imposible to enter critical section without Sleep(1)?
type
TMyThread = class(TThread)
public
procedure Execute; override;
end;
var
T: TMyThread;
c: TRTLCriticalSection;
implement...
Nuris asked 29/11, 2017 at 10:21
3
I am trying to install an FPC program on to android device by following this article.
While creating .dex file by giving the input as .jar (classes.jar) file, it is giving the following error.
...
Forkey asked 10/6, 2016 at 10:15
4
Solved
Background:
While optimizing some Pascal code with embedded assembly language, I noticed an unnecessary MOV instruction, and removed it.
To my surprise, removing the un-necessary instruction caus...
Edmonton asked 27/7, 2013 at 10:25
2
Solved
I've this file:
Bulgaria = Bulgarian
Croatia = Croatian
Austria = Croatian
Czech Republic = Czech
Slovakia = Czech
Denmark = Danish
Germany = Danish
Belgium = Dutch
Netherlands = Dutch
Ireland = E...
Dett asked 12/5, 2017 at 20:7
1
I have already set up build and debug environment for Object Pascal inside Visual Studio Code via FPC and GDB, but I just made build process work for programs containing only 1 .pas file via
"comm...
Junk asked 12/4, 2017 at 13:49
2
Solved
I have a unit which is for both Delphi & Lazarus. In Lazarus the unit compiled without any exception but in Delphi it gives me Error Data type too large: exceeds 2 GB. Below is the code:
unit ...
Pouliot asked 4/4, 2017 at 7:19
5
Solved
I need to pull numbers from a string and put them into a list, there are some rules to this however such as identifying if the extracted number is a Integer or Float.
The task sounds simple enough...
Lobito asked 31/10, 2016 at 13:56
3
Solved
Here's my problem: I want to create a record type where among the cases of a variant record, some, but not all, will have a certain field. According to the wiki, this is perfectly legal. And yet, w...
Besprent asked 21/4, 2016 at 6:24
1
Solved
From the OmniPascal page on Visual Studio Marketplace:
How to install
Install Visual Studio Code and open it.
Open View -> Command Palette... and type ext install OmniPascal
Restart Vi...
Mcchesney asked 15/4, 2016 at 0:4
1 Next >
© 2022 - 2025 — McMap. All rights reserved.