上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 48 下一页

2009年1月19日

MFC笔记(2)OnCtrlColor

摘要: BEGIN_MESSAGE_MAP(CtestDialogDlg, CDialog)ON_WM_CTLCOLOR()END_MESSAGE_MAP()HBRUSH CtestDialogDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor){ HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlC... 阅读全文

posted @ 2009-01-19 21:17 cutepig 阅读(1084) 评论(0) 推荐(0) 编辑

MFC笔记(1)CPaintDC, CClientDC

摘要: http://imcc.blogbus.com/logs/1962781.html1.CClientDCCClientDC(客户区设备上下文)用于客户区的输出,它在构造函数中封装了GetDC(),在析构函数中封装了ReleaseDC()函数。一般在响应非窗口重画消息(如键盘输入时绘制文本、鼠标绘图)绘图时要用到它。用法是:CClientDC dc(this);//this一般指向本窗口或当前活动视... 阅读全文

posted @ 2009-01-19 21:16 cutepig 阅读(4131) 评论(0) 推荐(0) 编辑

2009年1月15日

Edge detection....

摘要: http://www.nada.kth.se/~tony/cern-review/cern-html/node12.htmlOn the localization performance measure and optimal edge detection Tagare, H.D.; de Figueiredo, R.J.P. Multidimens... 阅读全文

posted @ 2009-01-15 00:19 cutepig 阅读(1570) 评论(0) 推荐(0) 编辑

C++笔记(6)友元

摘要: 下面我们来看一段代码,看看我们是如何利用友元来访问类的一切成员的。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include using namespace std;class Internet { public: In... 阅读全文

posted @ 2009-01-15 00:05 cutepig 阅读(417) 评论(0) 推荐(0) 编辑

2009年1月14日

C++笔记(5)const和mutable 关键字

摘要: C++笔记(5)const关键字1、const A fun2( ); const A* fun3( ); 返回const变量2、类成员函数中const的使用 一般放在函数体后,形如:void fun() const; 任何不会修改数据成员的函数都因该声明为const类型。如果在编写const成员函数时,不慎修改了数据成员,或者调用了其他非con... 阅读全文

posted @ 2009-01-14 23:38 cutepig 阅读(744) 评论(1) 推荐(1) 编辑

C++笔记(4)成员函数定义在类内与类外

摘要: 类体内定义的函数,自动认为是inline的,类体外定义的,必须在声明时指定inline,才是inline的。 阅读全文

posted @ 2009-01-14 22:56 cutepig 阅读(1566) 评论(0) 推荐(0) 编辑

C++笔记(3)类中与类外的运算符重载

摘要: 重载>>Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1#include 2using namespace std; 3 4//类内重载 5class string_A 6{ 7 public: 8 void operator... 阅读全文

posted @ 2009-01-14 22:54 cutepig 阅读(2592) 评论(0) 推荐(1) 编辑

C++笔记(2)public,private,protected关键字

摘要: 1:private, public, protected 成员函数private:只能由1.该类中的函数、2.其友元函数访问。不能被任何其他访问,该类的对象也不能访问。protected:可以被1.该类中的函数、2.子类的函数、以及3.其友元函数访问。但不能被该类的对象访问。public:可以被1.该类中的函数、2.子类的函数、3.其友元函数访问,也可以由4.该类的对象访问。注:友元函数包括3种:... 阅读全文

posted @ 2009-01-14 22:41 cutepig 阅读(2688) 评论(1) 推荐(1) 编辑

C++笔记(1)explicit构造函数

摘要: Explicit Constructors(显式构造函数)收藏 按照默认规定,只有一个参数的构造函数也定义了一个隐式转换,将该构造函数对应数据类型的数据转换为该类对象,如下面所示: class String { String ( const char* p ); // 用C风格的字符串p作为初始化值 //… } String s1 = “hello”; //OK 隐式转换,等价于String ... 阅读全文

posted @ 2009-01-14 22:24 cutepig 阅读(107662) 评论(12) 推荐(14) 编辑

2009年1月13日

浅尝boost之format

摘要: 浅尝boost之format http://www.cnblogs.com/wuerping/archive/2005/04/21/142308.html概述 std::string是个很不错的东东,但实际使用时基本在每个程序里都会遇到不愉快的事情:格式化字符串。我 甚至由于这个原因在代码里引入平台有关的MFC,ATL等本来不需要在项目中使用的一些重量级的框架,就为了能... 阅读全文

posted @ 2009-01-13 21:13 cutepig 阅读(889) 评论(0) 推荐(0) 编辑

2008年12月30日

RTSP协议

摘要: http://www.w3.org/2008/WebVideo/Fragments/wiki/RTSP_implementation 阅读全文

posted @ 2008-12-30 21:55 cutepig 阅读(270) 评论(0) 推荐(0) 编辑

2008年12月28日

扩频通信教程

摘要: 扩频通信 ... 阅读全文

posted @ 2008-12-28 20:55 cutepig 阅读(578) 评论(0) 推荐(0) 编辑

2008年12月25日

javascript画矩形

摘要: 用鼠标开始画吧 阅读全文

posted @ 2008-12-25 14:01 cutepig 阅读(1485) 评论(0) 推荐(0) 编辑

2008年11月2日

几段shellcode

摘要: 1.显示一个msgbox:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->char failwest_popup[]="\xFC\x68\x6A\x0A\x38\x1E\x68\x63\x89\xD1\x4F\x68\x32\x74\x91\x0C""... 阅读全文

posted @ 2008-11-02 18:29 cutepig 阅读(595) 评论(0) 推荐(0) 编辑

2.5 攻击示例:对Microsoft C++编译器的攻击 ZZ

摘要: http://book.chinaunix.net/showart.php?id=4182.5 攻击示例:对Microsoft C++编译器的攻击 实际中的例子有助于辨识清楚前面所定义的术语。在这一节里将分析曾多次提到的缓冲区溢出攻击模式。当然,根据系统上 下文环境的不同,缓冲区溢出的危险性也各不相同。偶尔的缓冲区溢出只是技术层次上的一个bug(但确实是个问题),并不会导致不可接受的危... 阅读全文

posted @ 2008-11-02 10:10 cutepig 阅读(753) 评论(0) 推荐(0) 编辑

sprintf缓冲区溢出

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->这段代码的shellcode是抄的别人的,仅仅显示出一个msgbox提醒一下。编译器为 vc 2005操作系统为 xp sp3如果你的编译器或者操作系统不完全相同,有可能溢出失败大概原理为: 执行spr... 阅读全文

posted @ 2008-11-02 10:02 cutepig 阅读(2519) 评论(0) 推荐(0) 编辑

2008年10月26日

directUI

摘要: Building a Dynamic UI using a CWnd Free Pool, 用 XML 来描述界面,动态产生界面。http://hi.baidu.com/%D3%E5%CE%E4%CC%D5/blog/item/5c0beacf69e8d639f8dc610e.htmlhttp://www.sineysoft.com/blog/post/directUI.html 阅读全文

posted @ 2008-10-26 21:40 cutepig 阅读(719) 评论(0) 推荐(0) 编辑

2008年10月16日

goto for Python

摘要: http://entrian.com/goto/看了看源代码,原来是通过给所有函数修改trace,然后在异常时就会执行设置的函数# Install the trace function, including all preceding frames.sys.settrace(_trace)frame = sys._getframe().f_backwhile frame: frame.f_t... 阅读全文

posted @ 2008-10-16 00:07 cutepig 阅读(5499) 评论(0) 推荐(0) 编辑

2008年10月13日

使用虚函数,减少累赘的if/else/switch

摘要: x 阅读全文

posted @ 2008-10-13 20:19 cutepig 阅读(646) 评论(0) 推荐(0) 编辑

2008年9月20日

PyLucene测试成功

摘要: 实现的功能:1.将硬盘上所有的txt,doc文件建立索引2.根据用户的输入生成如下所示的搜索结果 阅读全文

posted @ 2008-09-20 23:24 cutepig 阅读(296) 评论(1) 推荐(0) 编辑

上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 48 下一页

导航