To answer my own question:

 

SaveIndex ( Rec : Pointer );

 

Dept : TDept;

 

SaveIndex ( @Dept );

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Sugrue
Sent: Friday, 5 December 2003 11:34 a.m.
To: [EMAIL PROTECTED]
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

Reply via email to