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

解决方案 »

  1.   

    SetOsdDisplayMode(Channel[0].Handle, 255, False, 1, @ODSString1, @ODSString2);
      

  2.   

    你看看这篇文章
    http://www.heng-feng.com.cn/delphi/system/data3343047.html
      

  3.   

    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;  试试!