Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2003-02

  1. Graph + mouse + linux

    Hi I would like to use the mouse under graphics mode under linux and I just can't get it working. I tried all examples of mouseapi and gpm units with initialization of…

    Jozef Vesely, Peter Vreman
    1
  2. Re: How to resize window under win32? (Jeff Pohlmeyer)

    If you have access to the source code of the launched program, you can use the SetWindowPos function to set the window position and size from within that program.…

    Bernhard Steffen, Matt D. Emson
    1
  3. ClrScr problem under Win 2K

    I'm running VP under Windows 2000, and I can't get ClrScr to work. The program will compile OK, but when I run it ClrScr has no effect. Can anyone please help? Here's…

    Unknown author, Marco van de Voort
    1
  4. How to resize window under win32?

    please, I've this problem: I'm launching another program from Freepascal program through "exec" (under win32). Is any way how to set the position and size of started…

    Martin Hankovec, Jeff Pohlmeyer
    1
  5. DateTimeToStr function... bug?

    Questions 1. units.pdf page 480 function DateTimeToStr Statement says that this function returns the string equivalent of DateTime parameter using the…

    Unknown author
    0
  6. How to find out the TFloatType digits

    When using RTTI, I sometimes need to know the decimal precisions of a TFloatType. For example ftSingle = 8 ftDouble = 16 ... Is there a simple way to get this? If not:…

    Mattias Gaertner
    0
  7. FPC-1.0.6 for FreeBSD 5.0

    I have just installed FreeBSD 5.0 and I want to use FPC-1.0.6. I have used FPC-0.99..1.0.6 on Linux-Slackware and it has worked fine for all my needs, but now I have…

    Jilani Khaldi, Marco van de Voort
    1
  8. Strange error

    I'm trying to port the turbopower internet pro html viewer to lazarus. I use the delphi mode and the fpc 1.0.7 [2003/02/21] for i386. Now there are two strange error…

    Mattias Gaertner, Peter Vreman
    2
  9. Re: How to obtain runtime type of class object in debugger

    Thanks for all tips :) However I am interested in how to, from within the IDE debugger (or GDB), "watch" the most specific class of an object without modifying the source

    Olle Raab
    0
  10. compiler 's use

    I have downloaded the version 1.0.6 of the free compiler .The problem is that i can't open the compiler.I am afraid further more that i wan't be able to use i would…

    Εvangelos Kalaitzis, Anton Tichawa
    1
  11. Question about fp

    I don't know is this is the correct place to ask, if not please direct me to the right place. I am running the fp editor on mandrake 9.0. All my borders are not the…

    Brent Cox, James Mills, Olaf Leidinger
    3
  12. Re: [suse-laptop] SuSE 8.0 hat schlechtes GhostScript!

    Hallo, Boris, und danke für die Info. | Am Montag, 24. Februar 2003 14:46 schrieb Rainer Hantsch: | > Hallo, Leute! | > Ich mußte mein GhostScript auf meinem Server…

    Rainer Hantsch
    0
  13. How to obtain runtime type of class object in debugger ?

    Is it possible ? In details: Suppose: program Test; type TClassA = class; TClassB = class(TClassA); TClassC = class(TClassA); procedure P( x: TClassA); begin ... end;…

    Olle Raab, Anton Tichawa, Jonas Maebe
    5
  14. creating DLL with FPC 1.0.6

    I'm having problems using a dll created under Win2k and FPC 1.0.6. library myplugin; uses Windows; function Hello( s :pchar ) :boolean; begin WriteLN('hello ',s); end;…

    Iván Montes, Anton Tichawa
    2
  15. memw

    This is from an old Turbo Pascal source of the Pascal S compiler source: getmem(spnt,((sleng+3) div 16 +1)*16); k := seg(spnt^); memw[k:0] := sleng; memw[k:2] := 0;…

    James Mills, Anton Tichawa, Marco van de Voort
    2
  16. Bug? Error when compiling a folder

    it is not a great important bug, but it could be solved. In Linux, I discovered that FPC did not remark when I passed a folder as a source file, it halted with an error.…

    Holger Peters
    0
  17. Window Maker and FPC

    Has anyone attempted writing an application for Window Maker ? More specifically, has anyone attempted to write a docked window maker applciation ? Just on the subject…

    James Mills, Marco van de Voort
    1
  18. use of c++ libraries

    Hello everybody! Let's say I've written a nice library in c++ and I'd like to use it in Free Pascal. The list archive sais that linking c++ libs (e.g. from gnu c++)…

    Olaf Leidinger, James Mills, Marco van de Voort
    4
  19. Problem of ParamStr

    Hello, everybody I wrote the following code in program foo.pp: writeln(ParamStr(1)); <<<<<<<<< And when I run it with a parameter "foo *.txt", I mean to get "*.txt", but…

    milimeter, Michael Van Canneyt
    1
  20. How to implement a minimum http server?

    Hello, everybody I want to use free pascal to implement the smallest http server which only response static html files compressed in a tar.gz file. How should I do? Give…

    milimeter, Sebastian Günther
    2
  21. nCrt Window resize problem

    I'm porting an old DOS program to Linux as a console app. So far I'm using the nCrt replacement, because it allows me to determine the terminal size at startup and so I…

    Andrea Weikert
    0
  22. Can anyone give an example for unit http?

    Hello, everybody I noticed that there are two units in fpc: http, AsyncIO, but there's no documents and examples for them. Does anybody know how to use them? mili

    milimeter, Sebastian Günther
    1
  23. Can't compile sockets demo

    Hello, everyone I got the following errors when compiling dsocksvr.pp, but there is already ssockets.o and ssockets.ppu under /usr/lib/fpc/1.0.7/units/linux/fcl:…

    milimeter, Sebastian Günther
    2
  24. Error when compile the latest source

    Hello, everybody I can't compile the source from the latest cvs, the errors are as follows: make -C gtkgl all make[7]: Entering directory…

    milimeter, Mattias Gaertner, Sebastian Günther
    2
  25. Contribution to Unit Library

    I need a programmer to build a customized I/O unit that will be contributed to the FPC Unit Library. He/she must have expertise in low-level I/O access for both Linux…

    Mark Emerson
    0
  26. CompareStr

    Maybe it's how it's supposed to be but if use : compareStr( 'hello', 'hello-bye' ) I get 0, so they are equal. If one string is bigger than the other they should be…

    Iván Montes, James Mills, Jilani Khaldi
    13
  27. FPC Error! :(

    What on earth does: schanserv.pas(715) Fatal: Internal error 55665566 mean ? cheers James

    James Mills, Lee, John
    8
  28. reporting faults

    Hello everyone...Just a reminder that it's always good to hear from you about faults in fpc because this helps to make it better, and you can report these via the web…

    Lee, John, James Mills, Lee
    1
  29. Line Continuation

    Haluk DUMAN, James Mills, Marco van de Voort
    3
  30. ExtractFileDir ?

    According to the docs http://www.freepascal.org/docs-html/units/node23.html#SECTION002366000000000 000000 "ExtractFileDir returns only the directory part of FileName,…

    Iván Montes, Anton Tichawa
    4
  31. CPU rel2rev23 uploaded

    just updated my CPU package to rel2rev23. No breathtaking news, just a plain simple update: - added a new field to the TCPUInfo record which contains the number of…

    Thomas Schatzl
    1
  32. SysUtils.FileExists bug under Go32v2

    I think I've found a bug on the FileExists function (sysutils) under Go32v2, when I want to check if a directory exists. FileExists( 'c:\winnt' ) will return False when…

    Iván Montes, Anton Tichawa
    3
  33. test, don't worry, don't reply, remove

    sorry list just a test

    Iván Montes
    0
  34. Classes/Objects/Pointers

    Sorry to bother you again, can't seem to see what I'm doing wrong it's the same as my dynamic code for strings... var nicks: PNick; nNicks: Integer; procedure…

    James Mills, Anton Tichawa, Jonas Maebe
    18
  35. Classes and copying

    With respect to classes (and perhaps also objects), how do you copy the contents of a class in memory (an object) to another? ie: var a: TClass; b: TClass; begin a :=…

    James Mills, Matt D. Emson, Michael Van Canneyt
    3
  36. RE: Classes/Objects/Pointers / Pointer Help

    RE: Dynamic arrays, What about using the Tcollection? Is there any dis-advantage? I know a lot of TP Programmers swear by them.

    Matt Emson, Anton Tichawa, James Mills
    15
  37. RE: Classes/Objects/Pointers / Pointer Help

    Before you go and write one, DUnit might fit that bill. I think it's on sourceforge, but will also be somewhere in the JEDI pages too. We just *need* a complete VCL drop…

    Matt Emson
    0
  38. FPC Problem with reAllocMem...

    I've annoyed you guys enough with pointers, objects and clases :P I'm sorry :) This bugs me though as to why this program crashes at the 4th call to addNick(nick:…

    James Mills, Anton Tichawa
    2
  39. isprime()

    I made a function of 116 lines in assembler: isprime(n: cardinal): boolean; which returns true if a cardinal is prime, false otherwise. The routine is fast and uses only…

    Unknown author, Anton Tichawa, Mark Emerson
    7
  40. Macros in FPC

    I was wondering if I could do something like this with a macro in FPC: const HASH_TABLE_MASK = $ff; function GetHashIndex ( hash :dword) :integer; begin result := hash…

    Iván Montes, Anton Tichawa, Gene Buckle
    6
  41. Understanding the compiler sources

    I want to understand how a compiler works. So I thought I could search a little open source Compiler (FreePascal is very big and I think I had a better overview with a…

    Holger Peters, Anton Tichawa
    1
  42. OpenBSD snapshot uploaded.

    Pierre and me managed to fix a lot of bugs in the *BSD platforms. As a result, even though still a bit raw, the OpenBSD port starts to get usable. A snapshot was…

    Marco van de Voort
    0
  43. graph unit and the mouse

    Does anybody know a way to read the mouse at pixel resolution while using the graph unit? Mark

    Mark Emerson, Florian Klaempfl, Klaus Hartnegg
    4
  44. RE: Classes/Objects/Pointers / Pointer Help

    This is where Classes are better than objects... This will only work if you don't reference any thing that is instantiated by the constructor, i.e. all Methods and…

    Matt Emson
    0
  45. Amiga snapshot uploaded.

    I've uploaded a new snapshot for the amiga,which is available at this url: ftp://ftp.freepascal.org/pub/fpc/snapshot/v10/amiga/m68k/baseami.lha Hopefully the unit…

    Carl Eric Codere, amorel, Balogh
    4
  46. Pointer Help

    Sorry if this is trivial, but I'm sick of it :) I'm using fpc to convert my (originally delphi) code to read and write ini style files, however writing will not work as…

    James Mills, Anton Tichawa, Jonas Maebe
    10
  47. Error: The object arg1 has no VMT

    Dear all, I get the error "Error: The object TINTERPOLATION has no VMT" when trying to compile one of my programs with the option -Sd (delphi mode), but not in normal…

    Preben Mikael Bohn, Anton Tichawa
    2
  48. Performance testing of FPC programs?

    Hi all, I have a relatively large FPC program that I suspect have a few bottlenecks (regarding processing speed). Are there any ways I can test how long time the program…

    Preben Mikael Bohn, Adam Naumowicz, James Mills
    7
  49. Profiling and memory leaks

    Do you know of any tools I can use to check for memory leaks on my code? I'm using FPC 1.1 snapshots under Win2k. cheers, Ivan

    Iván Montes, Marco van de Voort
    1
  50. Linking to Windows

    According to the Free Pascal Programmers manual chapter 4.1 it is possible to specify an external Windows function with: Procedure ProcName(Args: TProcArgs); external…

    Hans Mårtensson, Anton Tichawa, Jeff Pohlmeyer
    15