摘要: 完成这件事情需要做几个准备,如下:Ÿ编写C源文件;Ÿ找到VS下的C编译器cl.exe link.exe;Ÿ编写C#调用dll代码;-----------------------------------------------------------------------------------------编写C源文件:举如下例子:a)在记事本中编写如下代码,并另存为hello.c;#include "stdio.h"__declspec(dllexport) char* Hello(){return "Hello World!";}找到VS下的C编译器 阅读全文
posted @ 2012-07-29 13:52 南山砍柴的 阅读(2116) 评论(0) 推荐(2) 编辑