摘要:
C#动态调用C++编写的DLL函数 动态加载 DLL 需要使用 Windows API 函数: LoadLibrary 、 GetProcAddress 以及 FreeLibrary 。我们可以使用 DllImport 在 C# 中使用这三个函数。 [DllImport("Kernel32")] public static extern int GetProcAddress(inthandle, ... 阅读全文
摘要:
c# 生成 xml 文件 方法一:using System;using System.Xml;using System.IO;using System.Text;public class ReadWriteXml { private static void Main() { // Create the file and writer. FileStream fs = new FileStream... 阅读全文