本帖最后由 u014247189 于 2014-05-31 13:04:03 编辑

解决方案 »

  1.   

    char[] BDate= new char[10];
      

  2.   

    这么简单?那位什么我用int数组就不行呢?值都是数字的
      

  3.   

    How to use unsigned char in C#?C#调用C++的DLL 所有数据类型转换方式
      

  4.   


    int __stdcall GuestCard(uchar d12,int dlsCoID,uchar CardNo,uchar dai,
    uchar LLock,uchar pdoors,uchar BDate[10],
    uchar EDate[10],uchar LockNo[8],uchar *cardHexStr);
    static extern GuestCard(byte d12, int dlsCoID, byte CardNo,  
    byte LLock, byte pdoors, byte [] BDate, 
    byte EDate[10], byte LockNo[8], IntPtr cardHexStr);
     
      

  5.   


    注释:_in C++,uchar be unsigned char is byte