2008年7月6日

一个图片加载类

摘要: #include class CImageLoader { protected: /**//// Full path were the images and icons are stored CString m_sPath; /**//// List with all the Bmp found in m_sPath std::vector m_BmpN... 阅读全文

posted @ 2008-07-06 22:17 Phinecos(洞庭散人) 阅读(628) 评论(0) 推荐(0) 编辑

刷新IE收藏夹图标

摘要: 原文链接:FavIconizer 遍历文件夹工具类: class CDirFileList : public CStringArray { public: CDirFileList(); /**//** * fills the array with all files found in the given directory. * \param ... 阅读全文

posted @ 2008-07-06 19:55 Phinecos(洞庭散人) 阅读(1626) 评论(0) 推荐(0) 编辑

IShellLink接口的MFC封装类

摘要: //Class which contains all the parameters related to shortcut class CShellLinkInfo : public CObject { public: //Constructors / Destructors CShellLinkInfo(); CShellLinkInfo(const CShellLinkInfo& sl... 阅读全文

posted @ 2008-07-06 19:46 Phinecos(洞庭散人) 阅读(2460) 评论(0) 推荐(0) 编辑

一些实用的注册表封装类

摘要: 头文件"registry.h" #include #include #include /**//** * \ingroup CommonClasses * Base class for the registry classes. */ class CRegBase { public: //methods /**//** * Removes the whole... 阅读全文

posted @ 2008-07-06 19:31 Phinecos(洞庭散人) 阅读(816) 评论(0) 推荐(0) 编辑

一个线程封装类

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->class CThread { public: /**//** * Default Constructor */ CThrea... 阅读全文

posted @ 2008-07-06 18:52 Phinecos(洞庭散人) 阅读(2554) 评论(0) 推荐(0) 编辑

字符串逻辑比较函数---StrCmpLogicalW的模拟实现

摘要: 我们最熟悉的字符串比较函数莫过于strcmp了,但这个函数仅仅是根据字符进行比较,没有考虑字符串的逻辑意义,为此微软为我们提供了一个StrCmpLogicalW函数,它比较数字时不将其视为文本而是视为数值。 我们可以从下列这个简单的字符串数组排序的结果看出这两个函数的区别: 使用StrCmpLogicalW进行比较的结果: 2string 3string 20string st2ring... 阅读全文

posted @ 2008-07-06 16:28 Phinecos(洞庭散人) 阅读(2494) 评论(0) 推荐(0) 编辑

进程间通信之邮槽

摘要: 简介 有时候我们需要一个程序与另一个程序之间进行通信。你可能在多台机器上有多个服务器运行,而在一个中央位置对一个或多个服务器进行远程监控。Windows平台为我们提供了一系列通信方式,从Socket到命名管道,DDE,DCOM,邮槽等。本文中作者将探讨邮槽这一通信机制,假定读者熟悉CreateFile(),ReadFile(),WriteFile()等API函数,此外还假定读者熟悉重叠I/O的... 阅读全文

posted @ 2008-07-06 14:41 Phinecos(洞庭散人) 阅读(1162) 评论(0) 推荐(0) 编辑

导航