déclaration de variable pour une dll

Posté par jolindien le 10/1/2005 21:02:20
Bonjour à tous.

J'ai un nouveau problème à vous soumettre.
Je voudrais utiliser une DLL, et je dois utiliser ces variables:

TCdRom = record
HaId : Byte;
Target : Byte;
Lun : Byte;
Vendor : ShortString;
ProductId : ShortString;
Revision : ShortString;
VendorSpec: ShortString;
end;

TCdRoms = record
CdRomCount: Byte;
CdRom : array[0..25] of TCdRom;
end;

TTOC = record
M: Byte;
S: Byte;
F: Byte;
AudioTrack: Boolean; // indicates if the track is an audio or data track
end;

TCdToc = record
TracksOnCD: Byte;
LeadOut : TTOC;
Tracks : array[0..99] of TTOC;
end;

Je voudrais savoir comment les déclarer?
En variable composée, classe ou structure?

Merci.

Cette contribution était de : http://old.wdforge.org/newbb/viewtopic.php?forum=12&topic_id=1658&post_id=6868