大约有 14,000 项符合查询结果(耗时:0.0190秒) [XML]
【解决】munmap_chunk(): invalid pointer - C/C++ - 清泛网 - 专注C/C++及内核技术
.../应使用 strcpy(word, "abc");
free(word); //崩溃报错
实际项目中可能此类问题没法直观定位到,推荐使用gcc自带的 asan 检查内存错误。
asan 内存跟踪
【解决】double free or corruption (!prev) - C/C++ - 清泛网 - 专注C/C++及内核技术
...
memcpy(buf, "123456", 6);
free(buf); //free时报此错误
实际项目中可能此类问题没法直观定位到,推荐使用gcc自带的 asan 检查内存错误。
asan 内存跟踪
【解决】C、C++混合编译link失败问题 - C/C++ - 清泛网 - 专注C/C++及内核技术
...加的话,又报编译语法错误。
解决方法:
头文件定义中添加带宏判断的extern "C":
#ifdef __cplusplus
extern "C" {
#endif
// C funcs in header
#ifdef __cplusplus
}
#endif
一定要加宏判断,否则编译C文件时不能识别extern "C"描述报语...
CDHtmlDialog的基本使用(C++调用JS函数的实现) - C/C++ - 清泛网移动版 -...
...:
二、为C++按钮添加调用Js的代码:
JSCppInteractive.htm中添加一个js函数供C++调用,代码如下:
<script type="text/javascript">
function CppCallJsFunc() {
alert("JS alert弹出框!");
}
</script>
JSCppInteractiveDlg.h末尾添加如下代码:
HRES...
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...
CDHtmlDialog的基本使用(C++调用JS函数的实现) - C/C++ - 清泛网移动版 -...
...:
二、为C++按钮添加调用Js的代码:
JSCppInteractive.htm中添加一个js函数供C++调用,代码如下:
<script type="text/javascript">
function CppCallJsFunc() {
alert("JS alert弹出框!");
}
</script>
JSCppInteractiveDlg.h末尾添加如下代码:
HRES...
Apache 404页配置方法 - 更多技术 - 清泛网移动版 - 专注IT技能提升
...然后在网站根目录建立.htaccess文件(已存在直接添加)其中添加一行配置:
ErrorDocument 404 /404.html
也可以:
ErrorDocument 404 https://www.tsingfun.com/404.html
404页面对SEO的影响
当搜索引擎搜索一个错误链接的时候,如果你没有设置404...
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...
改用 443 端口连接 Github 修复 git push 时出现 Connection timed out 的...
...了一个使用 443 端口连接 github 的方法:
修改 ~/.ssh/config 中 github.com 的配置, Hostname 改为 ssh.github.com, Port 改为 443:
Host github.com
Hostname ssh.github.com
Port 443
测试:
$ ssh -T git@github.com
Warning: Permanently added '[ssh.github.com]:443,[1...
Jenkins配置自动发送邮件 - 项目管理 - 清泛网 - 专注IT技能提升
...用户保持一致。
此时我们已经可以发送邮件了
4.在job中增加构建后操作 Editable Email Notification
其实最后的邮件内容是由Editable Email Notification步骤里面的【Advanced setting】的Triggers里面的【高级】来决定的
...