Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2006-10

  1. low level disk access under Windows

    Hello, I'd like to ask if someone has experiences with low level disk operations in windows with FPC. The program should be able to copy entire diskete to one single…

    Pianoman, Daniel Franzini
    1
  2. Linux Install: Is it me or the documentation? ;-)

    First let me say how pleased I am to discover FreePascal. 'Twas my favourite programming language way back around 1988-89, being the last time I put my serious…

    Lev Lafayette, Alain Vitry, Bisma Jayadi
    9
  3. ROPS and latest FPC compiler (svn)

    I'm running into strang ROPS behaviour when using the latest compiler in svn. Is there a compiler switch required for it to work ok? Using revision 3823 I have no…

    Alexandre Leclerc, Florian Klaempfl, Jesus Reyes
    15
  4. Linux library access violation

    I get an "Access violation" when I call a function from a C library. Not sure if I can explain well enough, so I will just post the code: The C library: #include…

    Chris, L, L505
    4
  5. Makefiles vs Pascal Automation

    In many cases makefiles take about just as long to create as shell scripts or pascal programs - they just offer a nice framework to automate compiling in an easy way -…

    L505, Mattias Gaertner, Michael Van Canneyt
    4
  6. Rename executable extension MAKE or FPC

    Hi all, it's been a long time.. but I have a question. Is there any way tell FPCMAKE to rename all PROGRAMS to have a different extension? Example: On Windows:…

    L505, Peter Vreman
    2
  7. Order of {$H+} and OBJFPC

    {$H+}{$MODE OBJFPC} Results in short strings with fpc-2.0.4, and long strings with previous compilers. Is this a bug fix, or a new bug? - Jeff

    Jeff Pohlmeyer, Felipe Monteiro de Carvalho, Judison
    5
  8. TypInfo Error: type identifier not allowed here

    Why do I get this error? /tiOPF/UnitTests/Common/tiDUnitUtils.pas(231,32) Error: type identifier not allowed here It works on other enumerated declarations, but not on…

    Graeme Geldenhuys
    1
  9. win resource sections

    could you tell what progress (approximately in percents) is done with Windows exe resource sections support, please? Herewith i want to note that login status label in…

    Rimgaudas Laucius, Michael Van Canneyt, Peter Vreman
    4
  10. I think I must be the first person to ever use tmemds for anything serious...

    I think I've just found my 3rd bug in the unit. for me, it always says true when booleans are returned with .asBoolean, and as empty strings when returned with .asString…

    David Mears
    0
  11. Compilation error with compiler abort

    Hi ! I'm developing a program in FPC. The success of this project will define the use of FPC as a approved tool here in my job. Suddenly I became to receive a strange…

    Nightrider, Florian Klaempfl, Marco van de Voort
    2
  12. Qt4 binding ported to 64bit

    FYI: thanks to a patch from Giulio Berna, the Qt4 binding now also works on 64 bit platforms ( ifdef _LP64... ) Important note from Giulio: there is a bug on fpc 2.0.4…

    Den Jean, Felipe Monteiro de Carvalho, Florian Klaempfl
    3
  13. XSLT library

    Is there a XSLT library included with FPC. I did have a look and couldn't find anything, but thought I would ask to be sure. Otherwise, has anybody ever use the…

    Graeme Geldenhuys, Jan Jelowicki
    2
  14. FPC 2.0.2 vs 2.0.4 xmlread

    I had an old application that worked fine with 2.0.2 but doesn't work with 2.0.4. The problem is that it reads XML and then uses the data to do some processing.…

    Alexander Todorov, Michael Van Canneyt
    3
  15. typed constants...

    is this bit of syntactic weirdness a fpc element, or from delphi. I've largely been away from pascal since the early 90s, mostly only using it to write dos-y…

    David Mears, Jonas Maebe, Marc Santhoff
    5
  16. fpc arm crossbuild error

    I have removed the FC5 rpm versions of fpc and installed the source and x86_64 binary so everything is the same... # fpc Free Pascal Compiler version 2.0.4 [2006/08/20]…

    Terry Kemp
    0
  17. fpc arm big endian help

    Hi all I'm working on some code for the NSLU2 'slug'. How do I get ppcarm to compile in big endian mode? I have done it once before but I've lost the magic wand…

    Terry Kemp, Matt Emson
    2
  18. fpGUI and fpGFX has a newsgroup sever

    I have setup two newsgroups for fpGUI and fpGFX on my server. For those stuck behind a company firewall, there is web access to the newsgroups as well. Newsgroups:…

    Graeme Geldenhuys
    0
  19. Problem with string conversion

    I am having a problem with string conversion from utf-8 to utf-16: procedure TForm1.Button6Click(Sender: TObject); var WideText: PWideChar; AText: string; Size: Integer;…

    Felipe Monteiro de Carvalho, Jason P Sage, Marc Weustink
    10
  20. mixing C and Pascal and function pointers

    Dear members: I am not familiar with Pascal, but I would like to call some C routines inside the main Pascal program, is there any way, to pass function pointers from…

    Armando Navarro Vázquez, Ken G. Brown, Leonardo M. Ram�
    3
  21. Re: fpc-pascal Digest, Vol 26, Issue 35

    On Friday 20 October 2006 12:00, It should be no problem to build a library, these are the interfaces These are the interfaces void mnbrak(float *ax, float *bx, float…

    Armando Navarro Vázquez
    0
  22. inlining functions

    when using "inline" on a procedure or function, does it completely avoid the call by copying anything inside the "begin ... end" block to the right place? Example:…

    Marc Santhoff, Michael Van Canneyt, ���� ����������� � mail.ru
    3
  23. speed of real calculations

    is anyone aware of or has done a calculations speed comparison for the four float types (single, double, extended, comp)? I'm most interested in the first rules of…

    Marc Santhoff, Florian Klaempfl, Jonas Maebe
    6
  24. Lazarus, wov

    Wow, some tears dropped when I launched lazarus as old delphi 1 & delphi 2 memories came to my mind. And not only the look and feel, also the stability and easy to use…

    lamikr, Florian Klaempfl
    1
  25. [NETWORK - LINUX ]: Calculate broadcast - network

    <message> </message> Dear I develop a tool that change the network settings in /etc/network/interfaces the config file must be iface eth0 inet static address…

    TOUZEAU DAVID, Alexandre Leclerc, Michael Van Canneyt
    6
  26. Re: Re: [regex] : Is someone use SynRegExpr ? RegExpr2 vsSynRegExpr

    I didn't use it much, but I do agree: it works great (I tried it with FPC only). It is a "contributed unit" in FPC (not distributed within the package). Its license…

    Пётр Косаревский
    0
  27. [regex] : Is someone use SynRegExpr ? RegExpr2 vs SynRegExpr

    dear Currently i use RegExpr2 (http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=Regexpr2) to perform regex matching.. did SynRegExpr…

    TOUZEAU DAVID, Seth Grover
    1
  28. Using FPC as a scripting engine

    currently I am using RemObjects Pascal Script as a scripting language for a project of mine. All scripts are simple programs that use "API" exported from the main…

    Alexander Todorov, Jeff Pohlmeyer, Leonardo M. Ram�
    7
  29. DBus Bindings

    I am writing bindings for DBus (interprocess communication) library, but I'm a little lost about how to create them. The procedural low-level code is already working.…

    Felipe Monteiro de Carvalho, Florian Klaempfl, Marco van de Voort
    4
  30. Unix.POpen does not work

    I am porting my fpc-1.0.6 sources to fpc-2.0.4 on Linux. It seems, that Unix.POpen(TxtFile,cmd,'R') does not work. Giving no error, cmd is not executed, EOF(TxtFile) is…

    Unknown author, Marco van de Voort
    1
  31. Temporary Filenames in GO32

    I read an old thread about how to make temporary filenames (unique filenames is what the topic was about) and I have written a simple unit that sort of does this without…

    Jason P Sage, Michael Van Canneyt, Tomas Hajny
    3
  32. Apache and dbus headers

    I released 0.3 version of the Apache headers. It now works for both 2.2 and 2.0. It also contains partial translation of 1.3 headers but I haven't managed to make them…

    Felipe Monteiro de Carvalho, Michael Van Canneyt
    2
  33. [SYSTEM]: How detecting if run as root ?

    Dear I need to detect if the program is executed as root privileges on Linux system. Did somebody had developped a such function ?? Best regards. David Touzeau…

    TOUZEAU DAVID, Andrew Haines, Michalis Kamburelis
    5
  34. Get PID by process name

    Is there any function how to get pid by process name? --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries)…

    Andi Purwito
    0
  35. [CRYPT]: Is there an unit to perform crypt/decrypt on Linux ?

    Dear I would like to crypt some files/strings/datas with fpc on Linux systems. What unit can i use to provide this feature ? I there a standard unit or somebody had…

    TOUZEAU DAVID, Michael Van Canneyt, Vincent Snijders
    3
  36. Re: fpc-pascal Digest, Vol 26, Issue 20

    That was it, I had a Uses Memory, and I renamed it to MacMemory and bingo, no errors. Thank you Sir! Ken

    Ken G. Brown
    0
  37. fp.ini defaults

    When executing "fp" in an empty directory, an fp.ini file is generated with AutoSaveFlags set to a value of 6. Is there a way to arrange for the default value to be 7,…

    Norman C. Leet, Tomas Hajny
    1
  38. Low level disc access under windows with FPC

    Hello, I'd like to ask if someone has experiences with low level disk operations in windows with FPC. The program should be able to copy entire diskete to one single…

    Pianoman, Michael Van Canneyt, Vinzent Hoefler
    2
  39. difference between variants and simple types

    I'd like to know how the use of simple atomic types like integer and single differs from using variants holding the same types. How do they compare in speed and memory…

    Marc Santhoff, Florian Klaempfl
    2
  40. programstart from inittab

    is it possible to start a program from inittab (without console, in Linux)? When I do this the program is somewhere running. Whith 'ps auxww' there is an entry then, but…

    Rainer Stratmann
    0
  41. THREADVARLIST_FVCOMMON & THREADVARLIST_MEMORY undefined symbols while linking

    Downloaded fpc 2.0.4 yesterday and I am trying to compile a legacy CW Pro 2 app on Mac 10.4.8 with Xcode 2.4. I am getting undefined symbols THREADVARLIST_FVCOMMON &…

    Ken G. Brown, Jonas Maebe
    1
  42. Variant record types in Sockates unit.

    I notice the following in socketsh.inc: TInetSockAddr = packed Record case boolean of false : ( {$ifdef SOCK_HAS_SINLEN} sin_len : cuchar; {$endif} sin_family :…

    Alexander Todorov, Florian Klaempfl, Marco van de Voort
    2
  43. fpUnit - AssertEquals gives Access violation

    AssertEquals always gives an Access violation error for some reason. First some background info is needed.... I first write some of my tests using AssertTrue as follows:…

    Graeme Geldenhuys, Dean Zobec, Vincent Snijders
    4
  44. Unistalling FPC (and reinstalling from svn)

    I have a silly question : which is the best way to uninstall FPC ? I have used the 2.0.4 tarball (Linux) and the install script included within. I chose to install it…

    Adrian Maier, Jochem Berndsen, Marco van de Voort
    3
  45. Install freepascal Mysql package to kylix 3

    Hi, does anyone know how to install freepascal mysql component to kylix 3 open edition? Or is there any database component that can be use with kylix 3 open edition? Thx…

    Unknown author, Michael Van Canneyt
    1
  46. h2pas error report

    h2pas does crash on the following lines: typedef unsigned __int64 hsize_t; typedef signed __int64 hssize_t; Command line and error message: h2pas -d -l "hdf5" -p -o…

    Marc Santhoff, Jeff Pohlmeyer
    3
  47. visualserver from VisualSynapse how implement it as a Linux console Daemon

    Dear is anybody there use visualserver from VisualSynapse (http://visualsynapse.sourceforge.net/?id=8) and impleted it on Linux has a console mode...?? Examples given is…

    TOUZEAU DAVID
    0
  48. Get Local IP using glib (eth0,eth1)

    Hi I'm trying to write a function to read the local IP eth0/eth1... using glibc library... I found only examples that found the 127.0.0.1 IP but not the real IP :…

    TOUZEAU DAVID, Graeme Geldenhuys, Jeff Pohlmeyer
    13
  49. Last missing benchmark: regex-dna

    The regex-dna benchmark (http://shootout.alioth.debian.org/debian/benchmark.php?test=regexdna&lang=all) is the last missing benchmark. Although fpc has a regexpr unit:…

    Vincent Snijders, Krishna, Marco van de Voort
    6
  50. [libtar.pas]:Error: Illegal type conversion: "ShortString" to "^Char" without compilator options

    Dear I would like to use some units developped from delphi/klyx with Lazarus IDE On Linux. It seems that there is some differences between delphi/freepascal especially…

    TOUZEAU DAVID, Vincent Snijders
    2