On Thu, 17 Aug 2006, Albert Zeyer wrote:
Hi there.
Is there any HashMap-implementation in the units of FPC? I didn't find
one. Is an implemenentation missing till now? How can you life without
it? :)
There is a hash implementation in the contnrs unit, but I don't know if
this is suitable
On Thu, 17 Aug 2006, Albert Zeyer wrote:
Hi,
Is there a way to use the reference counting (used with interfaces) with
normal objects?
Currently not, unless you use TInterfacedObject.
Michael.
_
To unsubscribe: mail
Is there a way to use the reference counting (used with interfaces) with
normal objects?
Currently not, unless you use TInterfacedObject.
But you have to declare as Interface
[]s
Cesar Romero
http://blogs.liws.com.br/cesar
Cesar Romero schreef:
Is there a way to use the reference counting (used with interfaces) with
normal objects?
Currently not, unless you use TInterfacedObject.
But you have to declare as Interface
I guess TInterfacedObject implemets IUnknown, so you don't need to declare a
On Tue, Aug 15, 2006 at 10:54:53PM +0300, ik wrote:
The difference between VB and native languages, is that VB is a
script language with internal interpreter.
Afaik since VB5 it is compiled. VB4 is the last interpreted one.
And VB4 is _old_.
Eduardo wrote:
Also, don't say me how can i do it, i tried several times and always
failed. I don't need install all the binutils, the units and libraries,
only a central site/repository where i can download them. Actually, it's
more a hunting across the net than other thing.
In VB6 I could set breakpoints and run the app. If the variable
contained the wrong value or I noticed a coding problem I could change
it while at the breakpoint and just continue execution... Wouldn't
that classify as interpreted? (Note: I haven't touched VB in over 6
years!)
Regards,
-
On Thu, Aug 17, 2006 at 10:32:09AM +0200, Graeme Geldenhuys wrote:
In VB6 I could set breakpoints and run the app. If the variable
contained the wrong value or I noticed a coding problem I could change
it while at the breakpoint and just continue execution... Wouldn't
that classify as
No, it will not. Reference counting with interfaces only works if you use interfaces as referencing types (so it has to be 'var MyObject: IUnknown'), all class-typed variables will not counted. I think this is because all class-typed variables are simply pointers and an interface variable is
On Thu, 17 Aug 2006, Albert Zeyer wrote:
No, it will not. Reference counting with interfaces only works if you
use interfaces as referencing types (so it has to be 'var MyObject:
IUnknown'), all class-typed variables will not counted. I think this is
because all class-typed variables are
Which one do you mean? I only find there a few special lists.
But I need an implementation of a map (key elements map to some data), implemented with B-trees or similar (the key elements need to be hashed for this), like hash_map in STL. In my case, I don't need a special hash function
On Thu, 17 Aug 2006 11:16:58 +
Albert Zeyer [EMAIL PROTECTED] wrote:
Which one do you mean? I only find there a few special lists.
But I need an implementation of a map (key elements map to some data),
implemented with B-trees or similar (the key elements need to be
hashed for this),
On Thu, Aug 17, 2006 at 11:01:25AM +0200, Michael Van Canneyt wrote:
No.
Au contraire...
In VB 5 and later running your project does not compile it: it runs the
interpreter. Only when you explicitly make the executable, the code is
actually compiled; and even then, you have the option
On Thu, 17 Aug 2006, Marco van de Voort wrote:
On Thu, Aug 17, 2006 at 10:32:09AM +0200, Graeme Geldenhuys wrote:
In VB6 I could set breakpoints and run the app. If the variable
contained the wrong value or I noticed a coding problem I could change
it while at the breakpoint and just
Am Donnerstag, 17. August 2006 13:16 schrieb Albert Zeyer:
Which one do you mean? I only find there a few special lists.
But I need an implementation of a map (key elements map to some
data), implemented with B-trees or similar (the key elements need to
be hashed for this), like hash_map in
On Thu, 17 Aug 2006, Marco van de Voort wrote:
On Thu, Aug 17, 2006 at 11:01:25AM +0200, Michael Van Canneyt wrote:
No.
Au contraire...
In VB 5 and later running your project does not compile it: it runs the
interpreter. Only when you explicitly make the executable, the code is
actually
Michael Van Canneyt wrote:
On Thu, 17 Aug 2006, Albert Zeyer wrote:
No, it will not. Reference counting with interfaces only works if you
use interfaces as referencing types (so it has to be 'var MyObject:
IUnknown'), all class-typed variables will not counted. I think this is
because all
On Tue, 15 Aug 2006 13:19:51 -0400
Andrew Haines [EMAIL PROTECTED] wrote:
A.J. Venter wrote:
Basically I don't know if lazarus CAN do what I need for this
part... and before I can finalize design, I need to know if this
will be a form inside the app or a sepperate program altogether
On 8/17/06, Mattias [EMAIL PROTECTED] wrote:
Now we need some nice function names for the LCL.
In some sense fullscreen is a windowstate. So maybe we should add it
'wsFullScreen' to TWindowState. OTOH a fullscreen is just a
special wsMaximized, so a FullScreen boolean property might be better.
On Thu, 17 Aug 2006, Mattias wrote:
On Tue, 15 Aug 2006 13:19:51 -0400
Andrew Haines [EMAIL PROTECTED] wrote:
Form2X11Window
Thanks.
I added those functions to gtkproc.pp:
procedure SetWindowFullScreen(AForm: TCustomForm; const AValue: Boolean);
procedure GrabKeyBoardToForm(AForm:
Am Donnerstag, 17. August 2006 11:25 schrieb Mattias:
On Thu, 17 Aug 2006 11:16:58 +
Albert Zeyer [EMAIL PROTECTED] wrote:
Which one do you mean? I only find there a few special lists.
But I need an implementation of a map (key elements map to some
data), implemented with B-trees or
In my own Free Pascal widget set, I debated the same issue a few weeks
back. I concluded that the Window State method using 'wsFullScreen' is
the better approach. The reason being - if you look at the
BorderSyle, you can have Dialogs Windows and Tool Windows. They are
pretty much the same
Mattias wrote:
On Tue, 15 Aug 2006 13:19:51 -0400
Andrew Haines [EMAIL PROTECTED] wrote:
A.J. Venter wrote:
Basically I don't know if lazarus CAN do what I need for this
part... and before I can finalize design, I need to know if this
will be a form inside the app or a sepperate program
Graeme Geldenhuys wrote:
In VB6 I could set breakpoints and run the app. If the variable
contained the wrong value or I noticed a coding problem I could change
it while at the breakpoint and just continue execution... Wouldn't
that classify as interpreted? (Note: I haven't touched VB in over
Mattias wrote:
On Thu, 17 Aug 2006 11:16:58 +
Albert Zeyer [EMAIL PROTECTED] wrote:
Which one do you mean? I only find there a few special lists.
But I need an implementation of a map (key elements map to some data),
implemented with B-trees or similar (the key elements need to be
hashed
The problem with ref. counting classes is that classes could have
cyclic references which can't be handled properly by ref. counted data
types.
With Interfaces you have to avoid cyclic references too, else the object
will never be out of context.
Eg:
ObjectList - Item
The ObjectList
Hi all!I used Lazarus on Mandrake for a while and about a month ago I decided to change to Xubuntu. Now lazarus doesn't work.I installed FPC 2.0.2 following the alien method presented in this wiki page:
On Thu, 17 Aug 2006 14:51:17 +0200
Marc Weustink [EMAIL PROTECTED] wrote:
Mattias wrote:
On Tue, 15 Aug 2006 13:19:51 -0400
Andrew Haines [EMAIL PROTECTED] wrote:
A.J. Venter wrote:
Basically I don't know if lazarus CAN do what I need for this
part... and before I can finalize
On Thu, 17 Aug 2006 13:03:41 +0200
Burkhard Carstens [EMAIL PROTECTED] wrote:
Am Donnerstag, 17. August 2006 11:25 schrieb Mattias:
On Thu, 17 Aug 2006 11:16:58 +
Albert Zeyer [EMAIL PROTECTED] wrote:
Which one do you mean? I only find there a few special lists.
But I need an
Hello All,
I have been trying to create an ActionList in a DataModule then reference this
from the main form of the application. In Delphi I can do this at design-time
provided the DataModule unit is in the form's uses clause. I don't seem to be
able to do this in Lazarus. Is this by design,
Paul Michell wrote:
Hello All,
I have been trying to create an ActionList in a DataModule then reference this
from the main form of the application. In Delphi I can do this at design-time
provided the DataModule unit is in the form's uses clause. I don't seem to be
able to do this in
I'm working on compiling Lazarus for SPARC under Linux, using Debian 3.1
(Sarge). I've now got a working copy of the FPC 2.0.4 compiler (many thanks to
the relevant FPC developers for their help :-)
I'm grinding to a halt with this:
Compiling
Mark Morgan Lloyd wrote:
I'm working on compiling Lazarus for SPARC under Linux, using Debian 3.1
(Sarge). I've now got a working copy of the FPC 2.0.4 compiler (many thanks to
the relevant FPC developers for their help :-)
I'm grinding to a halt with this:
Compiling
I can see that Debian has installed the libglib1.2 and libglib2.0-0 packages,
but not the corresponding development packages (presumably libglib1.2-dev and
libglib2.0-dev respectively. I can see files
/usr/lib/libglib-2.0.so.0.600.4
/usr/lib/libglib-2.0.so.0 - libglib-2.0.so.0.600.4
Just my 2c worth...
I'm using ubuntu and just waiting to see something more stable before
investing/wasting some time loading up lazerus.
Ubuntu is an important platform imho and any efforts that go into making
it a more painless process would be efforts well spent.
On Thu, 2006-08-17 at
Thank you, this is a good base. But I need it a little bit more abstract. Mainly, I also need reference counting on the objects (interfaces now) I saved there.
Yes, I can call _AddRef and _Release by myself, but this doesn't look very nice.
And in future, I want to use other sort of key
The SDL port is very interesting. All data structures I missed are there. I will take a deeper look tomorrow, but I think, this is what I want.
Albert
Am Donnerstag, den 17.08.2006, 12:02 +0200 schrieb Burkhard Carstens:
Am Donnerstag, 17. August 2006 13:16 schrieb Albert Zeyer:
Which
On Thu, 2006-08-17 at 23:38 +0200, Vincent Snijders wrote:
David Lyon wrote:
Just my 2c worth...
I'm using ubuntu and just waiting to see something more stable before
investing/wasting some time loading up lazerus.
Ubuntu is an important platform imho and any efforts that go into
Lord Satan wrote:
Not on Debian but Ubuntu:
[EMAIL PROTECTED]:~$ dpkg -L libglib1.2-dev
TFT. I think that the main requirement on Debian is libgdk-pixbuf-dev, which
also installs libgtk1.2-dev.
I'm going to get some sleep while that lot sorts itself out :-)
--
Mark Morgan Lloyd
markMLl
Marc Weustink wrote:
Different source file than compiled (or different path to the file ?)
Marc
I don't know.
I'll try to rebuild my project file from scratch, hope this will help.
Thanks anyway.
Regards,
Philippe
40 matches
Mail list logo