L
leeeeleeee
Unregistered / Unconfirmed
GUEST, unregistred user!
刚提的问题比较含糊,这个清晰点~~[]
有一个c++的Mess.dll
结构:
typedef struct {
char Title[64];
char Time[64];
char Content[256];
}Message;
int _stdcall GetMess(Message* piMess);
下面写法不知道对不
TMessage = record
Title :array[0..63] of char;
Time :array[0..63] of char;
Content :array[0..255] of char;
end;
function GetMess(piMess: TMessage):Integer;stdcall;external 'Mess.dll';
使用。。好像有问题
procedure Tm1.Button2Click(Sender: TObject);
var piMess:TMessage;
begin
aaa(piMess);
Memo2.Text:=piMess.Title +' '+ piMess.Time+' '+ piMess.Content;
end;
有一个c++的Mess.dll
结构:
typedef struct {
char Title[64];
char Time[64];
char Content[256];
}Message;
int _stdcall GetMess(Message* piMess);
下面写法不知道对不
TMessage = record
Title :array[0..63] of char;
Time :array[0..63] of char;
Content :array[0..255] of char;
end;
function GetMess(piMess: TMessage):Integer;stdcall;external 'Mess.dll';
使用。。好像有问题
procedure Tm1.Button2Click(Sender: TObject);
var piMess:TMessage;
begin
aaa(piMess);
Memo2.Text:=piMess.Title +' '+ piMess.Time+' '+ piMess.Content;
end;