读书人

USHORT * 的有关问题

发布时间: 2012-02-17 17:50:41 作者: rapoo

USHORT * 的问题
请问

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中怎么用

[解决办法]
你看看这篇文章
http://www.heng-feng.com.cn/delphi/system/data3343047.html
[解决办法]
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;

试试!

读书人网 >.NET

热点推荐