//Base_Event.h#pragma once#include enum Event_Type //事件类型{ NET_REFRESH, //网络环境改变事件 MSG_REFRESH, //消息改变事件 UI_REFRESH, //UI界面更新事件 MAX_EVENT... Read More
posted @ 2014-11-02 13:04 忆寒 Views(949) Comments(0) Diggs(0) Edit
最近遇到了这个问题,在注册com组件类别时总是失败,提示成功,但是通过oleviewer却看不到。 注册脚本: HKCR{ NoRemove 'Component Categories' { NoRemove {7BAAA0EE-A752-4C5A-905C-80404BB9F06F} { val '409' = s 'vector-cpp' ... Read More
posted @ 2014-08-25 16:56 忆寒 Views(2936) Comments(0) Diggs(0) Edit
分享至http://msdn.microsoft.com/en-us/library/k32htktc.aspx Registry Scripting Examples Visual Studio 2013 Other Versions This topic has not yet been rated - Rate this topic The scripting exam... Read More
posted @ 2014-08-21 16:12 忆寒 Views(424) Comments(0) Diggs(0) Edit
遇到了这一段代码: class CBase{public: virtual void virfun() //虚函数 { coutvirfun();//this指针永远指向基类,无论其是否有派生类 }};class CDerive:public CBase{ virtual void virfun() { cout&obj;... Read More
posted @ 2014-08-21 10:21 忆寒 Views(376) Comments(0) Diggs(0) Edit
转载至:http://blog.csdn.net/chgaowei/article/details/6658260什么是数据驱动编程前言:最近在学习《Unix编程艺术》。以前粗略的翻过,以为是介绍unix工具的。现在认真的看了下,原来是介绍设计原则的。它的核心就是第一章介绍的unix的哲学以及17个... Read More
posted @ 2014-08-14 15:11 忆寒 Views(397) Comments(0) Diggs(0) Edit
http://blog.jobbole.com/74393/ Read More
posted @ 2014-08-12 16:49 忆寒 Views(154) Comments(0) Diggs(0) Edit
文章最后本人做了一幅图,一看就明白了,这个问题网上讲的不少,但是都没有把问题说透。 一、概念 对齐跟数据在内存中的位置有关。如果一个变量的内存地址正好位于它长度的整数倍,他就被称做自然对齐。比如在32位cpu下,假设一个整型变量的地址为0x00000004,那它就是自然对齐的。 二、... Read More
posted @ 2014-08-11 15:14 忆寒 Views(225) Comments(0) Diggs(0) Edit
下面这样一个程序:(以下程序都是在VS2010下实现) 1: class Base 2: { 3: public: 4: virtual void func() 5: { 6: coutfunc(); 23: cin.get(); 24: }注意第3行和第12行,派生类访问权限为private,但程序输出的结果是:说明指针pb还是通过多态实现了访问派生类虚函数func。... Read More
posted @ 2014-08-08 12:57 忆寒 Views(1433) Comments(0) Diggs(1) Edit
1.设计接口类: public interface IBase{ void Somefun();}2.设计扩展插件类: class PluginCls:IBase{ public void Somefun() { Console.WriteLine("hello ,i am derived class"); }}3.主程序设计: ... Read More
posted @ 2014-08-05 11:22 忆寒 Views(821) Comments(2) Diggs(0) Edit
如题,在windows上新建控制台应用程序的时候,怎么才能将console 黑窗口隐藏起来。 第一种方法: ::SetConsoleTitle(_T("test_exe"));HWND hwnd=::FindWindow(_T(""),_T("test_exe"));::ShowWindow(hwnd,SW_HIDE);不行,试了,不清楚为什么失败….窗口句柄抓到了,就是不明... Read More
posted @ 2014-07-31 17:21 忆寒 Views(1517) Comments(0) Diggs(0) Edit