一个VC函数声明转DELPHI的问题?

CPX1984 2011-07-24 03:53:31
一个DLL中的函数用VC声明为
BOOL CLIENT_SetupChannelOsdString(
LONG lLoginID,
int nChannelNo,
DH_CHANNEL_OSDSTRING *struOsdString,
int nbuflen
);

转成delphi要怎么转?
DH_CHANNEL_OSDSTRING 是一个自定义的结构体

struct DH_CHANNEL_OSDSTRING{
BOOL bEnable;
DWORD dwPosition[MAX_STRING_LINE_LEN];
char szStrings[MAX_STRING_LINE_LEN][MAX_PER_STRING_LEN];
};
望大虾指教。
...全文
62 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
CPX1984 2011-07-25
  • 打赏
  • 举报
回复
DH_CHANNEL_OSDSTRING *struOsdString,
我定义为一个struOsdString:pointer 可以吗?
littlestone08 2011-07-25
  • 打赏
  • 举报
回复
type
tagDH_CHANNEL_OSDSTRING = record
bEnable: LongBool;
dwPosition[MAX_STRING_LINE_LEN]: DWORD;
szStrings: Array[1..MAX_STRING_LINE_LEN,1..MAX_PER_STRING_LEN] of char;
end;
function CLIENT_SetupChannelOsdString(lLoginID: LongBool; nChannelNo: Integer; var struOsdString: tagDH_CHANNEL_OSDSTRING; nbuflen: Integer): LongBool;
littlestone08 2011-07-25
  • 打赏
  • 举报
回复
type
tagDH_CHANNEL_OSDSTRING = record
bEnable: LongBool;
dwPosition[MAX_STRING_LINE_LEN]: DWORD;
szStrings: Array[1..MAX_STRING_LINE_LEN,1..MAX_PER_STRING_LEN] of char;
end;
function CLIENT_SetupChannelOsdString(lLoginID: LongBool; nChannelNo: Integer; var struOsdString: tagDH_CHANNEL_OSDSTRING; nbuflen: Integer) LongBool
浩南_哥 2011-07-25
  • 打赏
  • 举报
回复

const
MAX_STRING_LINE_LEN=100;
MAX_PER_STRING_LEN=200;
type
PDH_CHANNEL_OSDSTRING=^DH_CHANNEL_OSDSTRING;
DH_CHANNEL_OSDSTRING=record
bEnable:Boolean;
dwPosition:array[0..MAX_STRING_LINE_LEN-1] of DWORD;
szStrings:array[0..MAX_STRING_LINE_LEN-1,0..MAX_PER_STRING_LEN-1] of char;
end;

struOsdString:PDH_CHANNEL_OSDSTRING;
CPX1984 2011-07-25
  • 打赏
  • 举报
回复
就没有人知道吗?

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