摘要: 比较: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 阅读全文
posted @ 2011-12-15 16:02 81 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 以前一直用[DllImport("xx.dll")]声明,但在.net4中却出现了错误。在网上找到解决方法,在此做个备份:改声明: [DllImport("xx.dll", CallingConvention = CallingConvention.Cdecl)] 阅读全文
posted @ 2011-12-15 14:12 81 阅读(858) 评论(1) 推荐(0) 编辑