摘要: // pointDemo0905.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//写法1//int sum(int array[],int num);//写法2int sum(const int *array,int num);void revalue(int ... 阅读全文
posted @ 2015-09-05 20:10 ITtang 阅读(1291) 评论(0) 推荐(0) 编辑
摘要: 1、指针的类型和指针所指向的类型如定义一个指针 int *ptr, 指针ptr的类型是int*,而指针所指向的类型是int。例1:int *p; //指针p类型是int*int a;char b;p=&a; //指针p指向类型是int,a为int型,该语句可使p指向a*p=10; //即使得a=... 阅读全文
posted @ 2015-09-05 14:56 ITtang 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 本文以ADOX操作Access1、在C#中新建AccessClass.cs文件,内容如下 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 usin... 阅读全文
posted @ 2015-09-03 21:19 ITtang 阅读(5226) 评论(0) 推荐(0) 编辑
摘要: 无论调用win32.dll还是mfc.dll基本过程都是一样的 下面以CALLmfcdll的C#项目调用VC++编写的MFCDLL项目为例 1、在MFCDLL.h中加上 extern "C" __declspec(dllexport) int add(int x,int y);//导出函数 2、在M 阅读全文
posted @ 2015-09-03 15:14 ITtang 阅读(1676) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/huang9012/article/details/21811129小细节:#include "stdafx.h" //"stdafx.h" 必须放在首部 阅读全文
posted @ 2015-09-03 10:52 ITtang 阅读(145) 评论(0) 推荐(0) 编辑