Questions tagged [fpc]

FPC (Free Pascal Compiler) is a 32/64-bit multi-architecture Object Pascal compiler with both Turbo Pascal, Apple Pascal and Delphi dialects.

FPC (Free Pascal Compiler) is a 16/32/64-bit multi-architecture Object Pascal compiler with both Turbo Pascal, Apple Pascal and Delphi dialects.

Free Pascal is the compiler core under the Lazarus RAD project, which provides a portable Delphi-like IDE and RAD. Lazarus has its own tag on Stackoverflow.

However Free Pascal is used directly for server/web/control apps too.

Free Pascal currently supports x86/x86_64, powerpc/powerpc64, sparc and assorted ARMs, and most popular OSes.

8086 (16-bit x86), m68k and Mips are in advanced stages of preparation in the development branch.

164 questions
0
votes
1 answer

Lazarus Pascal / Delphi - Error connecting to database

I'm trying to connect to my postgresql database using Lazarus pascal. I get this error towards the end of compilation (F9). mainform.pas(112,35) Error: Wrong number of parameters specified for call to "Create" Here's my code: dbConn:=…
itsols
  • 5,406
  • 7
  • 51
  • 95
0
votes
1 answer

Windows CE Programming Serial Port - Getting Garbled Output

I am programming a Windows CE 6 device (Motorola MC3100 scanner Terminal). Using Lazarus FPC to compile it. After 3 weeks work I reluctantly post here in the hope someone can suggest why I am getting garbled output from the serial port. The code I…
user576639
  • 89
  • 2
  • 11
0
votes
1 answer

Programming on iOS with FPC

Tell me please where can I get information about developing on iOS with FPC? I don't mean Firemonkey iOS Applications. How can I get access to iPhone enviroment with FPC? For example to GPS or Accelerometer etc. I use RAD Studio XE2 and virtual…
none
  • 65
  • 1
  • 6
0
votes
1 answer

GetTypeData().FloatType in FPC in a mvframework don't compile

In the http://leonardorame.blogspot.com.ar/2009_11_01_archive.html link discusses how to implement a framework compatible with FPC, but the line 54 of the unit MvFrameworkSrvProvider.pas, I can not solve the following problem: case…
0
votes
1 answer

(Lua+iOS) Error to use lua_pushstring

============== Info Develope: MacOS 10.6 SnowLeopard iOS SDK 5.0 FreePascal 2.6.0 for MacOS X FreePascal 2.6.0 for iOS XCode 4.2 Device: iPad Lua: Object library = liblua.a (ver 5.14) ============== Code: A) lua_pushnumber(LuaInstance, 5); B)…
Niro555
  • 1
  • 1
0
votes
2 answers

Check if memory is readable or why do it not catches the exception?

I have this code that gets called from an injected DLL from a foreign process. It sould read some memory ranges but I sometimes get a segmentation fault at this line DataBuffer := TCharPointer(Address + CharOffset)^;. So is there any way to check if…
Maximilian Ruta
  • 518
  • 7
  • 18
0
votes
2 answers

Hang on SomeObject.Free. Check if object is already free in FPC?

if if have an object (in my case TJSONData) and I want to free this object the programm flow sometimes hangs at this position. I already have a construct like the following in my code but it seems to not fit the case some times: if…
Maximilian Ruta
  • 518
  • 7
  • 18
0
votes
1 answer

How to create custom MAPI dll to capture extended MAPI api calls

I've got a legacy application that calls outlook using extended MAPI to send out emails. Outlook is quite unstable, doesnt run as a service and can't handle a lot of emails so I am searching for a way to have outlook replaced. If there is no third…
Joshua
  • 1,709
  • 2
  • 24
  • 38
-1
votes
1 answer

Magento EE banners rotation with full page caching on

A brief description of what I do: - create 2 new test banners - add a Banner Rotator to a cms page, either using the Insert Widget button or via a XML update in the Design tab, selecting the 2 test banners and rotating them as series, random or…
-1
votes
3 answers

Passing data between forms - Ajax Comparison

I made a question that looked like this before and people didn't understand. I'll try to be more concise and will use a comparison with Ajax used in web applications. I have the main form. There I have one button that will extract data from a field…
Tiago Duque
  • 1,956
  • 1
  • 12
  • 31
-2
votes
1 answer

Creating text editor like EDIT on Command Prompt using FreePascal

I want to create a texteditor for my DOS program. I want to create it using FreePascal Compiler. Anybody know the logical programming for create it?
-2
votes
3 answers

System() function in Pascal?

I need the functionality of C++ function "System()" in my Pascal program. Is there any possible way of using it or sth similar? For example I want to imitate the C++ function: System("COLOR fc");
Hooch
  • 28,817
  • 29
  • 102
  • 161
-3
votes
1 answer

FPC/Lazarus and Android development?

Hi, I've heard something about component to Lazarus to develop Android apps... I understand pascal very well and Im not sure if it will be easier to learn Java, or make applications in Pascal ... What do you think? It will be better to work with…
Kryštof Řeháček
  • 1,965
  • 1
  • 16
  • 28
-4
votes
1 answer

Development on iPhone with FPC

Tell me please where can I get iPhoneAll.pas file? Also could you tell me where can I find something about how can I use FPC to develop on iPhone, to use iPhone API? I've found several sites but it's not enough. For…
none
  • 65
  • 1
  • 6
1 2 3
10
11