工作环境:dll源代码是c,在Visual studio 2010中调试. 第一步,调试的准备. 用C#语言编写一个测试dll文件的程序,由于dll源程序是c的,且运行结果是黑屏的,所以C#代码也是运行在黑屏的console环境下.完整代码如下. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; na