delphi向C++传递结构指针的问题
ahalf 2005-05-07 06:30:08 在delphi中调用一个c++写的DLL,其中需要传递一个结构指针如下:
struct info
{
a char[10],
b char[10]
}
现在,我在delphi中定义一个记录类型如下:
type = record
a string(10);
b string(10);
end;
现在我要传递参数,使a的值为‘123456’,问题是:我怎么操作才能让a是空结束的串,而不是delphi的短串?我已经使用了{$H+}编译选项。