Re: [fpc-pascal] Save image into BMP or JPEG using Free Pascal (Save screenshot of OpenGL scene)

2008-02-19 Thread Michalis Kamburelis
Jakub Marian wrote: Hello, I need to save data stored in memory into .bmp or (which would be the better variant) into .jpg file. Actually what I want to do is to save the OpenGL screen (probably using glReadPixels() function) into image. I've downloaded PasJPEG, but it doesn't seem to be working

Re: [fpc-pascal] How to Copy files from one dir to another ?

2008-02-19 Thread Mattias Gaertner
On Tue, 19 Feb 2008 08:59:17 -0300 "Lucas Vasconcelos" <[EMAIL PROTECTED]> wrote: > Ok. But, i´m using FPC *only*. > > I install Lazarus and try compile my application using FileUtil unit > but lazarus give me a > error message: "Can´t find unit FileUtil used by mytest" > > What option that i c

Re: [fpc-pascal] How to Copy files from one dir to another ?

2008-02-19 Thread Lucas Vasconcelos
Ok. But, i´m using FPC *only*. I install Lazarus and try compile my application using FileUtil unit but lazarus give me a error message: "Can´t find unit FileUtil used by mytest" What option that i can put C:\lazarus\lcl folder on library (or include) path ?? *sorry for my bad english. On Feb

Re: [fpc-pascal] Empty record inside another record ?

2008-02-19 Thread Florian Klaempfl
Skybuck Flying schrieb: > For records, I would use an extension field like: > > IP.Payload > > and > > UDP.Payload > > I would hardly call that obfuscation :) Having the same name for different things is always obfuscation. ___ fpc-pascal maillist -

Re: [fpc-pascal] Empty record inside another record ?

2008-02-19 Thread Marco van de Voort
> For records, I would use an extension field like: > > IP.Payload > > and > > UDP.Payload > > I would hardly call that obfuscation :) But the whole idea of inheritance is that child fields and methods are also available in UDP. Have a look at a basis OOP tutorial. _

Re: [fpc-pascal] Empty record inside another record ?

2008-02-19 Thread Skybuck Flying
For records, I would use an extension field like: IP.Payload and UDP.Payload I would hardly call that obfuscation :) Bye, Skybuck. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Empty record inside another record ?

2008-02-19 Thread Jonas Maebe
On 19 Feb 2008, at 10:16, Tiziano De Togni wrote: Vincent Snijders ha scritto: Tiziano De Togni schreef: Florian Klaempfl ha scritto: Skybuck Flying schrieb: One drawback of objects already discovered: am I correct? This is not allowed in {$mode objfpc}, because of the reasons Florian

Re: [fpc-pascal] Empty record inside another record ?

2008-02-19 Thread Tiziano De Togni
Vincent Snijders ha scritto: Tiziano De Togni schreef: Florian Klaempfl ha scritto: Skybuck Flying schrieb: One drawback of objects already discovered: am I correct? This is not allowed in {$mode objfpc}, because of the reasons Florian memtioned. It is allowed in {$mode delphi}. Vincen

Re: [fpc-pascal] Empty record inside another record ?

2008-02-19 Thread Bee
var MyObject: TAncestor; This is the problem. it compiles correctly in Delphi (5 and 7) Are you sure? It fails on my Delphi 7. -Bee- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.or

Re: [fpc-pascal] Empty record inside another record ?

2008-02-19 Thread Vincent Snijders
Tiziano De Togni schreef: Florian Klaempfl ha scritto: Skybuck Flying schrieb: One drawback of objects already discovered: Objects cannot have the same field identifiers. Indeed, especially if you want to win an obfuscation contest. ok, this is true for object type, but it should not be ex