摘要:
原文链接http://tsing01.blog.163.com/blog/static/205957283201302544547421/在向vs2005工程中添加使用cximage库时,碰到下面的链接错误:error LNK2001: 无法解析的外部符号 "public: bool __thisc... 阅读全文
摘要:
CFile::Remove删除文件如果文件不存在会报错,中断函数执行直接返回,DeleteFile就不会出现这种问题。 阅读全文
摘要:
去除CDockablePane的隐藏、关闭、拖动、浮动风格在头文件里重载virtual BOOL CanBeClosed() const { return FALSE; }virtual BOOL CanAutoHide() const { return FALSE; }virtual BOOL F... 阅读全文
摘要:
http://blog.csdn.net/hczhiyue/article/details/6264115BitBlt和StretchBlt是CDC类位图操作函数,用于DDB的位图操作。BOOL BitBlt(HDC hdcDest,int nXDest,int nYDest,int nWidth,... 阅读全文
摘要:
YUYV是YUV的一种一个像素占用两个字节,存放顺序为[Y0 U0][Y1 V0][Y2 U1][Y3 V1]..... Y表示亮度,UV是色差信号奇数(在前)和偶数(在后)像素共用色差信号UV 下面是用查表法转换YUYV(YUV422)为RGB32位的代码int y_table[256];//查... 阅读全文
摘要:
static GLint vertices[]={25,25, 100,325,175,25,175,325,250,25,325,325};static GLfloat colors[]={........};glEnableCli... 阅读全文
只有注册用户登录后才能阅读该文。 阅读全文
摘要:
ar << pImage里也是调用Serialize(ar);但ar<<pImage里会判断pImage是否为NULL,如果为NULL不会报错,如果pImage为NULL那直接调用Serialize(ar)肯定会出错 阅读全文
摘要:
void myCreateDirectory(CString source){ CString path; int pre_pos=source.Find(_T("\\")); int pos=0; path=source.Mid(pre_pos+1); CString create; pos=path.Find(_T("\\")); while(pos!=-1) { path=path.Mid(pos+1); pre_pos+=pos+1; create=source.Left(pre_po... 阅读全文