摘要:
比较:public static extern int comp2(byte[] a, byte[] b, int count); [DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, SetLastError = false)] static extern int memcmp(byte[] b1, byte[] b2, UIntPtr count); [DllImport("msvcrt.dll", CallingConvention = CallingConven 阅读全文
摘要:
以前一直用[DllImport("xx.dll")]声明,但在.net4中却出现了错误。在网上找到解决方法,在此做个备份:改声明: [DllImport("xx.dll", CallingConvention = CallingConvention.Cdecl)] 阅读全文