随笔分类 - C++:实现功能
摘要:转载:https://www.cnblogs.com/bksqmy/p/4551406.html https://www.cnblogs.com/lightspeedsmallson/p/4901211.html 1.说明: 注册表是Windows重要组成部分,注册表记录了大量有关电脑软硬件的信息。
阅读全文
摘要:转载:https://www.cnblogs.com/tlduck/p/5132738.html 1 #define _WIN32_DCOM 2 3 #include<iostream> 4 #include<fstream> 5 #include<string> 6 #include "direc
阅读全文
摘要:转载:https://www.cnblogs.com/qq76211822/p/4712033.html 1 #include<iostream> 2 #include <windows.h> 3 #include <winioctl.h> 4 #include<tchar.h> 5 6 using
阅读全文
摘要:转载:https://www.cnblogs.com/codingmengmeng/p/6285266.html 1.实现 1 /* 2 @author:CodingMengmeng 3 @theme:获取指定文件夹下的所有文件名 4 @time:2017-1-13 11:46:22 5 @blog
阅读全文
摘要:转载:https://www.cnblogs.com/dan-jacky/p/3487697.html 1 int main(int argc, char* argv[]) 2 { 3 // 需要添加头文件: 4 // #include <Windows.h> 5 6 system("title D
阅读全文
摘要:说明:极少文件无法得到图标,原因不明。如下图,左边全部得到图标,右边有两个文件夹图标没有得到 关键函数:SHGetFileInfo 主函数: HICON hIcon = getIconOfPath(string2LPCWSTR(str),1);//string2LPCWSTR为将string转换为L
阅读全文
摘要:下面这段话转自:https://blog.csdn.net/lightlater/article/details/6326338 关于文本文件的文件头 第一 ANSI文件的文件头为空,不需要处理; 第二 UNICODE文件的文件头为0xFF,0xFE共计两个字节,读取时需要偏移两个字节再行读取; 第
阅读全文
摘要:转载:https://blog.csdn.net/kikityan/article/details/89923808 记事本打开txt文件,然后另存,有四种编码格式可供选择,分别是:ANSI 无格式定义 对于中文编码格式是GB2312;Unicode 文本里前两个字节为FF FE 字节流是littl
阅读全文
摘要:来源:https://bbs.csdn.net/topics/391956973 3楼 #include <iostream> #include <fstream> #include <string> #include <windows.h> #include <gdiplus.h> #pragma
阅读全文
摘要:转载:https://blog.csdn.net/chenyujing1234/article/details/8023816 一、演示过程下方代码演示了如何使用vs(C/C++)创建windows服务程序 工程文件下载地址: http://download.csdn.net/download/so
阅读全文
摘要:转载:https://www.jb51.net/article/147896.htm 实际上就是以二进制形式打开文件,将数据保存到内存,在以二进制形式输出到指定文件。因此对于有图片的文件,也可以用这种方法复制其内容 1 #include<iostream> 2 3 using namespace s
阅读全文
摘要:转载:https://www.iteye.com/blog/univasity-805234 https://blog.51cto.com/velika/1440105 源码:https://files.cnblogs.com/files/Toya/USN.7z 本程序需要管理员权限 1 #incl
阅读全文
摘要:转载:https://www.cnblogs.com/Sketch-liu/p/7277130.html 1.WinExec( lpCmdLine: LPCSTR; {文件名和参数; 如没指定路径会按以下顺序查找: 程序目录/当前目录/System32/Windows/PATH环境变量} uCmdS
阅读全文
摘要:针对不需要管理员权限的程序 转载:https://blog.csdn.net/u010601662/article/details/72851812/ // 程序开机自动启动 void autostart() { HKEY hKey; string strRegPath = "SOFTWARE\\M
阅读全文
摘要:转载:https://www.csdn.net/gather_23/NtDaIg1sMDYtYmxvZwO0O0OO0O0O.html Windows平台代码如下: 1 #include <windows.h> 2 3 //string to char* 4 /* 5 string path; 6
阅读全文

浙公网安备 33010602011771号