Hi all,
I have a routine that has to check if two variants, v1 and v2, are holding
interfaces to the same underlying object. I've tried the following approaches
with the following results (assumption is that they do indeed point to the same
underlying object:
(1)
result := v1 = v2;
Penlington [EMAIL PROTECTED] on 08/08/2000 11:11:42
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: Variant comparison. how?
Nasty stuff.
Variants dealing with non
/2000 12:25:35
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: Aaarrgh! Variants@#%^$3!!
Don't quite see why you are using variants in this case, but it should
incremented.
I'm bamboozled.
thanks,
Phil.
Myles Penlington [EMAIL PROTECTED] on 07/08/2000 14:51:07
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: Aaarrgh
]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: Aaarrgh! Variants@#%^$3!!
Try it this way. This breaks it down into what the compiler "should" be
doing (and probably is doing). You ca
: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: List of OLEVariant
Another alternative is to wrapper the OLEVariant in an object before storing
in the TList. Or use a collection to do this, eg.
type
TOLECollectionItem = class(TCollectionItem)
public
Can anyone recommend some good 3rd party Gannt Chart and Pivot Table components?
Preferably ones that don't absolutely require you to work with DB tables.
Cheers,
Phil.
---
New Zealand Delphi Users group - Delphi
for the application.
Phil.
"Neven MacEwan" [EMAIL PROTECTED] on 21/07/2000 16:10:23
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: [DUG]: What is the diff?
Hiya
]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: Type libraries from interfaces
As long as you know the control/Object name, you can use Delphi to import
the type library for any Control etc.
So if you
-Integra.
Phil.
Myles Penlington [EMAIL PROTECTED] on 03/07/2000 10:53:41
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: Type libraries from interfaces
What you
does anyone know of a 3rd party tool (or an easy way) to generate a type library
given an existing interface?
Phil.
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website:
Hi,
Adding components to a Frame at run time is apparently a big no-no, but I need
to dynamically build a menu owned by the frame at run time and, darn it,
TMenuItem's are components.
I was Interested to see exactly what would happen if I tried this, but it seems
to be working fine so my
.
Hope that helps,
Phil.
"Nahum Wild" [EMAIL PROTECTED] on 15/06/2000 15:20:52
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: [DUG]: Delphi + Model Maker
Do
that will work for win95 and
win2000 also (or at least a seperate solution).
thanks,
Phil.
"Nic Wise" [EMAIL PROTECTED] on 06/06/2000 14:05:33
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Fores
Hi,
My brother markets and installs a groupware product called first class and has
given me a problem to solve, but I'm not sure in which direction I would need to
start. I will paste the relevant bits below. Does anyone know if this is quick
and easy to do? Here is the message:
short me too
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: RTTI for interfaces
You can't use RTTI on interfaces - it does not exist.
However you can read the COM/OLE type library - if you
Can anyone point me please to a free XML component? It can be a wrapper around
the M$ parser or whatever.
Thanks
Phil.
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website:
0 11:27:35
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: [DUG]: Why are the following properties not present in TFrame??
G'Day All
OldCreateOrder : boolean;
Pix
please try to.
Or at the very least put it on Offtopic.
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
Hi,
We have a Delphi client GUI talking via Corba to some Java processes. One of the
processes generates a rather large report. We want to store this report
temporarily as a file on the server running the process (so we don't have to
send it via corba). The client and the server agree between
Phil.
Aaron Scott-Boddendijk [EMAIL PROTECTED] on 21/02/2000
19:00:45
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: Re: [DUG]: Client/middleware storage
O
to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: Re: [DUG]: Client/middleware storage
H, As I said, our network expert is away on leave so please, no acronyms.
Which one the IMHO
ist delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: Re: [DUG]: Client/middleware storage
I guess this is probably more a java question maybe? I don't know. As I
said,
our network expert yada yada yada.
The way to find out the name of t
Hi,
I have been given a DCU file (no source) that I think was compiled with Delphi
2. When I try to refer to that unit in the uses clause, I get a compiler error
that it can't find the .pas file. Is this because it's delphi 2 compiled? or am
I missing something basic and obvious here?
TIA
blast! I thought as much. Let's see how friendly the folk at Rational are...
Phil.
Aaron Scott-Boddendijk [EMAIL PROTECTED] on 16/02/2000
14:08:22
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest
Hi,
I trying to write a DLL from a Visual C specification and (not really knowing C
much at all) I need a little help with some of the conversion:
1) I presume I can convert all the straighforward #Defines into consts?
2) Can I convert the macro defines into functions? eg what would:
4) Can I ignore the #pragmas? There is only one (used in a couple of
places):
#pragma pack (push, 8) and #pragma pack (pop, 8)
Ouch - I think that forces stack push and pop's to align to 8 bytes. Not
sure tho. Depends if you are porting the code over, or just interfacing with
the DLL.
Hi,
A guy in our team has a unit with a bunch of interfaces and another unit with
classes implementing those interfaces. There is one particular class however
that keeps reporting that the declaration of a procedure differs from the
declaration in the interface. I have checked that there are
Hi,
does anyone know of an object oriented reporting tool? We are thinking of
developing our own generic reporting tool that works with objects instead of
databases. The reporting tool won't care about the source of the information -
the developer will be expected to inherit from some of the
Hi,
A call that I am making to the locate method is failing and I want to get the
error code back so I can call DBIError with it. Is there a routine that will
return the last error code from the bde?
Thanks,
Phil.
---
code - effectively the last error
encountered by the BDE.
Phil.
"Patrick Dunford" [EMAIL PROTECTED] on 11/10/99 14:39:32
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Su
Thanks.
Where did you find that? It's not in the help file?
Phil.
"Patrick Dunford" [EMAIL PROTECTED] on 11/10/99 16:24:50
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research In
I agree that the the tree building logic should be seperate from the other
information logic. That's logical :-). The tree view is really just a view
into the data. My intention is to create descendant tree nodes (from my new
generic TTreeview, TTreenodes and TTreenode classes) that know what
Using helper objects doesn't mean, though, that you need to avoid
inheritance. In your case you could create descendant nodes for no other
reason than to store a helper object (and maybe carry out a few maintenance
operations). You could create a new custom node for each kind of helper
object,
given.
From: "Max Renshaw-Fox" [EMAIL PROTECTED] AT tawa on 23/08/99 14:40 ZE12
To: Multiple recipients of list delphi [EMAIL PROTECTED] AT
tawa@kauripo@CCMAIL
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: descending from TTreeVie
That may work, but now you have used up the object holder for each Node's
object. That means that your implementation cannot be descended from
correctly if that place holder is required in the descendant class. The
argument for using helper classes is fine but your new class shouldn't have
less
Hi,
I'm creating a descendant class from TTreeView that allows you to have
custom node types (ie. descendants form TTreeNode) contained in the Items
of the tree view.
I'm doing this by descending from the TTreeNodes and TTreeView in a similar
way that Cory Osborne described in the Jan/Feb
what type I am reading in.
From: Myles Penlington [EMAIL PROTECTED] AT tawa on 09/07/99 17:07 ZE12
To: Multiple recipients of list delphi [EMAIL PROTECTED] AT
tawa@kauripo@CCMAIL
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: Error copying TDate
[EMAIL PROTECTED] AT
tawa@kauripo@CCMAIL
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: Re: [DUG]: Error copying TDateTime using TField.GetData
Does anyone know if the TField stores the 8 bytes it takes for a
TDateTime (basically a double) in an unusual fashion
Hi,
I'm loading the contents of a database table into memory in an array of
pointers. I'm using the TField's DataSize property to allocate the memory
for each pointer and then using the GetData method of the TField to dump
the contents from the database into the memory pointed to by one of
is no longer there.
Any suggestions?
Thanks,
Phil.
[EMAIL PROTECTED]
From: [EMAIL PROTECTED] AT tawa on 18/05/99 11:41 ZE12
To: Multiple recipients of list delphi [EMAIL PROTECTED] AT
tawa@kauripo@CCMAIL
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: [DUG
designed in the IDE does) - it just
refers to it.
Thanks anyway,
Phil.
[EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Rohit Gupta) AT tawa on 20/05/99 11:02 ZE12
To: Multiple recipients of list delphi [EMAIL PROTECTED] AT
tawa@kauripo@CCMAIL
cc:(bcc: Phillip Middlemiss/NZ Forest Research
Yeah, I thought I'd probably end up having to do that. I just hoped there
was a more elegant way. After all, it is still supposed to be the
TComponentEditor descendant that is managing the component, not the editing
form (ie. the editing form shouldn't really know about anything other than
ZE12
To: Multiple recipients of list delphi [EMAIL PROTECTED] AT
tawa@kauripo@CCMAIL
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: RE: [DUG]: freeing a component editor when the component i
One advantage of Notification is that you can get notified _ev
TECTED]
cc:(bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: [DUG]: [Q] Showing a hint manually
G'Day All,
Can someone tell me how to show a hint manually. I could do it the hard way
by creating a THintWindow myself but I figured that I could send it a
Button2.Perform(CM_H
46 matches
Mail list logo