
C++
fansmore
这个作者很懒,什么都没留下…
展开
-
获取计算机硬件信息的类
//头文件 #pragma once#include #include //#include #include //#include #include #include #include //#include #include using namespace std;#pragma comment(lib, "Iphlpapi.lib")#define FILE_DEVICE_SCSI原创 2009-04-26 10:38:00 · 1841 阅读 · 0 评论 -
MFC Feature Pack CMFCPropertyGridCtrl控件的应用
CMFCPropertyGridCtrl m_wndPropList;CMFCPropertyGridProperty* pGroup11; CMFCPropertyGridProperty* pGroup12; CMFCPropertyGridProperty* pGroup21; //CMFCPropertyGridProperty pGroup22; CMFCPropertyGridP原创 2009-04-26 10:40:00 · 5041 阅读 · 4 评论 -
小技巧“对于VisualStudio环境中空格变圆点或箭头的解决方法 ”
在菜单中依次选择“编辑”--“高级”--“查看空白”。原创 2009-04-26 11:31:00 · 1756 阅读 · 0 评论 -
宽窄字符相互转换
std::string WCharToChar(UINT PageCode, std::wstring strWChar){ std::string strChar=""; strChar.clear(); int ret = 0; int nSize = (int)strWChar.length()*2; static char pszDest[1024*10]; if( pszDest )原创 2009-04-26 10:34:00 · 733 阅读 · 0 评论 -
cdecl, stdcall, pascal,fastcall 调用约定区别
调用约定 压参数入栈顺序 把参数弹出栈者 函数修饰名 (Calling convention) --------------------------------------------------------------------------------------------------------__cdecl 右->左 被调用者转载 2009-04-26 11:24:00 · 906 阅读 · 1 评论 -
在C++中定义VMprotect宏
//定义虚拟机保护的宏#define VMProtectBegin / __asm _emit 0xEB / __asm _emit 0x10 / __asm _emit 0x56 / __asm _emit 0x4D / __asm _emit 0x50 / __asm _emit 0x72 / __asm _emit 0x6F / __asm _emit 0x74 / __asm _em原创 2009-04-26 10:33:00 · 1932 阅读 · 0 评论 -
自己封装Crypto++的RSA类
//头文件#pragma once//#include "stdafx.h"#include #include //#include #include //#include #include #include "rsa.h"#include "hex.h"#include "files.h"#include "rng.h"#include "default.h"#include "randp原创 2009-04-26 10:35:00 · 1895 阅读 · 1 评论