会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奥雷连诺
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
19
下一页
2013年12月3日
GDI+ 对象释放崩溃的问题
摘要: 确保在Gdiplus::GdiplusShutdown(m_gdiplusToken); 之前delete 掉GDI+的对象,例如:delete *pBitmap;如果先Gdiplus::GdiplusShutdown(m_gdiplusToken);再delete *pBitmap; 程序会崩溃。...
阅读全文
posted @ 2013-12-03 15:22 奥雷连诺
阅读(850)
评论(0)
推荐(0)
2013年12月2日
WTL error C3861: 'DDX_Control': identifier not found
摘要: error C3861: 'DDX_Control': identifier not found继承类加上 public CWinDataExchange, public CCustomDraw
阅读全文
posted @ 2013-12-02 14:20 奥雷连诺
阅读(241)
评论(0)
推荐(0)
win7程序关闭后弹出 程序兼容性助手 这个程序可能安装不正确 如果此程序没有正确安装,处理方式
摘要: 用WTL编写的程序,编译成release后,在win7上关闭后,弹出这个对话框处理方法:将这个xml文件命名成 xxx.exe.manifest,保存到指定目录下 右键工程->properties-->Configuration Properties-->Manifest Tool-->Input ...
阅读全文
posted @ 2013-12-02 14:15 奥雷连诺
阅读(641)
评论(0)
推荐(0)
VS的工程宏,比如$(SolutionDir) 的含义及查找
摘要: Configuration->General->Output Directory->单击编辑框点下拉箭头-> 图1图2
阅读全文
posted @ 2013-12-02 13:44 奥雷连诺
阅读(1296)
评论(0)
推荐(0)
2013年11月4日
vector中resize和reserve的区别,代码验证
摘要: #include using namespace std;int main(){ vector resizeVect; vector reserveVect; resizeVect.resize(50, 2); //立即分配50个int,每个值为2,默认值为...
阅读全文
posted @ 2013-11-04 11:48 奥雷连诺
阅读(224)
评论(0)
推荐(0)
2013年11月1日
使用wininet向FTP服务器发送文件
摘要: .h#pragma once#include #include #include #include using namespace std;class WininetFtpClient{public: WininetFtpClient(void); ~WininetFtpClient(v...
阅读全文
posted @ 2013-11-01 14:17 奥雷连诺
阅读(326)
评论(0)
推荐(0)
2013年10月16日
GBK转utf-8,宽字符转窄字符
摘要: //GBK转UTF8string CAppString::GBKToUTF8(const string & strGBK) { string strOutUTF8 = ""; WCHAR * str1; int n = MultiByteToWideChar(CP_ACP, 0,...
阅读全文
posted @ 2013-10-16 16:12 奥雷连诺
阅读(362)
评论(0)
推荐(0)
Windows上右键git菜单出来的原因
摘要: Windows上右键git菜单出来的原因Git下载地址https://code.google.com/p/msysgit/downloads/list?q=full+installer+official+gitGit右键菜单,见图(1-1)图(1-1)使用1.7.8版本好像不能出现右键菜单,试了好几...
阅读全文
posted @ 2013-10-16 11:22 奥雷连诺
阅读(673)
评论(0)
推荐(0)
2013年10月9日
C语言格式化输出,空位补0,空位补空格
摘要: char strTtimeDump[512] = ""; int a = 5; sprintf(strTtimeDump, "%.4d", a); //strTtimeDump输出0005 数字前补3个0 sprintf(strTtimeDump, "%4d", a...
阅读全文
posted @ 2013-10-09 11:27 奥雷连诺
阅读(3498)
评论(0)
推荐(0)
2013年10月8日
选择法排序,冒泡排序,递归排序
摘要: #include //选择排序void SelectSort(int *p, const int length){ if (p == NULL) { return; } for (int i = 0; i p[j]) { ...
阅读全文
posted @ 2013-10-08 14:11 奥雷连诺
阅读(296)
评论(0)
推荐(0)
2013年6月25日
C++ 字符串分割,分割到vector中
摘要: #include #include using std::string;using std::vector;int splitStringToVect(const string & srcStr, vector & destVect, const string & strFlag);int main...
阅读全文
posted @ 2013-06-25 17:52 奥雷连诺
阅读(2609)
评论(0)
推荐(0)
2013年5月29日
MFC CToolTipCtrl 总是显示
摘要: .h CToolTipCtrl *m_pToolTip;.cpp if(!m_pToolTip) { m_pToolTip = new CToolTipCtrl(); m_pToolTip->Create(this, TTS_ALWAYSTIP); //...
阅读全文
posted @ 2013-05-29 14:07 奥雷连诺
阅读(372)
评论(0)
推荐(0)
2013年4月28日
GDI+ 为了阴影和透明,使用双层窗口遇到的一些问题
摘要: 在wnidows C++ 客户端开发中,使用GDI+和png透明或者异形图片,结合UpdateLayeredWindow 双层窗口,可以实现透明,阴影,异形的效果。 其原理便是背景窗口使用UpdateLayeredWindow,刷新png图片,前景窗口作为实际窗口放一些空间,但前景窗口实际上是透明的...
阅读全文
posted @ 2013-04-28 21:11 奥雷连诺
阅读(1318)
评论(0)
推荐(0)
2013年4月27日
GDI+ 双缓冲
摘要: BOOL CXXXDlg::OnEraseBkgnd(CDC *pDC){ CRect rect; this->GetClientRect(rect); if(!m_pBkImage) ...
阅读全文
posted @ 2013-04-27 18:28 奥雷连诺
阅读(187)
评论(0)
推荐(0)
2013年4月26日
VC 创建托盘,托盘tooltip。右键托盘菜单,点击别的地方会隐藏掉的问题。
摘要: 托盘上的菜单右键弹出后,然后再别的地方,比如桌面,菜单无法隐藏掉,一直在托盘上,除非操作下菜单才能隐藏掉,只需要加上一句话::SetForegroundWindow(m_nid.hWnd); 就可以解决这个问题。下面是托盘创建class CXXXDlg{private:NOTIFYICONDATA ...
阅读全文
posted @ 2013-04-26 16:49 奥雷连诺
阅读(679)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
19
下一页
公告