原文地址: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#/]+.*$
选择正则表达式匹配,
在查询结果中有代码行统计量