大约有 19,024 项符合查询结果(耗时:0.0427秒) [XML]
cmake与autoconf+automake的对比 - C/C++ - 清泛网 - 专注C/C++及内核技术
...先,拿他们对比本身没有太多的意义,他们都是产生makefile文件的工具。cmake产生的晚,解决了很多autotools工具的问题。autotools是一个...首先,拿他们对比本身没有太多的意义,他们都是产生makefile文件的工具。cmake产生的晚,解...
c++ 写日志通用类,可设置日志级别 - C/C++ - 清泛网 - 专注C/C++及内核技术
... // 设置地域,不然fprintf写不了中文
setlocale(0, "chs");
FILE *fp = NULL;
TCHAR szLogFile[MAX_PATH] = {0};
va_list args;
va_start(args, fmt);
GetCurrentDirectory(MAX_PATH, szLogFile);
SYSTEMTIME sys;
GetLocalTime( &sys );
// 创建Log目录
_stprintf_s(szLogFil...
MFC Telnet Application(mfc telnet 端口,代码实现、不调用telnet.exe) ...
...address combo box is filled with predefined addresses, loaded from a hosts file present in the same directory as the Telnet application. After being connected to the server, you may send text messages to it. Click the INS key button in the text view, type in the command you want to send (if it won't...
关于 __VA_ARGS__ 宽字符版本的问题 - C/C++ - 清泛网 - 专注C/C++及内核技术
...:
#define WIDEN2(x) L ## x
#define WIDEN(x) WIDEN2(x)
#define __WFILE__ WIDEN(__FILE__)#define __WFUNCTION__ WIDEN(__FUNCTION__)
__LINE__, __FUNCTION__ 这些都可用使用这个宏拓展成宽字符版,__VA_ARGS__ 这样使用就会出现编译错误。
其实,据我所知 __VA_AR...
error MSB6006: “cmd.exe”已退出,代码为 3 - C/C++ - 清泛网 - 专注C/C++及内核技术
error MSB6006: “cmd.exe”已退出,代码为 31>C: Program Files MSBuild Microsoft.Cpp v4.0 Microsoft.CppCommon.targets(151,5): error MSB6006: cmd.exe已退出,代码为 3。1>1...1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: “cmd.exe...
c++ 代码调用nsis安装包实现静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术
...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("%s\\setup.exe"), szCurPath);
CSt...
c++ 代码提升权限,请求管理员身份运行权限 - C/C++ - 清泛网 - 专注C/C++及内核技术
...l be able to start
// other elevated applications.
sei.lpFile = szFile;
sei.lpParameters = szCmdline;
sei.lpDirectory = szWorking;
// Don't forget this parameter; otherwise, the window will be hidden.
sei.nShow = SW_SHOWNORMAL;
if (!...
MiniDumpWriteDump 记录dmp文件的简单实例(附调试方法) - C/C++ - 清泛网...
...NAPI ExceptionHandler(LPEXCEPTION_POINTERS pExceptionPointers)
{
char szFile[MAX_PATH] = {0};
SYSTEMTIME st = {0};
GetLocalTime(&st);
sprintf_s(szFile, "xxx_%d%02d%02d_%02d%02d%02d.dmp",
st.wYear,
st.wMonth,
st.wDay,
st.wHour,
st.wMinute,
st.wSecond);
HANDLE hDmpFile ...
[工程源码实例] C++ ADO 读写Excel源码及注意点 - C/C++ - 清泛网 - 专注C/C++及内核技术
...没有安装Excel软件,也可读写Excel!!!
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "adoEOF") rename("BOF", "adoBOF")
...
//连接字符串(这里是Excel 2003, 2007的Extended Properties="Excel 12.0 Xml;貌似找不到驱动,有...
ifstream 线程安全读文件 - C/C++ - 清泛网 - 专注C/C++及内核技术
...s(path.c_str());
if(!ifs) {
std::cout << "Failed to open the file." << std::endl;
return EXIT_FAILURE;
}
int n = 0;
std::string t;
while(safeGetline(ifs, t)) //<---- INFINITE LOOP happens here. <----
std::cout << "\nLine " << ++n << ":" << t <<...
