fpc-pascal · 2011-03
- run pascal programs as scripts43
I would like to execute small pascal programs like normal unix scripts. For example: #!/usr/bin/instantfpc begin writeln('shebang executed'); end. Has anyone already…
- Strange arm-linux cross-compilation errors2
In this thread: http://www.lazarus.freepascal.org/index.php/topic,12585.0.html I though that maybe posting here would help, since the user has some problems with some…
- TIniFile crash/memory loss14
When you use TIniFile with CacheUpdates := true, then when you free the TIniFile an error can occur if the component was unable to update the changes (in UpdateFile),…
- Generics in Delphi mode?5
Hi. I just found out today that generics also work in Free Pascal (and as I understand it, it was even implemented before it was added in delphi :) ). However, the way…
- Lazarus 0.9.30 released2
The Lazarus team is glad to announce the 0.9.30 release. This release is based on fpc 2.4.2. This release is available for download at the SourceForge download page:…
- calling object pascal object function in c/c++3
I am working on calling object pascal functions from c/c++. I notice that when a unit is compiled into object code, the name of a function is altered in this convention:
- TDOMElement and multiple attributes9
I want to create a node with multiple attributes. It works by using SetAttribute multiple times but it looks like I cannot specify the order in which the attributes…
- Associate initializer value with array item type1
Hello. Let's say I have a type: TClothingType = (ctJacket, ctPants, ctShirt); and I want to associate it with color: var Colors: array[TClothingType] = (clRed, clBlue,…
- SAX XML example0
There is on wiki nice tutorial about XML, but I can't find any example how to use units SAX and SAX_XML. I have very big XML and I must read it partially. Regards.
- Looking for a suitable graphics library/component5
I am seeking for some advice regarding what graphics library to use for a new project. I am aware that the application can be done by drawing lines, points and text…
- Using properties in interfaces1
if I understand the documentation correct, this is the only way using a property in an interface: IMyInterface = interface function GetTag: Integer; procedure…
- Re: Accessing USB HID from Lazarus programs?8
I posted this on the lazarus list but they suggested to send it to the FPC list instead in order to possibly get better answers... On Sun, 20 Mar 2011 10:04:28 -0500, Bo…
- Free Pascal 2.4.4 RC1 available4
We have placed the first release-candidate of the Free Pascal Compiler version 2.4.4 on our ftp-servers. You can help improve the upcoming 2.4.4 release by downloading…
- FPC 2.4.2 i386 MacOS: Inc broken for Int64's1
my app uses the built-in Inc function to add Int64 variables. Unfortunately, they are treated as UInt32, so the values are truncated as 32 bit values. Wow! That is an…
- Re: com port using prolific driver5
John, any unit that will talk to a "standard" COM port should work - when you plug in the cable, it should enumerate as a COM port - I do this with an FTDI adapter board…
- Converting code from C++ to FP....10
I have a bunch of C++ files containing math processing functions, which I need to convert to pascal. But I have never programmed C++ (only ANSI C some 15 years ago) and I
- double dispatch4
Can FPC deal with double-dispatch ? Say you have an object defined as : Type TMyObject = Class Public Procedure DoSomething(Const aObject : TObject); Virtual; End;…
- (Unix) serial port handling11
Can anybody say whether there is a good reason that serial.pp lacks a function to read the CD signal? Is SerFlush, which calls fpfsync, intended to discard input data,…
- Type of file mode variable5
In the file \lazarus\fpc\2.4.3\source\rtl\inc\systemh.inc I found the following definitions: { file input modes } fmClosed = $D7B0; fmInput = $D7B1; fmOutput = $D7B2;…
- upgrading fpc rpm removes fpc.cfg2
I just installed on a fresh Linux Fedora 14 the fpc rpm via yum, which installed fpc 2.4.0. Then I downloaded from www.freepascal.org the rpm for fpc 2.4.2 and installed…
- Thank you FPC team, Lazarus team and all the community0
I wrote my first ("real" or "in production") job using FPC and Lazarus, after more than 10 year working with Delphi. An installer to an old application that no have…
- Function to know if WIN is 32 or 6426
Is there some function to know if the Windows is 32 or 64? Marcos Douglas
- macros2
Some day I saw an example using "macros" on the code. I want to put the compiler version in an "about form"... I remember something like %fpcversion%...…
- Consumer producer unit (donation to fcl)2
i have implemented a small consumer x producer unit (ie: threads that produce or consume tobjects) it is thread safe (based around a tthreadsafequeue with signalling -…
- Actor Model implementation in Pascal5
This is my attempt at implementing an actor model in freepascal http://code.google.com/p/pascal-actor-model/ This is an very early code. Any help is appreciated. Every…
- The FPC's LDAP binding support0
I found the LDAP binding support of openldap in the FPC's package directory. I have two questions regarding it: 1. How up to date is the binding ? 2. I could not find…
- wiki page confusion with Ordinal to Word conversion2
http://wiki.freepascal.org/User_Changes_2.4.0#Byte.2FWord.2FLong.2FQwordbool_types Based on this wiki description, If a value of Ord(True) is assigned to say a Word…
- TThread.Resume6
TThread.Resume is marked deprecated. Where is the comment or documentation what to use now? Mattias
- Converting 32bit intel asm to Pascal or 64bit at&t asm5
I'm trying to convert the following 32bit asm to pascal so it's portable. Also to 64bit asm. It's from ACS audio component suite. What am I doing wrong? I tested my…
- Converting .m4a to .wav3
Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav? Leonardo M.…
- Mutithreaded book0
I am developing an application that should scale well into those multicore CPUs that we have today, so, basically, i have to use threads. Anybody knows a good book about…
- constref question4
The parameter passing mode "constref" ensures that something is passed as reference and never as value, so my question is using something like this: type pmyrec=^myrec;…
- Read-only global references11
Where a unit exports an instance of an object, what's best practice for making this read-only? I'm referring to the object reference itself here, not properties of the…
- circular reference2
If circular reference not is a good practice (even if to use a implementation section) then I have to put all code, that works together, in the same unit, right? So, I…
- TBlowfishDecryptStream flaw3
i have a problem with TBlowfishDecryptStream : Try lBuffer := TMemoryStream.Create; lSource := (aObject As TMemoryStream); lSource.Seek(0, soFromBeginning); lCypher :=…
- SHA1 of a TMemoryStream2
I need to perform a Hash of data stored at a TMemoryStream... But unfortunately, the following program spits out different results if i run it in sucession... Note that…
- Free Pascal For Android0
http://alexmogurenko.com/blog/programming/android-building-free-pascal-compiler-for-android/ How can I do this on a Mac OS? Thank you! Lennie De Villiers
- FPC - Compile To Android (ARM) On Mac2
Has anyone got this right and wiling to share some knowledge? cheers Lennie
- FPC vs AIR0
was having a look at cross-platform stuff and found:- a guy who doesn't seem to know about freepascal.org…
- Merging r.16418 to FPC 2.4.45
Is it possible to merge rev. 16418 from trunk to FPC 2.4.4? http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=16418 cobines
- Forward type not resolved5
Hi, I'm trying to create a forward declaration for a class, as I use to do in Delphi, but I'm getting "Forward type not resolved". How can I troubleshoot this?. Here's…
- Conversion between ordinals and pointers is not portable3
I have this code: TYPE PRDBRecord =^TRDBRecord; TRDBRecord =PACKED RECORD Content :ARRAY [0..65500] OF BYTE; END; VAR MOffset:INTEGER; p :PByteArray; FData …
- Standard exceptions8
while porting software from .NET to FreePascal I am looking for some exceptions for recurrent errors. For example: ArgumentException, ArgumentNullException,…
- Fwd: Problem1
To Rocco: the correct address to send messages for the list to is Begin forwarded message:
- XHTML writer support in fcl-xml0
Right now, fcl-xml only contains writer for THTMLDocument class from htmlelements unit. There's also another THTMLDocument class in dom_html unit which is used as a base…
