大约有 5,240 项符合查询结果(耗时:0.0078秒) [XML]
c++获取windows程序的版本号 - C/C++ - 清泛网 - 专注C/C++及内核技术
...号c++获取windows程序的版本号的完整代码。
#include "stdafx.h"
#include <windows.h>
#include <atlstr.h>
#pragma comment(lib, "version")
int _tmain(int argc, _TCHAR* argv[])
{
LPCTSTR lpszModuleName = _T("C:\\Windows\\notepad.exe");
// Get the version information size fo...
BugTrap:程序崩溃快照、bug跟踪之利器 - C/C++ - 清泛网 - 专注C/C++及内核技术
BugTrap:程序崩溃快照、bug跟踪之利器BugTrap的github官网地址:https: github com bchavez BugTrap下载源码可使用CMake进行编译,这里提供一下编译好的dll及lib文件(Unicode BugTrap的github官网地址:https://github.com/bchavez/BugTrap
下载源码解压...
C++中判断文件、目录是否存在的几种方法 - C/C++ - 清泛网 - 专注C/C++及内核技术
...流的时候,如果文件不存在则流创建失败。
ifstream fin("hello.txt");
if (!fin)
{
std::cout << "can not open this file" << endl;
这是c++中最常用的方式。
二、File
C中也是同样道理,我们可是File的相关操作。
File* fh = fopen("hello","r");
i...
一个宏命令,就可以程序崩溃时生成dump文件 - C/C++ - 清泛网 - 专注C/C++及内核技术
...在主程序初始化时加入 DeclareDumpFile();
创建头文件DumpFile.h, 将下列代码放进文件中:
#pragma once
#include <windows.h>
#include < Dbghelp.h>
#include <iostream>
#include <vector>
using namespace std;
#pragma comment(lib, "Dbghelp.lib")
namespace NSDumpFi...
MFC Telnet Application(mfc telnet 端口,代码实现、不调用telnet.exe) ...
...源码工程升级后,可能出现编译不过的情况,请将stdafx.h中0x0410全部改为0x0501即可。The article demonstrates an MFC GUI Telnet application with server capabilities for incoming connections support.
Download demo - 29.9 KB
Download source - 42.1 KB
Introduction
I'v...
[完整源码实例] 修改 CListCtrl 的标题栏字体颜色;重绘 CListCtrl 标题栏 ...
... CListCtrl 标题栏如果只需设置标题栏字体的话,无需自绘CHeaderCtrl,部分代码如下:CFont *f = new CFont; f->CreateFont(13, nHeight ...如果只需设置标题栏字体的话,无需自绘CHeaderCtrl,部分代码如下:
CFont *f = new CFont;
f->CreateFont...
VS Debug调试模式下内存泄露检测原理 - C/C++ - 清泛网 - 专注C/C++及内核技术
...ew(__FILE__, __LINE__)。
可以将如下一段代码保存到SetDebugNew.h文件中,
#ifdef _DEBUG
#define DEBUG_CLIENTBLOCK new(__FILE__, __LINE__)
#define new DEBUG_CLIENTBLOCK
#endif
在源代码文件中包含该头文件,如果有stdafx.h文件,在文件中#include "SetDebugNew.h...
C++ 取得系统当前时间 - C/C++ - 清泛网 - 专注C/C++及内核技术
C++ 取得系统当前时间方法一,只能精确到秒#include <time.h> time_t tt = time(NULL); 这句返回的只是一个时间戳 tm* t= localtime(&tt); printf("%d...方法一,只能精确到秒
#include <time.h>
time_t tt = time(NULL);//这句返回的只是一个时间戳
tm* t= l...
Win7以上操作系统清理系统图标缓存脚本 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...ertaskkill f im explorer.exerem 清理系统图标缓存数据库attrib -h -s -r "%userprofile% AppDa...
rem 关闭Windows外壳程序explorer
taskkill /f /im explorer.exe
rem 清理系统图标缓存数据库
attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"
del /f "%userprofile%\A...
问答和论坛的区别 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...平常在新增标签的时候非常容易,而传统的树形结构,当h>3以后,类别添加就会变得越来越困难。从技术层面上来说,标签的背后还是树的思维,但从产品形态上来说,扁平化的标签只有结合了搜索,才能够让用户感受到更便捷...