Title: Message
You could
  • overload the function so it looks like one function from outside
  • SaveFileIndex(P: Pointer); (just guessing)
Stacey
-----Original Message-----
From: James Sugrue [mailto:[EMAIL PROTECTED]
Sent: Friday, 5 December 2003 12:52
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Record Structures

I don’t think I made myself clear.

 

There are several different record types

 

I.E TDept, TSubDept etc and I want to pass any record type to the function

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Mckenzie
Sent: Friday, 5 December 2003 11:50 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Record Structures

 

SaveFileIndex(Rec: ^TMyRecord);

 

 

 

Regards
Paul McKenzie
Analyst Programmer
SMSS Ltd.
 

----- Original Message -----

From: James Sugrue

Sent: Friday, December 05, 2003 11:33 AM

Subject: [DUG] Record Structures

 

I am writing a wrapper to a dll which is written in c.

 

The converted calls in Delphi go something like

 

PQ_Write( @param, @data );

 

Where data is one of the record types.

 

What I want to do is create a standard function say SaveIndexFile( xxxx ) where xxxx is one of the records.

 

How do I pass a standard record type in the function? You cant go SaveIndexFile( var rec : Record );

 

 

 

James Sugrue

 

Software Developer

WA Systems

Timaru

Phone 03 688-1131

 


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to