
C++调试
文章平均质量分 93
humadivinity
这个作者很懒,什么都没留下…
展开
-
windows下调试软件崩溃问题(转)
How to Debug the Exceptionnicolas_chang20 Oct 2009CPOL5 min reaIntroductionNo matter whether you are a computer programmer or a user, I think you have seen the dialog to remind you that your application has crashed, and remind you to contact app.原创 2022-04-13 15:15:06 · 368 阅读 · 0 评论 -
delphi 调用 vc 编译的dll, 注册回调函数后,在回调函数中打印字符串出现乱码
最近遇到个比较奇葩的问题,场景是这样1、上位机程序是用 delphi 编写的2、动态库是用 vc++ 编写的3、动态库里面有个回调函数机制,使用用DLL时,需要注册回调函数,回调函数的参数有一个指向结构体的指针4、上位机实现的回调函数会打印指针内的内容5、上位机调用debug版的DLL时,内容显示正确,而调用 release 版的 DLL 时,内容显示的是乱码解决过程入下1、对比 DLL 中 debug 和 relese 的编译选项,找出影响这个结果的那一项2、最后发现.原创 2020-07-17 16:14:03 · 593 阅读 · 0 评论 -
windows C++ 动态获取软件版本号
//exepath 为程序路径(绝对路径)std::string GetSoftVersion(const char *exepath){ std::string strVersionInfo; if (!exepath) return strVersionInfo; if (_access(exepath, 0) != 0) return st...原创 2020-02-25 11:20:07 · 1096 阅读 · 0 评论 -
VC调试中的mapInfo不支持line numbers的解决方案
原文是这样的,某个人在vs2012中想要输出map文件,但是发现map文件输出选项中的/MAPINFO:LINES 报错,从而去寻求帮助。官方给的答复是,改命令在vs2005之后就不支持了,建议换成minidump的方式。原文如下:Visual Studio 2012:error LNK1117: syntax error in option 'MAPINFO:LINES'Hi,Thanks...翻译 2018-05-24 15:45:23 · 854 阅读 · 0 评论 -
VS2003远程调试
1、首先配置远程调试环境。在安装包中找到下列文件:msvcmon.exemsvcr71.dllNatDbgDM.dllNatDbgTLNet.dllpsapi.dlldbghelp.dll其中psapi.dll、dbghelp.dll这2个文件可以没有,把这些文件复制到目标机器的一个文件夹下面...转载 2018-02-11 17:54:20 · 312 阅读 · 0 评论