最近做的windows下的项目涉及到对VS的一些零散配置,记录如下:
1、要让vs2012下创建的工程支持winXP,需要下载update 3或以上的更新包。安装完后,在properties->configuration properties->general->platform tools下选择Visual Studio 2012 - Windows XP (v110_xp),这样输出的可执行文件,即可支持winXP。
2、为了防止缓冲区溢出攻击,可以开启DEP(data execute protect)和ASLR(address space layout randomization)保护。位置分别是properties->configuration properties->Linker->advanced->data execute protect和properties->configuration properties->Linker->advanced->randomized base address。前者是防止缓冲区溢出淹没函数返回地址,后者这是通过