我们首先启动一台机器,启动的时候attach一个volume 创建一个空的cinder volume root:~# cinder create --display-name emptyvolume11g 11+---------------------+----------------------...
分类:
其他好文 时间:
2014-07-07 10:33:51
阅读次数:
211
CWnd::Attach
Attaches a Windows window to a CWnd object.
BOOL Attach(
HWND hWndNew
);
Parameters
hWndNew
Specifies a handle to a Windows window.
一个概念:C++对象和Windows对象的区别(来自MSDN)
The win...
分类:
其他好文 时间:
2014-06-28 08:04:10
阅读次数:
269
第一种方法:直接打开了class文件后,在文件中点attach source 按钮,然后添加,如下图:但有时候,class文件中没出现 Attach Source...按钮(不知道为什么)第二种方法:右点击项目-Properties-Java Build Path-Libraries-展开要添加源码...
分类:
系统相关 时间:
2014-06-26 18:57:13
阅读次数:
276
看struts2源码已有一段时日,从今天开始,就做一个总结吧。
首先,先看看怎么调试struts2源码吧,主要是以下步骤:
使用Myeclipse创建一个web工程
导入struts2需要的jar包
如图:
让jar包关联源文件
在上图中的jar包右键,选择properties->java source attach,如果关联成功,双击jar包下的某个class文件就会...
分类:
其他好文 时间:
2014-06-25 07:31:05
阅读次数:
245
从前文《 源码解析:dialog, popupwindow, 和activity 的第一个view是怎么来的?》中知道了activity第一个view或者说根view或者说mDecorView 其实就是一个FrameLayout,以及是在系统handleResume的时候加入到系统windowManager中的,并由framework中的ViewRootImpl
接管,通过ViewRootIm...
分类:
其他好文 时间:
2014-06-17 22:07:59
阅读次数:
277
方法1.go to the Product menu and find the Edit
Scheme menu there.While in Edit Scheme window, select the "Run" option on the
left hand side of the scree...
分类:
其他好文 时间:
2014-06-12 21:03:42
阅读次数:
317
function Event(sender) { this._sender = sender;
this._listeners = [];}Event.prototype = { attach : function (listener) {
this._listene...
分类:
Web程序 时间:
2014-06-12 16:38:51
阅读次数:
272
今天看了看观察者模式,有点小小的体会,从以下3点说明之
:1.看一下经典的观察者模式图2.讲个故事,说一下逻辑有一个男人(Subject),他通过一定的手段(attach)拥有了3个女人(Observer):老婆(concreteObserver1),情人(concreteObserver2),小3...
分类:
其他好文 时间:
2014-06-08 21:10:38
阅读次数:
293
附加数据库 Attach database filename as
database_name;主数据库默认为 "Main", 在使用Attach命令时, 不能将database_name指定为main; 当附加多个数据库,
并且存在相同名称的表时, 如果在命令时末指定数据库名(database_n...
分类:
数据库 时间:
2014-06-08 01:34:32
阅读次数:
274