• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
张纯睿
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 133 下一页
2011年6月27日
下面的代码演示了使用GetDIBits直接读取位图数据。
摘要: 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/iamshuke/archive/2010/07/20/5749948.aspx下面的代码演示了使用GetDIBits直接读取位图数据。下面的代码演示了使用GetDIBits直接读取位图数据。view plaincopy to clipboardprint?include <math.h> void CDibtestDlg::OnOK() { // TODO: Add extra validation here HDC hDesktopDC = ::GetDC(NULL); HDC hTmpDC = 阅读全文
posted @ 2011-06-27 17:11 张纯睿 阅读(431) 评论(0) 推荐(0)
DirectX 截屏,抓图,截图
摘要: http://alaskaxinx.blog.163.com/blog/static/976173772008527105142242/http://www.pin5i.com/showtopic-26129.htmlhttp://blog.sina.com.cn/s/blog_6e04a8350100ng5u.htmlvoid CComputerRobotTestDlg::OnBnClickedButton3(){HWND hWnd = (HWND)0x000D013A;//init 3d http://alaskaxinx.blog.163.com/blog/static/97617377 阅读全文
posted @ 2011-06-27 14:50 张纯睿 阅读(1066) 评论(0) 推荐(0)
2011年6月25日
VC HTML IHtmlDocument相关代码
摘要: 1、从IE窗体获得IHTMLDocument2 接口 2、获得 IHTMLDocument2 全部文本内容 阅读全文
posted @ 2011-06-25 15:46 张纯睿 阅读(532) 评论(0) 推荐(0)
2011年6月21日
关于类中的 static vector 变量 - C-C++ - C++ 语言
摘要: http://topic.csdn.net/u/20081021/18/658c5ca3-875a-478b-86c0-b75b35bda2b8.html简单例子:C/C++ code//A.h#include <vector>#include <string>using namespace std;class A{public:static vector <string> v;};C/C++ code//A.cpp#include "A.h"vector <string> A::v;C/C++ code//main.cpp# 阅读全文
posted @ 2011-06-21 19:03 张纯睿 阅读(791) 评论(1) 推荐(0)
list和用vector区别
摘要: list和用vector区别收藏list和用vector区别http://blog.sina.com.cn/s/blog_436fe8b10100dkze.htmlstl提供了三个最基本的容器:vector,list,deque。vector和built-in数组类似,它拥有一段连续的内存空间,并且起始地址不变,因此它能非常好的支持随即存取,即[]操作符,但由于它的内存空间是连续的,所以在中间进行插入和删除会造成内存块的拷贝,另外,当该数组后的内存空间不够时,需要重新申请一块足够大的内存并进行内存的拷贝。这些都大大影响了vector的效率。list就是数据结构中的双向链表(根据sgistl源. 阅读全文
posted @ 2011-06-21 19:02 张纯睿 阅读(155) 评论(0) 推荐(0)
!!! STL的string类如何实现CString的Format功能 这是一个经典问题,记住
摘要: STL的string类如何实现CString的Format功能?+STL中将int转换为string这是一个经典问题,记住#include<sstream>std::CString itos(int arg){ std::ostringstream buffer; buffer << arg; // send the int to the ostringstream return buffer.str(); // capture the CString} 阅读全文
posted @ 2011-06-21 19:01 张纯睿 阅读(171) 评论(0) 推荐(0)
error LNK2001: 无法解析的外部符号 "public: static class stdext::hash_map
摘要: inline size_t CString_hash_value( const CString& str) /*const*/{ size_t value = _HASH_SEED; size_t size = str.GetLength(); if (size > 0) {size_t temp = (size / 16) + 1;size -= temp;for (size_t idx = 0; idx <= size; idx += temp) { value += (size_t)str[(int)idx];} } return(value);}class CStr 阅读全文
posted @ 2011-06-21 19:00 张纯睿 阅读(1957) 评论(0) 推荐(0)
STL源码剖析
摘要: http://wenku.baidu.com/view/167c4293daef5ef7ba0d3c8a.html 阅读全文
posted @ 2011-06-21 19:00 张纯睿 阅读(98) 评论(0) 推荐(0)
STL hash_map使用
摘要: STL hash_map使用收藏http://blog.csdn.net/sdhongjun/archive/2009/09/03/4517325.aspx今天在使用STL中的hash_map模板遇到使用PTCHAR作为Key时无法对字符串进行正确比较的问题,在网上查找相应的文章可惜没有找到,但找到了http://www.stlchina.org/twiki/bin/view.pl/Main/STLDetailHashMap和http://www.cppblog.com/guojingjia2006/archive/2008/01/12/41037.aspx两篇文章对解决我的问题帮了大忙,特. 阅读全文
posted @ 2011-06-21 18:58 张纯睿 阅读(392) 评论(0) 推荐(0)
STL的 string 类赋值
摘要: STL的 string 类赋值string s = _T("111"); 阅读全文
posted @ 2011-06-21 18:58 张纯睿 阅读(215) 评论(0) 推荐(0)
上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 133 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3