代码改变世界

随笔档案-2011年07月

Effective C++ 学习笔记

2011-07-27 21:20 by Clingingboy, 653 阅读, 收藏, 编辑
摘要: 条款13:以对象管理资源 目标:为确保资源被释放 1.获得资源后立即放进管理对象 2.管理对象运用析构函数确保资源被释放 做法: 之前 void f(){ Investment *pInv = cr... 阅读全文

com 名字对象(2)创建名字对象(IMoniker)

2011-07-26 20:31 by Clingingboy, 2370 阅读, 收藏, 编辑
摘要: 1.文件名字对象 IUnknown* pUnk = NULL;IMoniker* moniker2=NULL;CreateFileMoniker(OLESTR("E:\\test.xlsx"),&m... 阅读全文

com 名字对象(1)IBindCtx

2011-07-26 20:30 by Clingingboy, 960 阅读, 收藏, 编辑
摘要: 一.IBindCtx Provides access to a bind context, which is an object that stores information about a pa... 阅读全文

ATL-固有属性(CStockPropImpl)

2011-07-20 22:53 by Clingingboy, 1426 阅读, 收藏, 编辑
摘要: 继承该类,派生类就可以支持一些固有属性 一实现方法 1.继承CStockPropImpl class ATL_NO_VTABLE CBullsEye : public CStockPropImpl<... 阅读全文

ActiveX控件实现相关资料

2011-07-19 23:00 by Clingingboy, 607 阅读, 收藏, 编辑
摘要: 一.IObjectSafety 浏览器安全等级 http://blog.csdn.net/sstower/article/details/6586687 二.IProvideClassInfo2 S... 阅读全文

Visual C++ 2011-07-18

2011-07-19 19:40 by Clingingboy, 659 阅读, 收藏, 编辑
摘要: 一.Keyboard Accelerators控件快捷键 参考:http://blog.csdn.net/Welson80/article/details/5808277 http://www.cn... 阅读全文

com-复合文档存储及持久化

2011-07-19 19:39 by Clingingboy, 1739 阅读, 收藏, 编辑
摘要: 参考:http://www.cnblogs.com/del/archive/2008/07/27/1252343.html 一.复合文档相关函数 1.StgCreateDocfile The Stg... 阅读全文

ATL 线程池的使用

2011-07-16 20:45 by Clingingboy, 2363 阅读, 收藏, 编辑
摘要: 一.自定义一个Worker class CMyWorker { public: typedef MyRequestType RequestType; BOOL Initialize(void* pv... 阅读全文

com 集合和枚举器

2011-07-16 20:45 by Clingingboy, 472 阅读, 收藏, 编辑
摘要: 对于这门技术我真的是边学边忘,复杂的一塌糊涂. 一.http://www.cnblogs.com/Clingingboy/archive/2011/06/13/2080100.html 一般都有一个... 阅读全文

ATL 连接点例子(atlduck)

2011-07-16 20:44 by Clingingboy, 2256 阅读, 收藏, 编辑
摘要: 一.客户端获取连接点IConnectionPoint LRESULT CMyDlg::OnCreateDoDuck(WORD wNotifyCode, WORD wID, HWND hwndCtl,... 阅读全文

ATL Windows窗体支持(1)

2011-07-14 21:33 by Clingingboy, 2748 阅读, 收藏, 编辑
摘要: 一.原始Win32窗体 #include "stdafx.h" // Includes windows.h and tchar.hLRESULT CALLBACK WndProc(HWND, UI... 阅读全文

socket相关函数(1)

2011-07-06 19:47 by Clingingboy, 761 阅读, 收藏, 编辑
摘要: 一.关于fork函数的讨论 http://www.chinaunix.net/jh/23/311067.html 二.关于select和pselect http://blog.163.com/zha... 阅读全文

socket 事件模型

2011-07-06 19:46 by Clingingboy, 2629 阅读, 收藏, 编辑
摘要: 相关函数 WSACreateEvent WSAEventSelect WSAWaitForMultipleEvents WSAWaitForMultipleEvents WSAEnumNetwork... 阅读全文

windows 匿名管道

2011-07-04 22:41 by Clingingboy, 1932 阅读, 收藏, 编辑
摘要: 匿名管道 The CreatePipe function creates an anonymous pipe and returns two handles: a read handle to th... 阅读全文

Socket的select模型

2011-07-04 22:40 by Clingingboy, 15119 阅读, 收藏, 编辑
摘要: 注意点:发送的时候字节数不要发送…我就悲剧的测试数据发错了,以为哪出问题了 思路: 初始化一个socket 建立一个socket列表用于管理socket 将初步连接的socket放入列表中 用sel... 阅读全文

Win32 网络编程基本函数(2)

2011-07-04 22:40 by Clingingboy, 3035 阅读, 收藏, 编辑
摘要: 一.获取主机网络服务数据 如ftp,http,smtp等信息 getservbyport && getservbyname main(){ struct servent *s; s=getservb... 阅读全文
点击右上角即可分享
微信分享提示