Release版, 選擇"Mulithreaded DLL".
Debug版, 選擇 "Debug Multihreaded DLL".
? Project Settings/Post-Build step增加: $(TargetPath)
CppUnit VS2005安裝
? 1、 Open examples/examples.dsw in VC++ (contains all the samples).
? VC7 will ask you if you want to convert, anwser 'yes to all'.
? 2、解決方案上右鍵,批量編譯,選擇全部,編譯
? 3、錯誤:
? #import "libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2" version
? ("7.0") lcid("0") raw_interfaces_only named_guids
? 改為:
? #import "libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2" version
? ("8.0") lcid("0") raw_interfaces_only named_guids
? 4、d:\cppunit-1.12.0\cppunit-1.12.0\src\msvc6\dsplugin\stdafx.h
? (12) : fatal error C1189: #error : This add-in is for VC++ 6.0
? only.
? 不用處理
CppUnit VS2005 向導
? 0. 下載 CPPUnitProjectWizard
? 1. 復制文件
? CPPUnitProjectWizard.vsdir - 為向導命名
? CPPUnitProjectWizard.vsz - 讓VS8知道從哪里找到向導
? 到您的Visual Studio 8安裝目錄下的 VSProjects 文件夾中
? 2. 把整個CPPUnitProjectWizard解決方案文件夾復制到您的Visual Studio 8安裝目錄下的VCWizards文件夾中。
文章來源于領測軟件測試網 http://www.kjueaiud.com/