随笔分类 -  VisualStudio

VS2008链接错误fatal error LNK1104: cannot open file '*.obj'
摘要:This particular issue is caused by specifying a dependency to a lib file that had spaces in its path. The path needs to be surrounded by quotes for th 阅读全文

posted @ 2018-03-14 11:04 我来乔23 阅读(770) 评论(0) 推荐(0)

VS2008设置快捷键Ctrl+W关闭当前打开的文本编辑器窗口
摘要:好多友好的软件关闭多标签页的当前页时都有Ctrl+W的快捷键,如Chrome浏览器,使用起来还是很方便的。 但是作为程序员,使用VS2008时有时会打开好多C++或C#源文件,需要关闭某个源文件时你需要这样:右键->Close 这样的鼠标操作起来真的很费劲! 研究了下设置快捷键Ctrl+W的方式: 阅读全文

posted @ 2018-03-13 09:25 我来乔23 阅读(474) 评论(0) 推荐(0)

VC++ Debug条件断点使用
摘要:If you're trying to reproduce a rare event and getting too many false positives with your breakpoints, you can easily make them conditional! Simply sp 阅读全文

posted @ 2018-02-12 11:38 我来乔23 阅读(454) 评论(0) 推荐(0)

VC++ Debug格式化数值显示
摘要:When you watch variables in the Watch or Quick Watch window, the values are displayed using the default pre-defined visualizers. When it comes to numb 阅读全文

posted @ 2018-02-12 10:55 我来乔23 阅读(363) 评论(0) 推荐(0)

VC++Debug查看堆对象内容,即使符号已经超出作用范围
摘要:Sometimes you'd like to watch the value of an object (on the heap) even after the symbol goes of scope. When that happens, the variable in the Watch w 阅读全文

posted @ 2018-02-12 10:44 我来乔23 阅读(264) 评论(0) 推荐(0)

VC++ Debug产生异常时中断程序执行Break on Exception
摘要:It is possible to instruct the debugger to break when an exception occurs, before a handler is invoked. That allows you to debug your application imme 阅读全文

posted @ 2018-02-12 10:36 我来乔23 阅读(377) 评论(0) 推荐(0)

VS中常用的环境变量
摘要:环境变量名含义 $(SolutionDir) 解决方案目录:即.sln文件所在路径 $(ProjectDir) 项目根目录:, 即.vcxproj文件所在路径 $(Configuration) 当前的编译配置名称,比如Debug,或Release $(ProjectName) 当前项目名称 $(SolutionName) 解决方案名称 $(OutDir) 项目输出文件... 阅读全文

posted @ 2018-02-12 10:20 我来乔23 阅读(271) 评论(0) 推荐(0)

VC++Debug避免F11步进不想要的函数中
摘要:It's often useful to avoid stepping into some common code like constructors or overloaded operators. Many times when you debug the code you probably s 阅读全文

posted @ 2018-02-11 17:49 我来乔23 阅读(255) 评论(0) 推荐(0)

VC++ Debug显示指针所指的array内容
摘要:If you expand a pointer and you only get a single item, just add ",n" to the entry in the watch window where n is the number of elements to expand. Fo 阅读全文

posted @ 2018-02-11 17:32 我来乔23 阅读(317) 评论(0) 推荐(0)

VC++ 在Watch窗口显示GetLastError值以及详细信息
摘要:You can display the value GetLastError() will return by putting "@err" in your watch window. You can see the error message associated with that value 阅读全文

posted @ 2018-02-11 17:22 我来乔23 阅读(451) 评论(0) 推荐(0)

VC++ Debug内存值
摘要:Memory Values If you're using the debug heap, memory is initialized and cleared with special values. Typically MFC automatically adds something like t 阅读全文

posted @ 2018-02-11 17:01 我来乔23 阅读(233) 评论(0) 推荐(0)

