Hi all,
I'm trying to convert a C function into a Delphi function.
The function header is as follows:
__declspec( dllexport ) short BrainMain(const BrainInfo *brainInfo)
brainInfo is a record which I've set up with a type called TbrainInfo. I have two questions:
1) Is this the way to call the parameters for this function: function BrainMain(const BrainInfo TbrainInfo): smallint;
2) How do I call this function?
x:= BrainMain(?????);
Should I create a type that is a pointer to the record and pass that?
Regards,
DjangMan
I'm trying to convert a C function into a Delphi function.
The function header is as follows:
__declspec( dllexport ) short BrainMain(const BrainInfo *brainInfo)
brainInfo is a record which I've set up with a type called TbrainInfo. I have two questions:
1) Is this the way to call the parameters for this function: function BrainMain(const BrainInfo TbrainInfo): smallint;
2) How do I call this function?
x:= BrainMain(?????);
Should I create a type that is a pointer to the record and pass that?
Regards,
DjangMan