08 2017 档案
C# 对结构体和指针的使用
摘要://结构体的定义 [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] public struct VGAStat { public int length; [MarshalAs(Unmana
阅读全文
C#引用C++的DLL方案(C#调用非托管动态链接库)
摘要:SocketClientInit是C++里面定义的方法,通过EntryPoint = "?SocketClientInit@@YAHHHPAD@Z"指出这个函数的真正入口处,方法是在运行指令中输入 dumpbin -exports +dll 路径:dumpbin -exports C:\Users\
阅读全文
C#创建、读写、增加、删除XML操作
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml;using System.Collectio
阅读全文
浙公网安备 33010602011771号