Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2010-01

  1. FPC class syntax was extended to support delphi code

    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…

    Paul Ishenin, Aleksa Todorovic, Andreas Schneider
    16
  2. Generics problem/question

    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…

    Honza, Aleksa Todorovic, Gerhard Scholz
    15
  3. Cancelling Scientific notation

    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…

    James Gibbens, Anthony Walter, Frank Peelo
    5
  4. Unsolicited messages

    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…

    Unknown author, David Emerson, Graeme Geldenhuys
    4
  5. Problem with Objective Pascal and delphi mode

    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:…

    Felipe Monteiro de Carvalho, Jonas Maebe, Marco van de Voort
    11
  6. Stupid question: is this safe?

    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…

    Bart, Jonas Maebe, Marco van de Voort
    4
  7. OOP and XML usage

    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…

    Graeme Geldenhuys, Anthony Walter, Jorge Aldo G. de F. Junior
    16
  8. Fatal: Internal Error 20051152

    It started to show this %subject% since I added some code into {$IF MyBoolCondition} example: {$MODE Delphi} Unit MyUnit; interface Uses MyConditions; {$IF MyCond}…

    Roland Turcan, Jonas Maebe
    1
  9. How to use a window message queue in a call?

    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…

    Daniel Gilbert, Anthony Walter, Marco van de Voort
    5
  10. Illegal type conversion: "LongInt" to "TObject"

    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:…

    Graeme Geldenhuys, Michael Van Canneyt
    2
  11. initial implementation of TConnectionLIst

    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…

    ik
    0
  12. Assigning class method to procedure of object via class name in delphi mode

    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…

    cobines, Anthony Walter, Michalis Kamburelis
    3
  13. LZMA Algorithm fails on 64bit

    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…

    Matthias Klumpp, Graeme Geldenhuys, Jonas Maebe
    15
  14. Cucumber and other testing framework

    I wish to implement Cucumber <http://cukes.info/> (a BDD based testing framework). It has a protocol that needs to be implemented:…

    ik, Graeme Geldenhuys
    1
  15. Need help to fix a bug

    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…

    JoshyFun, Joost van der Sluis
    2
  16. RTTI Bug or something else i did wrong...

    The following code: --------------------------------------------------------- Unit RTTIObject; Interface Uses TypInfo; Type TRTTIObject = Class(TObject) Private…

    Jorge Aldo G. de F. Junior, cobines, Mattias Gaertner
    6
  17. GetVersionEx - Issue with lpVersionInformation variable

    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…

    Justin Smyth, Michael Van Canneyt
    1
  18. ActiveFormHandle from TApplication

    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…

    Justin Smyth, Anthony Walter, Paul Ishenin
    2
  19. Hardware information: Linux and Windows

    How do I get information about the hardware in Linux and Windows? - Identification of the processor: model, manufacturer, serial number - Identification of Hard Disk:…

    Osvaldo Filho, David Emerson, Frank Peelo
    3
  20. different windows/linux behavior with enumerated types and write/writeln

    If I have a program like this: ------------------------------------------------------ program Project1; {$mode objfpc}{$H+} type whatever = (seth, paul, ken); var haha :…

    Seth Grover, Jonas Maebe, Marco van de Voort
    3
  21. Pointer to an array of PChar strings

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

    Graeme Geldenhuys, Marco van de Voort
    2
  22. Re: creating a standalone executable (eg: applicationinstallation file)

    ----- Original Message ----- From: "Graeme Geldenhuys" Newsgroups: gmane.comp.compilers.free-pascal.general To: "FPC-Pascal users discussions" Sent: Tuesday, January 12,…

    Paul Nicholls, Graeme Geldenhuys
    2
  23. Compiler 240

    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…

    Carsten Bager, Jichao Yang
    1
  24. Delphi mode syntax error

    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…

    Roland Turcan, Jonas Maebe, Marco van de Voort
    9
  25. static linking vs dynamic linking

    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…

    Graeme Geldenhuys, Marco van de Voort
    1
  26. Some StrToTime questions

    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…

    Bart
    0
  27. Challenging port of Borland Pascal program to FPC

    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…

    John Youngquist, Florian Klaempfl, Jeff Wormsley
    4
  28. fplisten

    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…

    Rainer Stratmann, Anthony Walter
    1
  29. [OT] which editor - emacs?

    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…

    Hans-Peter Suter, David Emerson, dmitry boyarintsev
    18
  30. Firebird errors

    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…

    JoshyFun
    0
  31. Fwd: wishlist for new forum

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

    Osvaldo Filho, Marco van de Voort, Unknown author
    2
  32. Swopping two items in TCollection

    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…

    Wimpie Nortje, Michael Van Canneyt
    4
  33. Using StrindGrid

    I started lazarus newly Codes that I used is below: unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics,…

    berna uyanık, John & Marg Sunderland
    1
  34. GetProcAddress

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

    Roland Turcan, Anthony Walter
    1
  35. Why does not assignment from int64 to integer trigger warning?

    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:…

    Jichao Yang, Jonas Maebe
    2
  36. Why limit string constant to 255?

    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…

    Jichao Yang, Jonas Maebe
    1
  37. creating a standalone executable (eg: application installation file)

    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…

    Graeme Geldenhuys, Andreas Schneider, ik
    10
  38. I have some qustions about free pascal

    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…

    彘, Felipe Monteiro de Carvalho, Jonas Maebe
    3
  39. Help Reading SIP Messages.

    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…

    lloyd thomas, ik, Marco van de Voort
    11
  40. Can't compile nested generics type

    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…

    leledumbo
    0
  41. LaTeX distro used to build FP docs

    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…

    leledumbo, Michael Van Canneyt
    2
  42. Free Pascal 2.4.0 released

    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…

    Marco van de Voort, Anthony Walter, Boris Samorodov
    34
  43. Dynamic Array Length

    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…

    Rainer Stratmann, Anthony Walter, Frank Peelo
    17
  44. OT: Happy new year

    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,…

    ik, Felipe Monteiro de Carvalho, Giuliano Colla
    4
  45. MSEide+MSEgui rev. 2.2 for FPC 2.4

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

    Martin Schreiber
    0