USHORT * 的问题

cxc33 2007-06-26 03:32:55
请问

DLLEXPORT_API int __stdcall SetOsdDisplayMode(HANDLE hChannelHandle, int Brightness, BOOL Translucent, int parameter, USHORT *Format1, USHORT *Format2);

USHORT Format1[] = {24, 240, _OSD_YEAR2, '-',_OSD_MONTH2,'-',_OSD_DAY,'-', _OSD_HOUR24, ':', _OSD_MINUTE,':', _OSD_SECOND, '\0'};
USHORT Format2[] = { 0, 0, 0x20, 0};

SetOsdDisplayMode(ChannelHandle[i], 255, TRUE, 1, Format1, Format2);

在delphi中怎么用
...全文
204 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenzhuo 2007-06-26
  • 打赏
  • 举报
回复
const
Format1: array[0..13] of Byte =(24,240,....);
Format2: array[0..3] of Byte = (0,0,$20,0);

function SetOsdDisplayMode(hChannelHandle:THANDLE;Brightness:integer;
Translucent Boolean;parameter:integer;var Format1,Format2: array of btye):integer;stdcall;

试试!
hongqi162 2007-06-26
  • 打赏
  • 举报
回复
你看看这篇文章
http://www.heng-feng.com.cn/delphi/system/data3343047.html
hongqi162 2007-06-26
  • 打赏
  • 举报
回复
SetOsdDisplayMode(Channel[0].Handle, 255, False, 1, @ODSString1, @ODSString2);

1,183

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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