上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 39 下一页
摘要: #include <iostream> #include <string> #include <sstream> #include <fstream> #include <Windows.h> using namespace std; int main() { char str[MAX_PATH]; 阅读全文
posted @ 2020-03-26 13:55 strive-sun 阅读(146) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <sstream> #include <fstream> #include <Windows.h> using namespace std; int main() { HKEY key; if (RegOp 阅读全文
posted @ 2020-03-26 10:09 strive-sun 阅读(688) 评论(0) 推荐(0)
摘要: #include <Windows.h> #include <Icm.h> #include <iostream> #include <string> #pragma comment(lib,"Mscms.lib") #define MAX_PATH 1024 BOOL flag = 0; int 阅读全文
posted @ 2020-03-25 13:35 strive-sun 阅读(442) 评论(0) 推荐(0)
摘要: std::string str = "abc"; const char *p = str.data(); 更多: https://www.cnblogs.com/devilmaycry812839668/p/6353807.html 阅读全文
posted @ 2020-03-23 17:02 strive-sun 阅读(501) 评论(0) 推荐(0)
摘要: #include <iostream> #pragma warning(disable:4996); using namespace std; char* t = (char*)malloc(1024); char* _strcut(char* des, char* src) { memset(t, 阅读全文
posted @ 2020-03-19 14:26 strive-sun 阅读(950) 评论(0) 推荐(0)
摘要: #include <iostream> #include <stdio.h> using namespace std; char *_strcpy(char* des, char* src) { if (des == NULL || src == NULL) { return 0; } // cou 阅读全文
posted @ 2020-03-18 18:13 strive-sun 阅读(198) 评论(0) 推荐(0)
摘要: 第一种,依托WMI #define _WIN32_DCOM #include <iostream> using namespace std; #include <comdef.h> #include <Wbemidl.h> # pragma comment(lib, "wbemuuid.lib") 阅读全文
posted @ 2020-03-18 11:21 strive-sun 阅读(8322) 评论(2) 推荐(1)
摘要: .py import win32api, win32con, win32gui import win32gui_struct import ctypes from ctypes import * GUID_DEVINTERFACE_USB_DEVICE = "{A5DCBF10-6530-11D2- 阅读全文
posted @ 2020-03-18 11:16 strive-sun 阅读(1107) 评论(0) 推荐(0)
摘要: 在添加第三方库的时候需要注意放置的路径,注意区分x86和x64的文件夹路径以及VS的版本,不要放错了 lib的位置:(需要先将lib放到该路径下,不然会说找不到.lib)C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um dll的位置 阅读全文
posted @ 2020-03-18 10:46 strive-sun 阅读(1455) 评论(0) 推荐(0)
摘要: 此函数是获取控件或者窗口中的文本 代码: TCHAR str1[255]; TCHAR str2[] = L"Hello World"; GetWindowText(hWnd_button, str1, 255); if (_tcscmp(str1, str2) == 0) { //it is ch 阅读全文
posted @ 2020-03-13 17:50 strive-sun 阅读(957) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 39 下一页