菜鸟我刚刚学习VC,感觉VS2005用起来比VC6。0好用多了,但是工程的设置,让我一直摸不着头。只好遇到一次问题,把解决的方式记下来,靠日积月累了。
明明一个能在VC6。0里面建立一个很普通的WIN32 控制台单文档应用程序,只在FramWnd里添加一个BUTTON,但以相同的方式放到VS2005里面,居然就弹出了很多错误,哎。不过还是解决了,呵呵。
1、编译错误1
>mt.exe : general error c101008a: Failed to save the updated manifest to the file "./debug/TEST.exe.embed.manifest". Bpcn mt.exe
解决方法:
Project Properties -> Configuration Properties -> Manifest Tool -> Command Line
Under Additional options, enter " /validate_manifest "
2、编译错误2
在General里,要把Charcter Set,默认为Use Unicode Character Set,要设置成Multi-Byte Character Set形式。