[DUG]: Variant comparison. how?

2000-08-07 Thread phillip . middlemiss
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;

RE: [DUG]: Variant comparison. how?

2000-08-07 Thread phillip . middlemiss
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

RE: [DUG]: Aaarrgh! Variants@#%^$3!!

2000-08-06 Thread phillip . middlemiss
/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

RE: [DUG]: Aaarrgh! Variants@#%^$3!!

2000-08-06 Thread phillip . middlemiss
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

RE: [DUG]: Aaarrgh! Variants@#%^$3!! SOLVED

2000-08-06 Thread phillip . middlemiss
] 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

RE: [DUG]: List of OLEVariant

2000-08-02 Thread phillip . middlemiss
: 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

[DUG]: Gannt Chart and Pivot Table components

2000-07-23 Thread phillip . middlemiss
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

Re: [DUG]: What is the diff?

2000-07-20 Thread phillip . middlemiss
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

RE: [DUG]: Type libraries from interfaces

2000-07-02 Thread phillip . middlemiss
] 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

RE: [DUG]: Type libraries from interfaces

2000-07-02 Thread phillip . middlemiss
-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

[DUG]: Type libraries from interfaces

2000-06-29 Thread phillip . middlemiss
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:

[DUG]: TFrames and dynamic menus

2000-06-14 Thread phillip . middlemiss
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

Re: [DUG]: Delphi + Model Maker

2000-06-14 Thread phillip . middlemiss
. 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

RE: [DUG]: one time authentication

2000-06-05 Thread phillip . middlemiss
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

[DUG]: one time authentication

2000-06-01 Thread phillip . middlemiss
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:

Re: [DUG]: Missing messages

2000-05-10 Thread phillip . middlemiss
short me too --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

RE: [DUG]: RTTI for interfaces

2000-05-07 Thread phillip . middlemiss
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

[DUG]: XML component

2000-03-16 Thread phillip . middlemiss
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:

Re: [DUG]: Why are the following properties not present in TFrame??

2000-02-28 Thread phillip . middlemiss
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

Re: [DUG]: Couldn't Resist

2000-02-28 Thread phillip . middlemiss
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

[DUG]: Client/middleware storage

2000-02-21 Thread phillip . middlemiss
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

Re: [DUG]: Client/middleware storage

2000-02-21 Thread phillip . middlemiss
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

Re: [DUG]: Client/middleware storage

2000-02-21 Thread phillip . middlemiss
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

Re: [DUG]: Client/middleware storage

2000-02-21 Thread phillip . middlemiss
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

[DUG]: loading a DCU

2000-02-16 Thread phillip . middlemiss
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

Re: [DUG]: loading a DCU

2000-02-16 Thread phillip . middlemiss
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

[DUG]: converting a Visual C DLL to Delphi

2000-02-15 Thread phillip . middlemiss
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:

Re: [DUG]: converting a Visual C DLL to Delphi

2000-02-15 Thread phillip . middlemiss
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.

[DUG]: Declaration differs from Interface

2000-02-03 Thread phillip . middlemiss
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

[DUG]: OO Reporting tools

1999-12-21 Thread phillip . middlemiss
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

[DUG]: BDE Error

1999-10-11 Thread phillip . middlemiss
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. ---

RE: [DUG]: BDE Error

1999-10-11 Thread phillip . middlemiss
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

RE: [DUG]: BDE Error

1999-10-11 Thread phillip . middlemiss
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

RE: [DUG]: descending from TTreeView - take 3

1999-08-26 Thread phillip . middlemiss
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

RE: [DUG]: descending from TTreeView - take 3

1999-08-24 Thread phillip . middlemiss
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,

RE: [DUG]: descending from TTreeView - take 3

1999-08-23 Thread phillip . middlemiss
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

RE: [DUG]: descending from TTreeView - take 3

1999-08-23 Thread phillip . middlemiss
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

[DUG]: descending from TTreeView

1999-08-22 Thread phillip . middlemiss
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

RE: [DUG]: Error copying TDateTime using TField.GetData

1999-07-09 Thread phillip . middlemiss
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

Re: [DUG]: Error copying TDateTime using TField.GetData

1999-07-09 Thread phillip . middlemiss
[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

[DUG]: Error copying TDateTime using TField.GetData

1999-07-08 Thread phillip . middlemiss
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

Re: [DUG]: freeing a component editor when the component is des

1999-05-19 Thread phillip . middlemiss
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

Re: [DUG]: freeing a component editor when the component i

1999-05-19 Thread phillip . middlemiss
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

RE: [DUG]: freeing a component editor when the component i

1999-05-19 Thread phillip . middlemiss
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

RE: [DUG]: freeing a component editor when the component

1999-05-19 Thread phillip . middlemiss
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

Re: [DUG]: [Q] Showing a hint manually....

1999-01-02 Thread phillip . middlemiss
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