lazarus

Lazarus - why I can't assign event to run-time component?

Hello, I have this Lazarus program: unit Unit2; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls, ComCtrls; type { TForm2 } TForm2 = class(TForm) procedure OnTlacitkoClick(Sender: TObject); procedure FormClose(Sender: TObject; var CloseAction:...

Cross-platform tool for translating and internationalizing Delphi & FreePascal programs

I'm writing a program for both Delphi and Lazarus/FreePascal, so I can also reach customers using Linux or Mac OS X. Is there a cross-platform tool that works in both environments too, so I can add multiple languages? I tried GNU Gettext for Delphi and C++ Builder, but it does not compile in Lazarus for Mac OS X. Is there anything compa...

How to create makefile for Lazarus projects?

After doing a light search on the Lazarus site I've come to the conclusion that this question has been asked some times but I haven't found an answer, so I'll ask my SO peers. Is there a a way to create a Makefile to replicate the action of the Lazarus IDE when it compiles a project. If so I really don't mind if it's makefile.fpc or ju...

How to determine if dll file was compiled as x64 or x86 bit using either Delphi or Lazarus

Using either Delphi 2007+ or Lazarus(Win64) I'm looking for a way to determine if a dll is compiled as x64 or x86? ...

Using windows command line from Pascal

I'm trying to use some windows command line tools from within a short Pascal program. To make it easier, I'm writing a function called DoShell which takes a command line string as an argument and returns a record type called ShellResult, with one field for the process's exitcode and one field for the process's output text. I'm having m...

Why would a Delphi programmer use Lazarus as the IDE instead of using Delphi's IDE?

I've been very happy with the Delphi IDE for programming in Delphi. But I've heard about the Lazarus programming environment, and I've also heard that some Delphi programmers use it instead of the Delphi IDE. What are the advantages that Lazarus has over the Delphi IDE, and why would, or should a Delphi programmer switch to it? The...

Lazarus: Can't find unit [unit] used by [program]

I'm trying to use an external library (wingraph) in a simple program. I have .o and .ppu files. I added the directory that contains them to the list of both "Other Unit Files" and "Include Files" paths under Project->Compiler Options. When building, I still get the error "Can't find unit wingraph used by [program]". The library is Windo...

Is there an option analogous to Delphi "Use debug DCUs" in Lazarus

I'd like to debug Lazarus library code. In Delphi IDE I would simply check the Project Options -> Compiler -> Use Debug DCUs option on. Is there something similar in Lazarus? ...

How make {$IFNDEF DEBUG} work in lazarus/osx project

I need to disable some code when run under the debugger. So, I just imagine that doing: {$IFNDEF DEBUG} ... {$ENDIF} However, the code inside the ifndef is executed in the debugger, makin it crash. I have lazarus 0.9.29 & FPC 2.4.0 ...

Fpgui and lcl and qt, what are the advantages and disadvantages?

Hi, Lazarus Ide can use several gui libraries. I am on Windows. I wonder what are difference among them... It is clear that lcl is most stable. Why would anyone use Qt and fpgui once they will be of good quality? ...

Where can I find a "Turbo" or "Lite" version of Delphi?

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 longer available for download. So...where does that leave him? Is there any low cost or introductory version of Delphi available legally somewh...

What encryption algorithm should be used for encrypting text as text n FreePascal/Delphi?

I need to encrypt some text in my program developed using Lazarus/Freepascal, but I should be able to load them as text and decrypt them, rather than in binary because I need to save them in a TStrings type property. Which algorithm(s) are suited to that? ...

Open URL using Delphi

I'm doing a little (or at least I'm hoping it's little) favor for a friend, but haven't used Delphi in 10 or so years... and my searches haven't been of much use What I'm trying to do is to GET an URL and then parse the HTML to find some info he needs. I'm hoping for something like this (in python) fileHandle = urllib2.urlopen(urlStr) a...

Duplicate Identifier Error

I was just coding on my Lazarus, without changing nothing on the TForm declarations. Then I tried to test my application, but on the compilation I got this error: TomAct.lpr(11,43) Error: Duplicate identifier "TOMACT" TomAct.lpr(15,32) Error: Identifier not found "TForm1" TomAct.lpr(15,39) Error: Identifier not found "Form1" TomAct.lpr(...

Delphi & Lazarus both installed

Just a quick question for those of you that know. Is it possible to have both Delphi (ver 7) and Lazarus installed at the same time. I want to make sure the Lazarus install will not interfere with my current Delphi install in ANY WAY. I would have asked this on the Lazarus fourms but thought I would get quicker reply here. Anyway if you...

Active blogs about Lazarus and/or FPC

I'm getting really pissed with the whole direction that "Emborcadero" is taking and I'm really going to invest in FPC/Lazarus. Went to the Lazarus Documentation page and found the following blogs: Lazarus Development - Up to date Adventures of a Newbie - FPC Wiki page On the road with Lazarus/Free Pascal - Up to date Porting to Lazaru...

Where is the FPC/Lazarus community?

Calling all FreePascal and/or Lazarus big-shots!! Looking at the bulk of the questions tagged [FPC] or [Lazarus] we can find that it's Marco van de Voort that will answer most of them... But why? Where's the rest of the FPC and/or Lazarus community? There is a growing number of Delphi people around here, but I do miss some more i...

Execute code in the context of the main thread (Lazarus)

I have to execute some code in the context of the main thread. I am using Lazarus + FPC. I receive an event from a thread inside a DLL (shared library if on linux) and my callback function gets called. Note that this function is not a member of any class but a standalone traditional function with a "cdecl" directive attached. I have to ...

How to use QT 4.6.3 Binding with Lazarus

Is there a way to use QT 4.6.3 visual controls with Lazarus 0.9.28.2 Beta? How I can install the QT widgets and have them in my Controls pallete? ...

Writing a SOAP service on Linux - tools, help needed

I need to write a SOAP service for Linux (CentOS). I need to do this using Lazarus/FreePascal. The service needs to be a binary (daemon) that runs in the background. Questions: 1. Is this possible (as a standalone executable)? 2. If not, what are the alternatives? 3. How do I start? 4. What additional tools/libraries do I need? ...