[转]vs使用技巧

21 篇文章 0 订阅

原文地址:http://blog.csdn.net/bcfd_yundou/article/details/53535128

1. vs生成的文件如何自动拷贝到指定目录

在编译vs的工程后,有时需要将生成的文件,比如dll、lib等拷贝到别的目录去,可以写一个脚本插到属性管理器中,就能完成自动拷贝。

找到:属性》生成事件》后期生成事件》命令行

然后把下面的代码粘贴进去

@echo xxxxxxxxxxx
if $(PlatformTarget)==x64 (
xcopy "$(ProjectDir)..\lib\win64\*.dll" "$(OutDir)" /y 
)
if $(PlatformTarget)==x86 (
xcopy "$(ProjectDir)..\lib\win86\*.dll" ..\..\..\eapil_qt_player\EpFactoryTool\bin /y 
if $(Configuration)==Debug (
xcopy "$(ProjectDir)..\lib\win86\*.ilk" ..\..\..\eapil_qt_player\EpFactoryTool\bin /y 
xcopy "$(ProjectDir)..\lib\win86\*.pdb" ..\..\..\eapil_qt_player\EpFactoryTool\bin /y 
)
)

2.windows里常见的内存填充数据含义
 * 0xABABABAB : Used by Microsoft's HeapAlloc() to mark "no man's land" guard bytes after allocated heap memory
漱 * 0xABADCAFE : A startup to this value to initialize all free memory to catch errant pointers
涵?  * 0xBAADF00D : Used by Microsoft's LocalAlloc(LMEM_FIXED) to mark uninitialised allocated heap memory
很?  * 0xBADCAB1E : Error Code returned to the Microsoft eVC debugger when connection is severed to the debugger
撅饰 * 0xBEEFCACE : Used by Microsoft .NET as a magic number in resource files
烫烫 * 0xCCCCCCCC : Used by Microsoft's C++ debugging runtime library to mark uninitialised stack memory
屯屯 * 0xCDCDCDCD : Used by Microsoft's C++ debugging runtime library to mark uninitialised heap memory
葺葺 * 0xDDDDDDDD : Used by Microsoft's free() or delete to mark freed heap memory
蕲蕲 * 0xDEADDEAD : A Microsoft Windows STOP Error code used when the user manually initiates the crash
 * 0xFDFDFDFD : Used by Microsoft's C++ debugging heap to mark "no man's land" guard


3. vs统计代码量

在visual studio开发环境中,ctrl shift F会弹出查找窗口,输入
b*[^:b#/]+.*$

选择正则表达式匹配,

在查询结果中有代码行统计量





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值