fpc-pascal · 2003-02
- Graph + mouse + linux1
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…
- Re: How to resize window under win32? (Jeff Pohlmeyer)1
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.…
- ClrScr problem under Win 2K1
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…
- How to resize window under win32?1
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…
- DateTimeToStr function... bug?0
Questions 1. units.pdf page 480 function DateTimeToStr Statement says that this function returns the string equivalent of DateTime parameter using the…
- How to find out the TFloatType digits0
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:…
- FPC-1.0.6 for FreeBSD 5.01
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…
- Strange error2
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…
- Re: How to obtain runtime type of class object in debugger0
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
- compiler 's use1
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…
- Question about fp3
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…
- Re: [suse-laptop] SuSE 8.0 hat schlechtes GhostScript!0
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…
- How to obtain runtime type of class object in debugger ?5
Is it possible ? In details: Suppose: program Test; type TClassA = class; TClassB = class(TClassA); TClassC = class(TClassA); procedure P( x: TClassA); begin ... end;…
- creating DLL with FPC 1.0.62
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;…
- memw2
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;…
- Bug? Error when compiling a folder0
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.…
- Window Maker and FPC1
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…
- use of c++ libraries4
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++)…
- Problem of ParamStr1
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…
- How to implement a minimum http server?2
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…
- nCrt Window resize problem0
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…
- Can anyone give an example for unit http?1
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
- Can't compile sockets demo2
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:…
- Error when compile the latest source2
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…
- Contribution to Unit Library0
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…
- CompareStr13
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…
- FPC Error! :(8
What on earth does: schanserv.pas(715) Fatal: Internal error 55665566 mean ? cheers James
- reporting faults1
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…
- 3
- ExtractFileDir ?4
According to the docs http://www.freepascal.org/docs-html/units/node23.html#SECTION002366000000000 000000 "ExtractFileDir returns only the directory part of FileName,…
- CPU rel2rev23 uploaded1
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…
- SysUtils.FileExists bug under Go32v23
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…
- test, don't worry, don't reply, remove0
sorry list just a test
- Classes/Objects/Pointers18
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…
- Classes and copying3
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 :=…
- RE: Classes/Objects/Pointers / Pointer Help15
RE: Dynamic arrays, What about using the Tcollection? Is there any dis-advantage? I know a lot of TP Programmers swear by them.
- RE: Classes/Objects/Pointers / Pointer Help0
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…
- FPC Problem with reAllocMem...2
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:…
- isprime()7
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…
- Macros in FPC6
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…
- Understanding the compiler sources1
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…
- OpenBSD snapshot uploaded.0
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…
- graph unit and the mouse4
Does anybody know a way to read the mouse at pixel resolution while using the graph unit? Mark
- RE: Classes/Objects/Pointers / Pointer Help0
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…
- Amiga snapshot uploaded.4
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…
- Pointer Help10
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…
- Error: The object arg1 has no VMT2
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…
- Performance testing of FPC programs?7
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…
- Profiling and memory leaks1
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
- Linking to Windows15
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…
