vc里面的代码:
typedef unsigned char  U8;
typedef unsigned short U16;typedef struct
{
    U8 Hour;
    U8 Minute;
    U8 Second;
}TIME;typedef struct
{
    U16 Year;
    U8  Month;
    U8  Day;
}DATE;
在delphi里面怎么写,调用vc的dll,传过去的参数才是正确的

解决方案 »

  1.   

     type U8= String[8]; 
    U16= u16 = DWORD;
    TIME = record 
       Hour : u8;
       Minute : u8;
       Second : u8;
    end;
    DATE = record
      Year : U16;
      Month : u8; 
      Day : u8;
    end;
           
    试试这个
      

  2.   

    type U8= String[8];  
         U16 = DWORD;
    TIME = record  
      Hour : u8;
      Minute : u8;
      Second : u8;
    end;
    DATE = record
      Year : U16;
      Month : u8;  
      Day : u8;
    end;
        
    上面多拉个u16
      

  3.   

    TTime = record
      Hour: Byte;
      Minute: Byte;
      Second: Byte;
    end;TDATE = record
      Year: Word
      Month: Byte;
      Day: Byte;
    end;