大约有 18,621 项符合查询结果(耗时:0.0224秒) [XML]

https://www.tsingfun.com/it/cpp/1784.html 

c++ 代码调用nsis安装包实现静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术

...nsis安装包实现静默安装TCHAR szCurPath[MAX_PATH] = {0};GetCurrentDirectory(MAX_PATH, szCurPath);TCHAR szFile[MAX_PATH] = {0};_stprintf_s(szFile, ... TCHAR szCurPath[MAX_PATH] = {0}; GetCurrentDirectory(MAX_PATH, szCurPath); TCHAR szFile[MAX_PATH] = {0}; _stprintf_s(szFile, MAX_PATH, _T...
https://www.tsingfun.com/it/cpp/1786.html 

Linux常用命令(持续更新...) - C/C++ - 清泛网 - 专注C/C++及内核技术

...命令:chkconfig --list #列出所有的系统服务chkconfig --add xxx #增加xxx系统服...Linux启动、停止、查询系统服务的命令: chkconfig --list #列出所有的系统服务 chkconfig --add xxx #增加xxx系统服务 chkconfig xxx on/off #开...
https://www.tsingfun.com/it/cpp/2102.html 

error: cannot dynamic_cast ‘b’ (of type ‘class Base*’) to type ‘c...

error: cannot dynamic_cast ‘b’ (of type ‘class Base*’) to type ‘class Derived*’ (source type is not polymorphic)在将父类型转换为子类型时,可以使用static_cast和dynamic_cast.如果使用dynamic_cast,它要求父类必须为多态的,即要求至少有一个虚函数,因此....
https://www.tsingfun.com/it/cpp/2107.html 

[完整实例源码]C&C++修改文件只读属性 - C/C++ - 清泛网 - 专注C/C++及内核技术

...只读,然后SetFileAttributes修改文件属性。代码如下:#include "stdafx.h"int _...先使用GetFileAttributes获取文件属性,判断该文件是否是只读,然后SetFileAttributes修改文件属性。 代码如下: #include "stdafx.h" int _tmain(int argc, TCHAR* argv[], T...
https://www.tsingfun.com/it/cpp/2199.html 

C/C++获取Windows的CPU、内存、硬盘使用率 - C/C++ - 清泛网 - 专注C/C++及内核技术

C/C++获取Windows的CPU、内存、硬盘使用率1.获取Windows系统内存使用率 Win 内存 使用率 DWORD getWin_MemUsage(){MEMORYSTATUS ms;::GlobalMemoryStatus(&ms);return ms.d...1.获取Windows系统内存使用率 //Win 内存 使用率 DWORD getWin_MemUsage() { MEMORYSTATUS m...
https://www.tsingfun.com/it/opensource/1236.html 

vs2010编译boost若干问题解决 - 开源 & Github - 清泛网 - 专注C/C++及内核技术

...决首先说下环境,win7,vs2010。先在http: www.boost.org users download 上下载boost安装包,我下的是1.52.0版。按照说明,直接运行bootstr...首先说下环境,win7,vs2010。 先在http://www.boost.org/users/download/上下载boost安装包,我下的是1.52.0版。...
https://www.tsingfun.com/it/da... 

Linux MySql的启动、关闭 - 数据库(内核) - 清泛网 - 专注C/C++及内核技术

...务,则会报错: [root@iZ23rlmiwviZ home]# service mysql start Redirecting to /bin/systemctl start mysql.service Failed to start mysql.service: Unit mysql.service failed to load: No such file or directory. 添加服务具体步骤如下: 首先找到mysql.server,一般在 xxx/mysq...
https://www.tsingfun.com/it/os_kernel/534.html 

Linux Glibc幽灵漏洞允许黑客远程获取系统权 - 操作系统(内核) - 清泛网 - ...

...洞 代码审计公司Qualys的研究人员在glibc库中的nss_hostname_digits_dots函数中发现了一个缓冲区溢出的漏洞,这个bug可以经过 gethostbyname*函数被本地或者远程的触发。应用程序主要使用gethostbyname*函数发起DNS请求,这个函数会将主机名...
https://www.tsingfun.com/it/os_kernel/2202.html 

解决:error while loading shared libraries: libpcre.so.1: cannot open ...

解决:error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directoryerror while loading shared libraries: xxx so 1: cannot open shared object file: No such file or directory错误原因是 error while loading shared libraries: xxx.so.1: cannot open...
https://www.tsingfun.com/it/tech/466.html 

.NET4.5新特性 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...能),垃圾回收(GC)(后台GC垃圾清理),控制台支持Unicode,数组支持超过2G大小等。 特性1:async和await *async和await是一对标记符,可以用来标记当一个任务(线程)完成后将返回到哪里 *这里有三点需要注意的地方: 1、async...