一、使用Windows API创建一个窗口二、创建一个Swap Chain(交换链)
这一步需要用到一个名为DXGI_SWAP_CHAIN_DESC的结构体,其详细定义如下:typedef struct DXGI_SWAP_CHAIN_DESC
{ DXGI_MODE_DESC Buffer...
分类:
其他好文 时间:
2014-07-22 23:13:54
阅读次数:
520
SET SHOWPLAN_ALL { ON | OFF }It will not
execute the TSQL statements.It cannot be specified inside a stored
procedure,must be the only statements in a...
分类:
数据库 时间:
2014-07-22 23:11:32
阅读次数:
646
java.lang.IllegalStateException: Target host
must not be null, or set in parameters.
原因:连接地址不完整,必须加上"http://"。========================================...
分类:
移动开发 时间:
2014-07-22 23:08:12
阅读次数:
415
原题地址:http://oj.leetcode.com/problems/reorder-list/题意:Given
a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You
must do this...
分类:
编程语言 时间:
2014-05-01 15:37:03
阅读次数:
441
Problem 1:Given a set of distinct integers, S,
return all possible subsets.Note:Elements in a subset must be in non-descending
order.The solution set ...
分类:
其他好文 时间:
2014-05-01 09:43:43
阅读次数:
414
When multiple threads share mutable data, each
thread that reads or writes the data must perform synchronization. Without
synchronization, there is no...
分类:
数据库 时间:
2014-05-01 09:14:25
阅读次数:
506
网页的缓存由HTTP消息头中的"Cache-Control"
来控制的,常见的取值有private、no-cache、max-age、must-revalidate等,默认为private。其作用根据不同的重新浏览方式分为以下几种情况:(1)
打开新窗口如果指定cache-control的值为pri...
分类:
其他好文 时间:
2014-05-01 06:51:33
阅读次数:
273
As you must have experienced, instead of
landing immediately, an aircraft sometimes waits in a holding loop close to the
runway. This holding mechanis...
分类:
其他好文 时间:
2014-05-01 03:51:48
阅读次数:
477
zf.py文件"""desc:读取配置文件config.ini压缩sourcepath路径到targetpath
并可以排除不需要压缩的文件excludefiletime:2014/4/30 12:03:42author:ggh"""import zipfile, os,
configpar...
分类:
编程语言 时间:
2014-05-01 00:59:26
阅读次数:
428
一开始由这段代码引发的纠结
get_base(current->ldt[1])
下面是各个相关的代码,摘自不同的header files。。。
current是指向当前task的指针
struct desc_struct ldt[3];
struct desc_struct {
unsigned long a,b;
} ;
#define _get_...
分类:
系统相关 时间:
2014-04-29 13:42:20
阅读次数:
546