随笔分类 -  C++

摘要:DWORD: DWORD 就是 Double Word, 每个word为2个字节的长度,DWORD 双字即为4个字节,每个字节是8位,共32位 WPARAM:32 位 LPARAM:32位 short: 16位 阅读全文
posted @ 2016-04-20 15:57 GrayGuo 阅读(178) 评论(0) 推荐(0)
摘要:有时候我们想查看一个exe引用了哪些动态库,或者我们想看某个动态库包含哪些接口函数,这个时候可以使用dumpbin.exe工具: 1.输入Dumpbin -imports calldll.exe查看它的输入信息,可以看到它加载了***.dll2.输入dumpbin –exports dlltest. 阅读全文
posted @ 2016-04-17 22:05 GrayGuo 阅读(1021) 评论(0) 推荐(0)
摘要:1:保证编译后方法名不被修改: The: extern "C" { function declarations here in h file } will disable C++ name encoding. so c# will find the function 1: definition of 阅读全文
posted @ 2016-04-16 14:52 GrayGuo 阅读(238) 评论(0) 推荐(0)
摘要:参考: http://www.cnblogs.com/liping13599168/archive/2011/03/31/2000320.html Platform Invoke Tutorial:https://msdn.microsoft.com/en-us/library/aa288468(V 阅读全文
posted @ 2016-04-15 23:27 GrayGuo 阅读(199) 评论(0) 推荐(0)
摘要:创建静态类库 Walkthrough: Creating and Using a Dynamic Link Library (C++) 1:菜单栏-->File, New, Project. 2: 选择 Win32 Console Application 3:在 Application Settin 阅读全文
posted @ 2016-04-15 22:38 GrayGuo 阅读(678) 评论(0) 推荐(0)