2014年5月6日
摘要:
#include "stdafx.h"#include#include//win2003SDK必须安装 要不无此头文件。此文件是为了实现StringCchPrintf,StringCchLength。#define MAX_THREADS 5#define BUF_SIZE 255typedef s...
阅读全文
posted @ 2014-05-06 12:23
上海—Michael
阅读(384)
推荐(0)
2014年5月5日
摘要:
先把代码贴出来,以后有时间再研究!简单的说,作业就相当于沙箱,可以使程序在一定范围内活动。#include "stdafx.h"#include "windows.h"#include using namespace std;SECURITY_ATTRIBUTES sa;STARTUPINFO si...
阅读全文
posted @ 2014-05-05 22:41
上海—Michael
阅读(471)
推荐(0)
2014年5月4日
摘要:
#include "stdafx.h"#include "windows.h"#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ STARTUPINFO si; PROCESS_INFORMATION...
阅读全文
posted @ 2014-05-04 20:52
上海—Michael
阅读(259)
推荐(0)
摘要:
#include "stdafx.h"#include "windows.h"#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ STARTUPINFO si; PROCESS_INFORMATION...
阅读全文
posted @ 2014-05-04 17:22
上海—Michael
阅读(481)
推荐(0)
2014年4月30日
摘要:
前提:64位系统需要用64位编译dll一、首先创建一个dll工程,取名为KeyboardHookDll,代码如下:// KeyboardHookDll.cpp : 定义 DLL 应用程序的导出函数。//#include "stdafx.h"#include using namespace std;#...
阅读全文
posted @ 2014-04-30 12:28
上海—Michael
阅读(299)
推荐(0)
2014年4月29日
摘要:
#include"stdafx.h"#include #include #include using namespace std;BOOL KillProcess(DWORD ProcessId){ HANDLE hProcess=OpenProcess(PROCESS_TERMINATE,FALS...
阅读全文
posted @ 2014-04-29 18:10
上海—Michael
阅读(236)
推荐(0)
摘要:
首先,把mysql目录下的include放到项目目录下,然后把libmysql.lib和libmysql.dll放到debug目录下。#include之前一定要加上#include否则会产生编译错误。#include "stdafx.h"#include #include "include\mysq...
阅读全文
posted @ 2014-04-29 14:13
上海—Michael
阅读(2370)
推荐(0)
2014年4月28日
摘要:
这里仅仅是以putty作为演示消息发送机制和控件搜索机制程序一:代填IP和端口,并建立远程连接#include"stdafx.h"#include #include using namespace std;HWND FindTextBox(HWND hWnd,DWORD select_edit=1)...
阅读全文
posted @ 2014-04-28 18:01
上海—Michael
阅读(760)
推荐(0)
摘要:
原始路径:C:\\Program Files\\putty\\putty.exe改为:char *cmd="C:\\\"Program Files\"\\putty\\putty.exe";system(cmd);实现putty自动代填:system("C:\\\"Program Files\"\\...
阅读全文
posted @ 2014-04-28 16:37
上海—Michael
阅读(364)
推荐(0)
2014年4月27日
摘要:
下面是对C++的虚函数的理解。一,定义简单地说,那些被virtual关键字修饰的成员函数,就是虚函数。虚函数的作用,用专业术语来解释就是实现多态性(Polymorphism),多态性是将接口与实现进行分离;用形象的语言来解释就是实现以共同的方法,但因个体差异而采用不同的策略。下面来看一段简单的代码1...
阅读全文
posted @ 2014-04-27 15:23
上海—Michael
阅读(316)
推荐(0)