fpc-pascal · 2010-01
- FPC class syntax was extended to support delphi code16
Hello, FPC-Pascal users discussions I want to notify you that fpc trunk has extensions for the class syntax. Class can have now the next sections: 1. 'var' sections to…
- Generics problem/question15
I tried to specialize fgl.TFPGList with some record type and got a compiler error. Am I doing something completely wrong (sorry in that case) or is this a bug? (Ubuntu…
- Cancelling Scientific notation5
I am VERY new to free pascal and I have a couple of problems. Can somebody please help? 1. If a, b are real numbers and I want to round a/b foo to 3 decimal places, the…
- Unsolicited messages4
I'm receiving unsolicited spam messages along with the normal message on this list. Is this happening to anyone else? The email address I use here is for the sole…
- Problem with Objective Pascal and delphi mode11
I am having trouble with the delphi mode and objective pascal. If I use this defines: {$mode delphi}{$modeswitch objectivec1} Then I get an error in this line:…
- Stupid question: is this safe?4
Is it safe to do the following? var W: Word; U: UInt64; {$R-} //range checkin off begin U := $0000000100000000; W := U; // or W := Word(U); end. I know that the value…
- OOP and XML usage16
The small project I am working on requires reading a XML file and using that data for various things, including building a GUI interface. Most of my projects are…
- Fatal: Internal Error 200511521
It started to show this %subject% since I added some code into {$IF MyBoolCondition} example: {$MODE Delphi} Unit MyUnit; interface Uses MyConditions; {$IF MyCond}…
- How to use a window message queue in a call?5
this is my first posting to the fpc-mailinglist, so please don't slap me if I do anything wrong. :) I'm currently re-writing a program I've written in Delphi some months…
- Illegal type conversion: "LongInt" to "TObject"2
If I compile the code snippet shown below in 'mode delphi' it works fine. If I try and compile it with 'mode objfpc' it fails with a compiler error as shown here:…
- initial implementation of TConnectionLIst0
I've uploaded a very initial version of my TConnectionList manager for Database to github: http://github.com/ik5/TConnectionList Please note that the code is in it's…
- Assigning class method to procedure of object via class name in delphi mode3
I usually use objfpc mode, however I have a few units in delphi mode and don't know if it is a bug or normal delphi behaviour. In the following program I have variable…
- LZMA Algorithm fails on 64bit15
Hello! I use the LZMA-SDK for Pascal to compress files. ( http://www.birtles.org.uk/programming/ ) I can compress files on 64bit and 32bit architecture. But if I try to…
- Cucumber and other testing framework1
I wish to implement Cucumber <http://cukes.info/> (a BDD based testing framework). It has a protocol that needs to be implemented:…
- Need help to fix a bug2
I wish to fix this bug http://bugs.freepascal.org/view.php?id=15460 but I had found serious problems to understand how data is structured in the TBufIndex and descendant…
- RTTI Bug or something else i did wrong...6
The following code: --------------------------------------------------------- Unit RTTIObject; Interface Uses TypInfo; Type TRTTIObject = Class(TObject) Private…
- GetVersionEx - Issue with lpVersionInformation variable1
Guys I've been looking at lpVersionInformation in GetVersionEx which is defined as TOSVersionInfo in redef.inc , and in delphi its defined as TOSVersionInfoEx in…
- ActiveFormHandle from TApplication2
Any one know how to get the Active Handle from the current Form from TApplication ? Delphi has something for this but i cant see it. I'm in the progress of getting JVCL…
- Hardware information: Linux and Windows3
How do I get information about the hardware in Linux and Windows? - Identification of the processor: model, manufacturer, serial number - Identification of Hard Disk:…
- different windows/linux behavior with enumerated types and write/writeln3
If I have a program like this: ------------------------------------------------------ program Project1; {$mode objfpc}{$H+} type whatever = (seth, paul, ken); var haha :…
- Pointer to an array of PChar strings2
I'm working with a C library that returns an array of strings. So that is type PPChar. I C library does the array allocation, but doesn't do the freeing of the array.…
- Re: creating a standalone executable (eg: applicationinstallation file)2
----- Original Message ----- From: "Graeme Geldenhuys" Newsgroups: gmane.comp.compilers.free-pascal.general To: "FPC-Pascal users discussions" Sent: Tuesday, January 12,…
- Compiler 2401
I have a problem with the new 240 compiler. I get errors when calling functions in the sysutils unit. I have tested the 251 compiler, and it was exactly the same. I am…
- Delphi mode syntax error9
I use Delphi style of programing in Lazarus to keep a compatibility with Kylix and therefore I want to get this code which is valid of Freepascal's ObjectPascal, but in…
- static linking vs dynamic linking1
In fpGUI based applications I have always used static link to libraries like Xlib or Xft, using the units xlib.pas and xft.pas I want to add spellchecker support (from a…
- Some StrToTime questions0
Since the current implementation of StrToTime is somewhat flawed (see: http://bugs.freepascal.org/view.php?id=15505), I tried to improve it. This, however left me with…
- Challenging port of Borland Pascal program to FPC4
Hi: I have been using FPC for some time now and think it is a great system. I am facing a challenging port of a Borland Pascal 7 program to FPC. It is about 8000 lines…
- fplisten1
Does someone know how to limit the connections to a server when calling fplisten at the serverside. Now several connections are possible, but I want to limit to 1…
- [OT] which editor - emacs?18
I'm on a mac and use TextMate currently. As it doesn't jump between declaration and implementation and ist mac-only, I am looking for a replacement. Is Emacs a good…
- Firebird errors0
When an error, in a SQL command issued to a Firebird engine, raises it looks like (in my case): SQL Error: Dynamic SQL error code = @1 Column unknown @1 at line @1…
- Fwd: wishlist for new forum2
---------- Forwarded message ---------- From: OsvaldoTCF Date: 2010/1/6 Subject: wishlist To: forpas Please send us your wish list. What you like to have in a forum?…
- Swopping two items in TCollection4
Hi list I have a class derived from Tcollection, holding items derived from TCollectionItem. How do I swop two items in the collection? FItem is of type TList which has…
- Using StrindGrid1
I started lazarus newly Codes that I used is below: unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics,…
- GetProcAddress1
I have written a very simple library which contains only two exports. It is intended to be a bridge between an old application and clipboard on linux to exchange data.…
- Why does not assignment from int64 to integer trigger warning?2
int64Val := 2147483648; { 2^32 } intVal := int64Val; { does not trigger any warnings } Now the intVal should be 0 which is not what I wanted. my platform:…
- Why limit string constant to 255?1
Hi all,I have one question about the free pascal programming language: why limit string constant to 255? write('a x 256'); would produce 'Error: Constant string can't be…
- creating a standalone executable (eg: application installation file)10
I have seen a few Linux application that have standalone executables that are installation programs. Once run, it installs the application in the appropriate directory…
- I have some qustions about free pascal3
I am a senior high school student from China, when I use Free pascal I have some qustions: First, I want to use some Turbo Pascal's Uint in Free Pascal (I learnt…
- Help Reading SIP Messages.11
Please forgive my ignorance regarding the project I am about to embark on. Need some advice on Lnet and capturing SIP RTP data to file. In the first instance I just need…
- Can't compile nested generics type0
I'm using FPC 2.5.1 downloaded a few days after 2.4.0 is released, and according to 2.4.0 changelog, nested generics type support has been done. However, I can't manage…
- LaTeX distro used to build FP docs2
What do you guys use? I have MiKTeX under Windows but it doesn't seem to work as expected. Under Linux I have TeXLive but I haven't tried using it. View this message in…
- Free Pascal 2.4.0 released34
Happy New Year! As a special present, We have placed a new major release of the Free Pascal Compiler, version 2.4.0 on our ftp-servers. Changes that may break backwards…
- Dynamic Array Length17
const data : array[ 1..{leave open} ] of byte = ( 11 , 12 , 13 ); datalen = sizeof( data ) div data[ 1 ]; Would this possible in a way? In C it is possible. Now I have…
- OT: Happy new year4
Sorry for the offtopic, but I wish you all happy new year. I hope that in 2010 we'll see Pascal, FPC and Lazarus become more main stream. Have a great new year and 2010,…
- MSEide+MSEgui rev. 2.2 for FPC 2.40
MSEide+MSEgui version 2.2 for FPC 2.4 has been released: https://sourceforge.net/projects/mseide-msegui/files/ There is now an experimental x86_64-linux version too.…
