
VB.NET
csdn_gddf102384398
这个作者很懒,什么都没留下…
展开
-
VB.NET将内存中的bmp数据(DIB)复制到剪贴板中
Windows下bmp(即DIB文件)的具体格式可参见《Windows程序设计(第5版)》,在此不做介绍。 Dim fs As FileStream = New FileStream("test.bmp", FileMode.Open, FileAccess.Read) Dim br As BinaryReader = New BinaryReader(fs) br.ReadBytes(14) '先读BITMAPFILEHEADER结构,共14字节 Dim img() As Byte = br.Read原创 2021-12-08 20:35:18 · 556 阅读 · 0 评论 -
VB.NET调用C语言写的dll中的函数
C语言函数声明: __declspec(dllexport) int __stdcall test1(int a,const char* str); __declspec(dllexport) void __stdcall test2(unsigned char* buf,int len); VB.NET调用C语言函数: '函数声明 <DllImport("test.dll", EntryPoint:="test1")> Public Function test1(ByVal a As原创 2021-12-06 21:21:55 · 1293 阅读 · 0 评论