- 博客(61)
- 资源 (16)
- 收藏
- 关注
原创 再学 GDI+ GDI+ 的颜色常量表
颜色名称 颜色效果 颜色值AliceBlue F0F8FFAntiqueWhite FAEBD7Aqua 00FFFFAquamarine 7FFFD4Azure F0FFFFBeige F5F5DCBisque FFE4C4Black
2012-09-09 23:44:50 1591
原创 Md5算法备忘
md5.h#ifndef MD5_H#define MD5_H#include #include /* Type define */typedef unsigned char byte;typedef unsigned int uint32;using std::string;using std::ifstream;/* MD5 declaration. */c
2012-02-15 14:34:19 490
原创 一岁一枯荣 回首思远行
曾几何时,已很少忆起以前的日子忙碌的脚步,渐行渐远流水般的日子,消磨了太多的豪情我已无力守护昨日的记忆于是遗忘封闭不经意的回首总是遗憾的瞬间又把思绪转向别处翻检旧物无路可寻时如逝水,永不流逝,
2012-02-04 16:53:13 1383
原创 C++ Dll 导出函数头文件
#pragma once#define AFX_EXT_FUNC __declspec(dllimport)#ifdef _USRDLL#define AFX_EXT_FUNC __declspec(dllexport)#endifextern "C" AFX_EXT_FUNC void Test();
2012-02-04 15:05:39 1281
转载 获取进程主窗体句柄
WND g_hwin=NULL;BOOL CALLBACK EnumWindowsProc(HWND hwnd, // handle to parent window LPARAM lParam // application-defined value ){ DWORD PID; BOOL Result
2011-12-31 15:43:04 1050
原创 Zip解压库 zlibwrap
http://zlibwrap.codeplex.com/zlibwrap基于Zlib//------------------------------------------------------------------------------// Description: Compress files to a ZIP file.// Parameter: lpszSour
2011-12-30 18:47:49 1770
原创 宏控制版本号[VC]
define.h#define VER_A 1#define VER_B 0#define VER_C 3#define VER_D 5#define _Stringizing(v) #v#define _VerJoin(a, b, c, d) _Stringizing(a.b.c.d)#define STR_Version TEXT(_VerJoin
2011-12-20 16:12:18 709
原创 获取父进程备忘
#include DWORD GetParentProcessPid() //获取父进程pid{ typedef LONG (WINAPI *pfnNtQueryInformationProcess)(HANDLE,UINT,PVOID,ULONG,PULONG); pfnNtQueryInformationProcess _NtQueryInformationProcess; PR
2011-12-14 18:30:16 699
原创 WTL TrayIcon
http://www.codeproject.com/KB/wtl/wtlntray.aspx#define _WIN32_IE 0x0500#include m_hTrayIcon=(HICON)LoadImage(GetModuleHandle(NULL),(LPTSTR)IDI_MAIN,IMAGE_ICON,16,16,0);
2011-12-12 17:34:01 630
原创 VS2003 添加盾牌图标
type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" /
2011-09-29 17:18:48 744
原创 OpenCv 应用程序正常初始化(0xc0150002)失败 解决方法
<br />环境OpenCv2.0+VS2008,运行程序时出现“应用程序正常初始化(0xc0150002)失败对话框<br />解决方法:<br />下载Microsoft Visual C++ 2008 Redistributable Package (x86),即:vcredist_x86.exe<br />Download Link:http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074
2010-09-03 23:38:00 3213
原创 C++ 构造函数和析构函数的继承
C++中子类必须调用父类的构造函数和析构函数子类带参数的构造函数如果不明确调用父类相应带参数的构造函数,则会调用没有参数的构造函数,这是C++内存分配特性决定的 B(int i):A(i) { printf("B() i"); }
2010-08-27 12:13:00 662
原创 C#访问BitMap几种方法效率比较
bmpGray = new Bitmap("validCode.bmp"); Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); for (int i = 0; i
2010-08-26 09:52:00 3721
转载 初级游戏修改教程
<br />1、首先我们要用FindWindow,知道游戏窗口的句柄,因为我们要通过它来得知游戏的运行后所在进程的ID,下面就是FindWindow的用法:HWND FindWindow(<br />LPCTSTR lpClassName, // pointer to class name<br />LPCTSTR lpWindowName // pointer to window name<br />); <br />2、我们GetWindowThreadProcessId来得到游戏窗口相对应进程的进程I
2010-08-24 09:29:00 708
转载 C++ Socket网络编程大全.txt
<br />1.简单服务器/*#include <winsock2.h>#pragma comment(lib,"WS2_32.lib")*/WSADATA wsd;static UINT port=%%1;UINT Listen(LPVOID pParam){ SOCKET sServer,sClient; char buf[1024]; int retVal; if(WSAStartup(MAKEWORD(2,2),&wsd)!=0) { re
2010-08-24 09:18:00 2585 1
原创 C# BitMap
<br />using System;using System.Data;using System.Drawing;using System.Drawing.Imaging;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices; private void Form1_Load(object sender, EventArgs e) {
2010-08-24 08:12:00 935
原创 VC++ Embed Dialog
<br />private: CDlgTest m_embededDlg;<br /> <br /> m_embededDlg.Create(CDlgTest::IDD,this); HWND hwnd=m_embededDlg.GetSafeHwnd(); long style=::GetWindowLong(hwnd,GWL_STYLE); style|=WS_CHILD; style&=~WS_CAPTION; ::SetWindowLong(hwnd,GWL_STYLE,st
2010-08-20 15:42:00 366
转载 Dll 搜寻次序
<br />应用程序使用LoadLibrary显式链接,那么在这个函数的参数中可以指定DLL文件的完整路径。如果不指定路径,或是进行隐式链接,Windows将遵循下面的搜索顺序来定位DLL: <br />1. EXE文件的目录, <br />2. 进程的当前工作目录, <br />3. Windows系统目录, <br />4. Windows目录, <br />5. 列在Path环境变量中的一系列目录
2010-08-20 10:08:00 443
原创 About #pragma data_seg
<br />#pragma data_seg(".share")int i=0;#pragma data_seg()#pragma comment(linker,"/section:.share,RWS")<br /> <br />Note:<br />1、变量必须初始化,否则会放到.bss节中<br />2、同一位置上的文件才能共享
2010-08-19 10:45:00 506
原创 The difference between "malloc" and "new"
<br /> char* c=new char[64*1024+1]; MEMORY_BASIC_INFORMATION memInfo; VirtualQuery(c,&memInfo,sizeof(memInfo)); char * c2=(char*) malloc(64*1024+1); MEMORY_BASIC_INFORMATION memInfo2; VirtualQuery(c2,&memInfo2,sizeof(memInfo2));<br /> <br /> <b
2010-08-19 10:13:00 386
原创 对于空指针的误解
<br />先说一下进程空间中的NULL指针分区:<br /> <br />范围:0x0000 0000~0x0000 FFFF<br />作用:保护内存非法访问<br />例子:分配内存时,如果由于某种原因分配不成功,则返回空指针0x0000 0000;当用户继续使用比如改写数据时,系统将因为发生访问违规而退出。<br /> <br /> <br />空指针仅指0x0这一个地址,之所以分配这么大空间是因为分配粒度为0x10000,即64K<br /> <br /> 例子:<br /> if (p!=NUL
2010-08-18 15:56:00 511
转载 #pragma once及其他
<br />pragma指令简介<br />在编写程序的时候,我们经常要用到#pragma指令来设定编译器的状态或者是指示编译器完成一些特定的动作。一.message参数<br />message它能够在编译消息输出窗口中输出相应的消息,这对于源代码信息的控制非常重要的,使用方法为:<br />#pragma message(“消息文本”)<br />当编译器遇到这条指令时就在编译输出窗口中将消息文本打印出来。当我们在程序中定义了许多宏来控制源代码版本的时候,我们自己有可能都会忘记有没有正确的设置这些宏,此
2010-08-17 09:43:00 456
转载 IE Cookie Format
<br />name<br />value<br />domain/<br />1600<br />1263382784<br />30020896<br />452781968<br />30020892<br />*<br />Line Summary:<br />1 The Variable Name<br />2 The Value for the Variable<br />3 The Website of the Cookie’s Owner<br />4 Optional Flags<br /
2010-08-16 16:09:00 584
原创 About GetSystemDirectoryA
<br />Win32 API:GetSystemDirectoryA <br />Default:C:/windows/system32<br />Some program use this directory to store its ini file.
2010-08-15 10:53:00 523
原创 Yoda Protector 1.03.3 - manually unpacking
<br />[From] http://www.reversing.be/article.php?story=20060103202621966&query=detten<br /> <br />============================ <br />Yoda Protector 1.03.3 - manually unpacking Yoda Protector 1.03.3 - manually unpacking<br />============================ ===
2010-08-12 14:26:00 1389
原创 FS Register
FS Indicate the address of TIB.Offset Description 0x20 PID0x24 ThreadID0x2c Handle To Tls0x30 address of PEB0x34 the last error codetypedef struct _NT_TIB32 { DWORD ExceptionList; DWORD StackBase; DWORD St
2010-08-11 16:14:00 648
原创 【C# Office】Get PageCount of Word
<br /> object file = fileFullName; object Nothing; Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.ApplicationClass(); Nothing = System.Reflection.Missing.Value;
2010-08-08 17:55:00 1159
转载 【C# Office】 未能找到引用的组件"Microsoft.Office.Core" 解决方案
<br />在项目引用中右击选择添加引用,选择COM里面选择Microft Office 12.0 object Library和Microft Excel 12.0 object Library分别点确定即可!同样如果要引用World选Microft World 12.0 object Library!
2010-08-08 17:53:00 16344 5
原创 Register->Shell Folders
<br />Windows Registry Editor Version 5.00[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders]"AppData"="C://Documents and Settings//administrator//Application Data""Cookies"="C://Documents and Settings//administrato
2010-08-02 10:32:00 655
原创 The problem of “Can’t exit design mode because control ‘ShockwaveFlash1’ cannot be created.”
<br />reference:http://www.boardworks.co.uk/troubleshooting-_334/#error3
2010-08-01 18:17:00 1106
原创 Volatile C++ [keyword] [轉]
<br />讲讲volatile的作用<br /> <br />volatile的本意是“易变的”<br /> <br />由于访问寄存器的速度要快过RAM,所以编译器一般都会作减少存取外部RAM的优化。比如:<br /> <br />static int i=0;<br /> <br />int main(void)<br />{<br />...<br />while (1)<br />{<br />if (i) dosomething();<br />}<br />}<br /> <br />/* I
2010-08-01 18:05:00 625
原创 Volatile C++ [keyword] [轉]
<br />讲讲volatile的作用<br /> <br />volatile的本意是“易变的”<br /> <br />由于访问寄存器的速度要快过RAM,所以编译器一般都会作减少存取外部RAM的优化。比如:<br /> <br />static int i=0;<br /> <br />int main(void)<br />{<br />...<br />while (1)<br />{<br />if (i) dosomething();<br />}<br />}<br /> <br />/* I
2010-07-26 14:39:00 455
原创 Usefull Question about C++
<br />a) int a; // An integer b) int *a; // A pointer to an integer c) int **a; // A pointer to a pointer to an integer d) int a[10]; // An array of 10 integers e) int *a[10]; // An array of 10 pointers to integers f) int (*a)[10]; // A pointer t
2010-07-26 12:15:00 335
原创 One Method of Convert ACCESS DataBase To SQL Server DataBase
<br /> <br /> <br />The Access version is Access2007.At last I solved my problem.
2010-07-22 08:36:00 300
原创 PE File Format Study
<br /> CString fileFullPath=_T("C://notepad.exe"); fstream fs; fs.open(fileFullPath,ios::binary|ios::in); fs.seekg(0x3c); DWORD dwPESignture; fs.seekg(0x3c); fs.read((char*)(&dwPESignture),4); fs.seekg(dwPESignture); char chPESignture
2010-07-19 16:35:00 450
原创 Debug Stu
<br />Just-In-Time(JIT) Debugging<br /> <br />HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/AeDebug
2010-07-16 11:40:00 328
ZLibWrap_LIB_1.0.0.2_VS2008
2011-12-30
ACE_Thread.txt ACE_Thread.txt ACE_Thread.txt ACE_Thread.txt ACE_Thread.txt ACE_Thread.txt
2010-10-26
责任链模式.rar 责任链模式.rar 责任链模式.rar 责任链模式.rar
2010-10-25
Dynamo2.rar Dynamo2.rar Dynamo2.rar
2010-10-20
加密与解密 第三版.part1.rar 加密与解密 第三版.part1.rar
2010-08-25
debug资料.rar debug资料.rar debug资料.rar
2010-08-24
\Image Process资料 \Image Process资料 \Image Process资料
2010-08-24
opencv 资料 opencv.rar opencv.rar opencv.rar
2010-08-24
C#_.Net资料.rar C#_.Net资料.rar C#_.Net资料.rar
2010-08-24
six_x_pack_c.rar six_x_pack_c.rar six_x_pack_c.rar
2010-08-24
Valid pictures Valid pictures Valid pictures
2010-08-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人