摘要: 1、memseta) 函数原型:void *memset(void *s, int iValue, size_tn); //size_t:typedef unsigned int size_tb)功能说明:将s的前n个字节用iValue替代,在对较大的结构体或数组进行清零操作时时是很好的选择。c)所... 阅读全文
posted @ 2015-07-07 13:57 LiaoXiansheng 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 用例: 现在有一个命名空间为Device的Device.dll文件,它含两个类Device1和Device2;现通过反射原理创建Device1和Device2类,具体语句如下://1、首先需要添加引用 using System.Reflection;//2、创建Device1Assembly Asm... 阅读全文
posted @ 2015-06-26 10:24 LiaoXiansheng 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 例如:现"D:\TestInterface\"下有一个C++编写的TestInterface.dll文件,使用Depends工具查看到它含两个接口函数Sum(int addend1,int addend2)和Subtraction(int minuend,int subtrahend),需要在C#项... 阅读全文
posted @ 2015-06-26 09:34 LiaoXiansheng 阅读(385) 评论(0) 推荐(0) 编辑