大约有 12,800 项符合查询结果(耗时:0.0225秒) [XML]
maven command line how to point to a specific settings.xml for a single command?
... @NeerajSinghChouhan I know it's a little late, but in Eclipse, open Window > Preferences > Maven > User Settings. Specify a different User Settings (settings.xml) file there, then click Update Settings.
– Ben Ingle
Jan 4 '18 at 16:34
...
“历史遗留”漏洞:浅析新型SSL/TLS漏洞FREAK - 创意 - 清泛网 - 专注C/C++及内核技术
...洞,即使使用HTTPS网站后依然可能遭受中间人攻击。好在Windows和Linux用户,目前并未受到该漏洞影响。
FREAK漏洞与POODLE(贵宾犬)漏洞的相似性
FREAK与POODLE这两个漏洞还是有一定的相似性的,POODLE是利用安全套件进行降级回退...
scoped_ptr 与 auto_ptr 与 shared_ptr 区别总结 - C/C++ - 清泛网 - 专注C/C++及内核技术
...能指针。
测试实例如下:
#include "stdafx.h"
//#include "windows.h"
#include <memory>
#include <iostream>
using std::tr1::shared_ptr;
class Foo
{
public:
Foo()
{
std::cout<<"new Foo()"<<std::endl;
i = 0;
}
~Foo()
{
std::cout<<"destroy Foo()"<<std::endl;
...
c++ 写日志通用类,可设置日志级别 - C/C++ - 清泛网 - 专注C/C++及内核技术
c++ 写日志通用类,可设置日志级别c++ 写日志通用类(windows & linux 通用),可设置日志级别。代码经过较长时间的测试,可用性高。Logger.h
#ifndef __LOGGER_H_
#define __LOGGER_H_
#include <iostream>
#include <atlstr.h>
#pragma warning(disable:4996...
BugTrap:程序崩溃快照、bug跟踪之利器 - C/C++ - 清泛网 - 专注C/C++及内核技术
...ortFilePath(_T("crash"));
//BT_SetActivityType(BTA_SAVEREPORT);
}
// Windows下感知程序崩溃的方法有3个核心的函数,分别如下:
// SetUnhandledExceptionFilter (HandleException)确定出现没有控制的异常发生时调用HandleException.
// _set_invalid_parameter_hand...
BugTrap程序崩溃快照上传服务端开发配置 - C/C++ - 清泛网 - 专注C/C++及内核技术
...
推荐使用tcp版本的服务端,.net编写的,可自动安装成windows服务:BugTrapServer.zip
(在上面安装后的目录下有这个,这里多加了一个安装脚本;没有安装上面程序的可直接下载这个使用)
IIS http版本的服务端:BugTrapWebServer.z...
C++中判断文件、目录是否存在的几种方法 - C/C++ - 清泛网 - 专注C/C++及内核技术
...dClose(hFind);
二、_stat()
现在介绍一个轻量级的方法
在windows中可以使用_stat() 函数。
声明:int _stat(const char* path, struct _stat* buffer);
这个函数使用起来非常方便,如下:
struct _stat fileStat;
if ((_stat(dir.c_str(), &fileStat) == 0) && (fi...
一个宏命令,就可以程序崩溃时生成dump文件 - C/C++ - 清泛网 - 专注C/C++及内核技术
...DumpFile.h, 将下列代码放进文件中:
#pragma once
#include <windows.h>
#include < Dbghelp.h>
#include <iostream>
#include <vector>
using namespace std;
#pragma comment(lib, "Dbghelp.lib")
namespace NSDumpFile
{
void CreateDumpFile(LPCWSTR lpstrDumpFilePathName, EXC...
AfxGetApp->GetMainWnd() 与 AfxGetMainWnd() - C/C++ - 清泛网 - 专注C/C++及内核技术
...probably in-place active
// when not inplace active, just return main window
if (m_pMainWnd != NULL)
return m_pMainWnd;
return CWnd::GetActiveWindow();
}
那个afxCurrentWinApp就不用说了吧.
嘿嘿,一切完毕,如果你的程序存在类似上面的问题可一定...
VC/MFC 临界区域使用方法实例 - C/C++ - 清泛网 - 专注C/C++及内核技术
...次调用都必须与对LeaveCriticalSection函数的调用相匹配。
Windows 98没有可以使用的TryEnterCriticalSection函数的实现代码。调用该函数总是返回FALSE。
PS:可以定义不同的临界区域对象(CRITICAL_SECTION)来锁定不同的共享资源,使用方法...
