F
fartripLiao
Unregistered / Unconfirmed
GUEST, unregistred user!
_OSD_BASE = $9000;
_OSD_YEAR4 = _OSD_BASE+0;
_OSD_YEAR2 = _OSD_BASE+1;
_OSD_MONTH3 = _OSD_BASE+2;
_OSD_MONTH2 = _OSD_BASE+3;
_OSD_DAY = _OSD_BASE+4;
_OSD_WEEK3 = _OSD_BASE+5;
_OSD_CWEEK1 = _OSD_BASE+6;
_OSD_HOUR24 = _OSD_BASE+7;
_OSD_HOUR12 = _OSD_BASE+8;
_OSD_MINUTE = _OSD_BASE+9;
_OSD_SECOND = _OSD_BASE+10;
USHORT Format2[40] = {24, 240, _OSD_YEAR2, '-',_OSD_MONTH2,'-',_OSD_DAY,'-', _OSD_HOUR24, ':', _OSD_MINUTE,':', _OSD_SECOND, '/0'};
USHORT Format1[40] = {48, 16, '办','公','室','风', '景', '/0'};
VC调用方式:
SetOsdDisplayMode(ChannelHandle, 255, TRUE, 0, Format1, Format2);
VC声明
DLLEXPORT_API int __stdcall SetOsdDisplayMode(HANDLE hChannelHandle, int Brightness, BOOL Translucent, int TwinkleInterval, USHORT *Format1, USHORT *Format2);
要转化为DELPHI的方法 ,另请各位测试一下,编译是否通过
_OSD_YEAR4 = _OSD_BASE+0;
_OSD_YEAR2 = _OSD_BASE+1;
_OSD_MONTH3 = _OSD_BASE+2;
_OSD_MONTH2 = _OSD_BASE+3;
_OSD_DAY = _OSD_BASE+4;
_OSD_WEEK3 = _OSD_BASE+5;
_OSD_CWEEK1 = _OSD_BASE+6;
_OSD_HOUR24 = _OSD_BASE+7;
_OSD_HOUR12 = _OSD_BASE+8;
_OSD_MINUTE = _OSD_BASE+9;
_OSD_SECOND = _OSD_BASE+10;
USHORT Format2[40] = {24, 240, _OSD_YEAR2, '-',_OSD_MONTH2,'-',_OSD_DAY,'-', _OSD_HOUR24, ':', _OSD_MINUTE,':', _OSD_SECOND, '/0'};
USHORT Format1[40] = {48, 16, '办','公','室','风', '景', '/0'};
VC调用方式:
SetOsdDisplayMode(ChannelHandle, 255, TRUE, 0, Format1, Format2);
VC声明
DLLEXPORT_API int __stdcall SetOsdDisplayMode(HANDLE hChannelHandle, int Brightness, BOOL Translucent, int TwinkleInterval, USHORT *Format1, USHORT *Format2);
要转化为DELPHI的方法 ,另请各位测试一下,编译是否通过