freepascal

Which is more appropriate for pbx events, TIdTCPServer or TIdTCPClient?

I am trying out some IP PBX systems, Asterisk, Freeswitch, and Yate,to register for events in the PBX, and I want to know which of these components is the better one. The component is supposed to register with the PBX for events, receive them, send some responses and issues some commands. Which of the two would be the more appropriate? ...

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...

Exchanging strings (PChar) between a Freepascal compiled DLL and a Delphi compiled EXE

After a lot of experimentations, I found a way to exchange PChar from a FreePascal compiled DLL with a Delphi compiled EXE. I'm in charge of both the DLL and EXE source code but one MUST BE in FreePascal and the other one in Delphi. My solution involves the following methods in the DLL: function GetAString(): PChar; var aString: string;...

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...

meaning of this statement?

In a Pascal program, what does statement s1:=[0,3,7] mean ? ...

keywords must be uset to create a variant record??

what keywords must be used to create a variant record?? ...

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? ...

Can I use zipimport to ship a embedded python?

Currently I deploy a full python distribution (the original python 2.7 msi) with my app. Is a embebed web server, made with delphi. Reading http://www.python-forum.org/pythonforum/viewtopic.php?f=1&t=18623 I wonder if is possible to use this for embed the necessary python files with my app, to decrease load files and avoid conflict...

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...

Why Pascal const arrays aren't actually constants?

Program ConstTest; Const constVar = 1; Begin constVar := 3; WriteLn(constVar); End. It's pretty obvious that the above code will not compile, because it's not right to change the value of a constant. However, following code will compile, and will return "1; 5; 3;", even though the array is a const: Program ConstTest; ...

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...

Is there a SAX Parser for Delphi and Free Pascal?

Besides MSXML and SAX for Pascal, can you recommend a SAX parser for Delphi? It would be great if it could be used in cross-platform applications with Free Pascal. ...

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? ...

Can the characterset in TSynedit in Lazarus be set?

hi, I use TSynedit component in a program. I noticed when I use SynEdit1.Lines.SaveToFile(loadedfile);, then it is saved in utf8 encoding. Is there a way to change that?. I changed font.charset property of Synedit1 object but it made no difference. Any ideas? ...

Besides "pebongo" is there another MongoDB component for FreePascal?

I'm aware of pebongo. It looks like a splendid effort. My issue with it is that it's in a very early stage and the only thing I can see the guy implemented was the BSON I/O lib. MongoDB over the wire is still in progress, according to the info of the project. I haven't tried it myself, but I need a bit more than this. ...

Where can I find the fpmake.pp framework source?

Hey guys, well Marco actually :) Where can I find the initial effort from the person who started fpmake.pp so I can pick up and/or continue. I'm about to get into a very complicated, in terms of building rules, project and I would really like to master the whole thing... OR bend it to my will :) ...