这个是C++原始函数:
/*************************************************
          Function:       // (unsigned char encrypt, unsigned char* datat, unsigned char* keyt)
          Description:    // DES加解密函数
          Input:  encrypt = 0; 解密
 encrypt = 1; 加密
          datat,原数据 8BYTE
          keyt,密钥 8BYTE
          Output:          datat加解密后数据
          Others:         
        *************************************************/
这个是我的调用:
         [DllImport("DesDll.dll")]
         public static extern void DesS(byte enrypt,ref  byte[] datat,ref  byte[] keyt);         //密码                
         byte[] hexCipher ={ 0xB8, 0xDA, 0xE8, 0x44, 0xBC, 0x59, 0x0B, 0xB9 };         //密钥
         byte[] hexKey ={ 0x77, 0x69, 0x6E, 0x74, 0x65, 0x63, 0x31, 0x30 };
         DesS(0, ref hexCipher,ref  hexKey);
1.这里老是报哪个异常NotSupportedException,不知道哪里出来了问题,
2.c++函数在C++环境下调试没问题。我第一次在CSDN发帖,知道分的重要,但是我真的是每分了,只求了好心人能帮忙下,谢谢。