随笔分类 -  C++

摘要:Creating an AVI in memory with C++ The following example demonstrates how an avi file is completely created in memory./* MakeAviInMemory.cpp An exam... 阅读全文
posted @ 2015-08-02 15:37 老榕树 阅读(264) 评论(0) 推荐(0)
摘要:AviMemDc: a C++ class This class is used in the Avi Examples.The header fileAviMemDC.h/* AviMemDC.h A C++ class for creating avi files Copyright (c)... 阅读全文
posted @ 2015-08-02 15:36 老榕树 阅读(262) 评论(0) 推荐(0)
摘要:Creating an generated Earth AVI with C++ EarthGenerator.cpp/* EarthGenerator.cpp An example on how to use AviMemDC.cpp Copyright (c) 1998-2003 Torbe... 阅读全文
posted @ 2015-08-02 15:34 老榕树 阅读(250) 评论(0) 推荐(0)
摘要:Embedding SQLite in a c programm The following program demonstrates how to embed SQLite into a c program.I compiled the program with MinGW without a... 阅读全文
posted @ 2015-08-01 16:08 老榕树 阅读(216) 评论(0) 推荐(0)
摘要:(C++)Assertion failed: !"Bad error code", file VMem.c, line 715Misc error.myInterfaceFull error messageAssertion failed: !"Bad error code", file VMem.... 阅读全文
posted @ 2015-05-11 10:31 老榕树 阅读(645) 评论(0) 推荐(0)
摘要:获取IE (控件)的所有链接(包括Frameset, iframe)IE 顶层 body 节点通过IHTMLElement->get_all 方法无法获取iframe 里面的节点列表CComPtrbody;CComPtrspDispCollection;body->get_all(&spDispCo... 阅读全文
posted @ 2015-04-18 22:54 老榕树 阅读(811) 评论(0) 推荐(0)
摘要:BCB直接访问硬件端口和物理内存 - WinIO的应用(读硬盘参数和主板BIOS信息, 支持 Win9x/NT/2k/XP/2003)关于直接访问端口, 有很多网站很多文章都讨论过, 但总找不到非常理想的办法。我这里用的是 Yariv Kaplan 的 WinIo 2.0。虽然 WinIO 也有缺陷... 阅读全文
posted @ 2014-11-14 09:42 老榕树 阅读(829) 评论(0) 推荐(0)
摘要:再谈WinIO初始化异常前段时间WinIO在我的新项目中总是初始化失败,有时候又是好好的,很让人费解。修改了源代码显示了很多调试信息后,也没有什么太多的收获。由于我们的工控卡必须要用这个库,所以没办法,只得停下脚步,细细研究一下问题所在。初始化的时候调用的是InitializeWinIo()函数:b... 阅读全文
posted @ 2014-11-14 09:31 老榕树 阅读(3642) 评论(0) 推荐(1)
摘要:基于WinIO3.0实现驱动级键盘模拟输入一个业务场景需要使用驱动级的键盘模拟,折腾了2天,总结一下,为后人节省时间。限制条件:1.需要真实PC机,虚拟机不行2.仅支持PS/2 键盘(指外接键盘,笔记本直接使用是没问题的)实现:关于WinIO没啥好说的,自行查阅吧。直接上可执行代码,注意红色注释部分... 阅读全文
posted @ 2014-11-14 09:25 老榕树 阅读(2818) 评论(2) 推荐(0)