摘要:
现象:fatal error C1083: Cannot open precompiled header file: 'Debug/***.pch': No such file or directory错误原因:主要是在编译工程时,有时候加载文件时,偷懒,先把工程中的所有.cpp和.h文件全删除,在加载后,就会出现这个问题;其实,真正的原因是创建工程的时候(单文档文件),工程使用预编译头文件stdafx.h(project->setting->c/c++/precompiled Headers->Use precompiled header file),但是, 阅读全文
摘要:
vs2010中的TSTCON( ActiveX Control Test Container )工具非自动安装,而是作为一个例程提供。所以应找到该例程,并编译:如vs2010安装在默认路径则1, 进入:C:\Program Files\Microsoft Visual Studio 10.0\Samples\1033,可找到VC2010Samples.zip文件,2, 将其解决到同一个文件夹,解压后将出现一个C++子文件夹。3, TstCon例程在:C:\Program Files\Microsoft Visual Studio 10.0\Samples\1033\C++\MFC\ole\Ts 阅读全文