I've adding a plugin DLL interface to my Delphi app so 3rd party DLL's can
utilize functions in my app. I'm not going to change pascal strings into
pChars just to suit C++ developers so I need to write the documentation
describing a record structure containing strings for a C++ developer.
I know very little about the C language. Can someone confirm if I have this
right please.
MyRecord = packed record
Artist: String;
Title: String;
Duration: Integer;
Year: Word;
Gender: ShortInt;
BPM: Byte;
Cuedb: SmallInt;
Cue: LongWord;
end;
typedef struct {
int StringLen;
char String;
} delphistring;
typedef struct{
delphistring *Artist;
delphistring *Title;
int Duration;
unsigned short Year;
signed char Gender;
unsigned char Byte;
short Cuedb;
unsigned long Cue;
} MyRecord;
Many thanks,
Ross.
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi