风过无痕,生命如烟

每个人生下来都是天使,不过这个世界上也存在着恶魔。恶魔是天使变的,因为这个世界充满了诱惑。

导航

随笔分类 -  VC++相关

VC++相关
(转)支持 PS/2 与 USB 的键盘过滤驱动(可卸载)
摘要:Author: sinisterEmail: sinister@whitecell.orgHomepage:http://www.whitecell.org Date: 2007-02-26 WSS(Whitecell Security Systems),一个非营利性民间技术组织,致力于各种系统安全 阅读全文

posted @ 2018-03-24 13:59 hyamw

值得推荐的C/C++框架和库 (真的很强大)〔转〕
摘要:http://m.blog.csdn.net/article/details?id=42541419 阅读全文

posted @ 2017-01-29 15:32 hyamw 阅读(207) 评论(0) 推荐(0)

值得推荐的C/C++框架和库【转】
摘要:本文摘自:http://blog.csdn.net/dpsying/article/details/51793711 值得学习的C语言开源项目 - 1. Webbench Webbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试 阅读全文

posted @ 2016-07-21 13:04 hyamw 阅读(173) 评论(0) 推荐(0)

VC++ Debugger Tips[转]
摘要:本文摘自:http://blogs.msdn.com/b/vcblog/archive/2006/08/04/689026.aspxHi, my name is Sergey Grankin and I'm a developer on the VC++ IDE Team. I mostly work on the C++debuggerexpression evaluators -- the code responsible for the magic behind the debugger watch windows.Visual Studio's (native) C++ 阅读全文

posted @ 2013-12-16 17:30 hyamw 阅读(401) 评论(0) 推荐(0)

Bit Twiddling Hacks[转]
摘要:本文摘自:http://graphics.stanford.edu/~seander/bithacks.htmlBit Twiddling HacksBy Sean Eron Andersonseander@cs.stanford.eduIndividually, thecode snippets here are in the public domain(unless otherwise noted) — feel free to use them however you please. The aggregate collection and descriptions are © 阅读全文

posted @ 2012-10-19 15:44 hyamw 阅读(177) 评论(0) 推荐(0)

Multi-Monitor Rendering in OpenGL(转载)
摘要:本文摘自:http://www.rchoetzlein.com/theory/?p=103Multi-Monitor Rendering in OpenGLThis article is about programming multiple graphics cards to render OpenGL scenes on up to 6 monitors with a single computer. Recently, I’ve been doing research in this area for the Allosphere, an immersive, 30ft. display 阅读全文

posted @ 2011-04-05 01:33 hyamw 阅读(824) 评论(0) 推荐(0)

智能指针的缺陷
摘要:用过智能指针的都知道它的好处,不需要考虑所指向的内存为非法地址,也就是野指针。同时也不需要很在意内存释放的问题(除非你很在意显式的内存释放)。但是智能指针同样有一个天生的缺陷:不能存在相互引用,也就是不能出现下面这种情况:A引用了B,B也引用了A,这个情况会导致A和B永远都不能释放,因为所有其他引用A或者B的实例都取消引用以后,A和B的引用计数没有清零,A和B还互相引用着。在这种情况下,目前我只能... 阅读全文

posted @ 2010-11-10 11:45 hyamw 阅读(614) 评论(0) 推荐(0)

C++多重继承
摘要:今天在考虑一个C++实现的时候需要用到多重继承,突然发觉这么多年来基本都没怎么用过多重继承只是了解多重继承可以用,不过很容易出问题,尤其是基类是从相同的类派生出来的。今天我需要用到的没有这么麻烦,不过我还是对于多重继承的内存释放感到困惑。大家应该都知道设计C++类的时候,如果这个类需要被继承,建议把析构函数声明为virtual的。之前对于这一点的理解是:基类成员的内存释放一般是在基类析构函数里面完... 阅读全文

posted @ 2010-11-07 21:07 hyamw 阅读(520) 评论(0) 推荐(0)

"The system cannot execute the specified program"
摘要:今天碰到一个用VC++写的程序在其他机器上运行错误的问题"The system cannot execute the specified program"程序是控制台程序,没有使用MFC/ATL,在我自己的编译机器上运行正常,复制到另外一个服务器上运行,就出现上面的错误上网搜了一下,找到这样一篇文章:http://blog.csdn.net/HaloKuhn/archive/2009/12/17/... 阅读全文

posted @ 2010-03-05 11:17 hyamw 阅读(1533) 评论(0) 推荐(0)

DLL导出函数小问题
摘要:好久没写过DLL了,手生得很。今天写了一个DLL来测试一个Hook例子,结果导出函数以后死活是无法加载。因为用的是.NET 2005,所以默认使用的Unicode,改成Multi-Byte Character Set 也不行,1m_hLibrary=LoadLibrary(TEXT("MessageHook.dll"));2if(m_hLibrary)3{4StartHookFuncstart=(... 阅读全文

posted @ 2007-05-17 15:38 hyamw 阅读(779) 评论(0) 推荐(0)

flex&bison学习笔记(2)
摘要:昨天把lex文件弄完了,知道了大概怎么回事。今天的任务是研究yacc语法文件。几经折腾,终于自己写出了一个语法文件,lex.l文件:%{#include<stdio.h>#include<string.h>#include<io.h>#include"lexsymb.h"#include"parse.cpp.h"%}LETTER[a-zA-Z_]DIGIT[0-... 阅读全文

posted @ 2007-03-28 14:12 hyamw 阅读(1016) 评论(0) 推荐(0)

flex&bison 学习笔记(1)
摘要:最近用的项目是用脚本写GUI界面,空闲时间也想自己写个脚本系统玩一玩,以前用的都是别人写好的脚本引擎,比如:JavaScript、VBScript、lua……自己没有研究过。准备工作当然是搜集资料了,先看了一篇教程《Implementing a Scripting Engine》,说得不错,打算也采用lex和yacc来做词法和语法的分析(全都自己写太累了,有现成的何必不用呢... 阅读全文

posted @ 2007-03-27 18:14 hyamw 阅读(1241) 评论(0) 推荐(0)

链接错误error LNK2005可能原因之一
摘要:曾经碰到这样的链接错误:msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::_Container_base::~_Container_base(void)" (??1_Container_base@std@@QAE@XZ) already defined in common_d.lib(BasicLog.obj)... 阅读全文

posted @ 2007-01-11 18:36 hyamw 阅读(16947) 评论(6) 推荐(0)

32位CRC循环冗余检查码算法
摘要:staticULONG g_auiCRC32_Table[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cb... 阅读全文

posted @ 2007-01-11 14:26 hyamw 阅读(1855) 评论(0) 推荐(0)

浮点数取小数点后几位的方法
摘要:float setprecision(float in_f, int in_l){ float tf_R; int ti_B = 1, ti_L = in_l+1; int ti_M,ti_F, ti_I; while(ti_L--) ti_B *= 10; ti_M = (int)(in_f* ti_B+5.5); ti_I = ti_M/ti_B; ti_F = (int)(ti_M)%ti_... 阅读全文

posted @ 2006-09-14 16:04 hyamw 阅读(1973) 评论(0) 推荐(0)

Rotate a vector by using quaternion
摘要:Assuming you want to rotate vectors around the origin of your coordinate system. (If you want to rotate around some other point, subtract its coordinates from the point you are rotating, do the rotati... 阅读全文

posted @ 2006-08-14 16:26 hyamw 阅读(995) 评论(0) 推荐(0)

预定义内存构造对象
摘要:本文摘自:http://www.blog.edu.cn/user1/7201/archives/2006/1230438.shtml常常有人问这样一个C++问题:如何在预先定义的内存位置构造一个对象?在预先定义的内存缓冲构造一个对象有许多有用的应用。例如,一个定制的垃圾搜集器能使用一个大的预分配内存缓冲,用户在这个缓冲中构造其对象。当不再需要这些对象时,它们的存储空间被自动收回。 这个技术在重视时... 阅读全文

posted @ 2006-04-24 16:49 hyamw 阅读(270) 评论(0) 推荐(0)

Unicode和UTF-8格式简介
摘要:什么是 Unicode?历史上, 有两个独立的, 创立单一字符集的尝试. 一个是国际标准化组织(ISO)的 ISO 10646 项目, 另一个是由(一开始大多是美国的)多语言软件制造商组成的协会组织的 Unicode 项目. 幸运的是, 1991年前后, 两个项目的参与者都认识到, 世界不需要两个不同的单一字符集. 它们合并双方的工作成果, 并为创立一个单一编码表而协同工作. 两个项目仍都存在并独... 阅读全文

posted @ 2006-04-06 17:55 hyamw 阅读(955) 评论(0) 推荐(0)

控制台程序输出重定向
摘要:摘自:http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=185751void CDosWindowsDlg::OnButton1() { // TODO: Add your control notification handler code here SECURITY_ATTRIBUTES... 阅读全文

posted @ 2006-02-24 10:46 hyamw 阅读(969) 评论(0) 推荐(0)