原创技术文章
文章平均质量分 58
aXu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
获取PE文件结构的两种方法
我试验过了,可以运行。实际上只要掌握了PE文件结构,这两种方法还是不难理解的。呵呵。。。。这两段代码是一本书上的(windows捆绑编程),我给搬过来,呵呵。。。BOOL ReadOEPByFile(LPCSTR szFileName){ HANDLE hFile; hFile = ::CreateFile(szFileName, GEN原创 2009-02-25 01:48:00 · 823 阅读 · 0 评论 -
给定Tree的根节点,按层次遍历树
void TravelTree(HL_IRDTreeNode* pNewRoot){ std::queue nodeQueue; if (pNewRoot == NULL) { return; } nodeQueue.push(pNewRoot); while (!nodeQueue.empty()) { HL_IRDTreeNode* pNode =原创 2009-08-27 16:07:00 · 1187 阅读 · 0 评论 -
UNICODE环境下CString转char*
NND,弄了2个小时,总算是搞清楚怎么转了。:( 看来我的水平实在太烂了。CString strTest = L"测试";char szTest[5] = {0};WideCharToMultiByte(CP_ACP, WC_COMPOSITECHECK, strTest,原创 2009-08-27 17:46:00 · 829 阅读 · 0 评论 -
还算不错的链表。:)
#ifndef SHLIST_H#define SHLIST_Hstruct SHListNode{ char* pstrText; // 保存传入的部分文档 int nLen ; // Node长度 SHListNode* pNext; // 下一块传入的文档 SHListNode() { pNext = NULL; nLe原创 2009-10-28 11:01:00 · 547 阅读 · 0 评论 -
读配置文件的代码
#include "stdafx.h"#include "SHLConfig.h"#include #include #include const int MAX_PATH_LEN = 256;const char* MAX_SEG_UNIT = "maxsegunit";const char* USER_DICT = "userdict";const c原创 2009-10-29 15:34:00 · 525 阅读 · 0 评论 -
系统服务
管理系统服务的几个基本步骤: SC_HANDLE hSCM = ::OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); if (hSCM == NULL) { } else { SC_HANDLE hService = ::OpenService(hSCM, szServiceNa原创 2010-02-02 17:01:00 · 492 阅读 · 0 评论 -
wchar_t和char之间的转换
wchar_t* CtestSettingDlg::CharToWchar(const char* pchSrc){ wchar_t* pwchDest = NULL; if (pchSrc != NULL) { int npchLen = strlen(pchSrc); int nwLen = MultiByteToWideChar(CP_ACP, 0, pchSrc原创 2010-04-15 10:06:00 · 902 阅读 · 0 评论
分享