C++ AsciiUnicodeUtf8
AsciiUnicodeUtf8.h:#pragma onceDWORD BytesToHexStr(IN BYTE*nbData,DWORD nbDataSize,OUT char*szpHexBuf); //字节集转十六进制字串DWORD AnsiToUtf8(LPCSTR Ansi,OUT LPSTR szpUtf8Buf);char* UniCod...
C++ MFC_Dll初始化窗口显示
#include"DeBug_dll.h"DWORD WINAPI 显示窗口(LPVOID arg) {AFX_MANAGE_STATE(AfxGetStaticModuleState());DeBug_dll deBug_dll;//实例化对象 DeBug_dlldeBug_dll.DoModal();//DoMoDal 以模态的方式显示窗口 ...
C++ 读内存代码
//注入Dll读内存地址DWORD ReadMemory(UINT_PTR 地址) {__try {return *(DWORD*)地址;}__except(1){return 0;}}跨进程读写:const HWND 窗口句柄{ FindWindowA("窗口类名", "窗口名称")&...
C++ 打开控制台/关闭控制台
//显示控制台AllocConsole();//freopen("CONOUT$", "w+t", stdout); // 重定向STDOUT //把printf函数的输出 黑窗口屏幕上//FILE* file=freopen("c:\\123.txt", "w+t", stdou...
11月17日
#include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ int n1,n2,answer; srand(time(NULL)); n1=0+rand()%100; n2=0+rand()%1...
Powered By Cheug's Blog
Copyright Cheug Rights Reserved.