VC++ 给你的代码强制加一个硬断点
摘要:类似与Javascript的 debugger; Hard code a debugger breakpoint If you need to insert a hard breakpoint in your code (perhaps because you need to attach to a 阅读全文

posted @ 2018-02-11 16:57 我来乔23 阅读(543) 评论(0) 推荐(0)

VC++6.0 打开原来工程突然特别慢或者打不开?
摘要:VC++6.0打开原来工程突然特别慢或者打不开? 近几日,对原来工程做了一些修改,感觉打开特别慢,甚至打不开,在Loading Workspace时就卡住了。 解决办法:删除工程文件中的三个文件,分别是:*.ncb * .opt * .plg,这样就可以飞快的打开了。 阅读全文

posted @ 2017-11-15 15:37 我来乔23 阅读(581) 评论(0) 推荐(0)

【转】 VC++6.0 在Win7 64位下调试,Shift+F5无法退出
摘要:Win7 64位VC++6.0调试代码无法关闭窗口解决方法 VC++6.0 在64位Windows7下调试的时候,再结束调试,程序无法退出,只能关闭VC++6.0 IDE环境。 问题描述:当我击F5开始一个项目的调试时,程序在我设置的断点处停止,这时按下Shift+F5后,VC++6可以退出调试状态 阅读全文

posted @ 2017-11-13 11:54 我来乔23 阅读(865) 评论(0) 推荐(0)

Windows应用程序运行权限设置
摘要:在Vista以后的windows版本中,有些时候需要提升编译后生成程序的权限,即希望让生成的程序以管理员身份运行。虽然在一般情况下,可以使用鼠标右键选择的方式来强行以管理员身份运行,但它并没有屏蔽普通运行方式,而且普通人通常也不会使用右键选择以管理员身份运行,所以必须在生成程序时就限定程序只能以管理 阅读全文

posted @ 2017-08-08 09:08 我来乔23 阅读(3632) 评论(0) 推荐(0)

VS2008让Release配置也能调试起来~
摘要:1、切换当前配置为Release-Win32 2、工程属性->C/C++->General->Debug Information Format 3、工程属性->C/C++->Optimization->Optimization(Disabled!) 4、工程属性->Linker->Debugging 阅读全文

posted @ 2017-07-14 11:40 我来乔23 阅读(298) 评论(0) 推荐(0)

VS2008 调试出现错误 "Unable to start debugging."
摘要:之前用的好好的调试功能,今天“F5”出现了 "Unable to start debugging." 的错误: 解决办法: 打开工程属性,选择“Debugging”,看看“Debugger to launch”是否与工程设置匹配,一般选择“Local Windows Debugger”。 阅读全文

posted @ 2017-07-06 15:40 我来乔23 阅读(1737) 评论(0) 推荐(0)

VS2008 对话框编辑器“即时预览”
摘要:之前在VS2008中利用资源编辑器修改完对话框资源后,总是重新编译一下,然后Ctrl+F5运行来预览修改的效果,不断修改,不断编译,导致很费时,效率低下。 今天,发现了一个很好用的功能“Test Dialog”,修改完后可以及时预览修改的效果,很棒,小技巧,平时没注意,相见恨晚哪! 1、打开VS20 阅读全文

posted @ 2017-06-09 16:43 我来乔23 阅读(1012) 评论(0) 推荐(0)

Administrator privileges required for OLE Remote Procedure Call debugging: this feature will not work..
摘要:VC++ 6.0单步调试(F10)出现警告框: 解决方法: 右键VC++ 6.0程序图标 阅读全文

posted @ 2017-05-29 11:00 我来乔23 阅读(2975) 评论(0) 推荐(0)

VS 清除编译产生的临时文件、文件夹
摘要:VS编译过程中会产生一些临时文件,通过以下脚本可清除 VS编译过程中会在工程目录下产生Debug、Release等临时编译文件夹,通过以下脚本可清除 阅读全文

posted @ 2017-04-24 10:03 我来乔23 阅读(3862) 评论(0) 推荐(0)

导航