I just tried to compile CPP Unit Under Visual C++ 2008. Compiler. There was one problem When I tried to compile MFC Test Runner.
| MsDevCallerListCtrl.cpp .\MsDevCallerListCtrl.cpp(67) : error C3505: cannot load type library ‘{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}’ .\MsDevCallerListCtrl.cpp(67) : fatal error C1104: fatal error importing libid: ’80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2′ |
CPP Unit using IDE Automation component to track the source lines in the MFCTest runner. Version cppunit-1.12.0 currently support till version 7 of IDE Automation. I’ve only version 2008 of Visual Studio installed in my machine. So just correct the version number in MsDevCallerListCtrl.cpp file
| #pragma warning( disable : 4278 ) #pragma warning( disable : 4146 ) #import “libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2″ version(“9.0″) lcid(“0″) raw_interfaces_only named_guids #pragma warning( default : 4146 ) #pragma warning( default : 4278 ) |
For more Information Check
How to: Add References to the EnvDTE and EnvDTE80 Namespaces

Thanks for posting this. I had the same problem, and you helped me fix it. Rock on.
Thanks,
It works, But I have one other error remaining:
Error 1 general error c10100b1: Failed to load file “.\Debug\TestRunnerDSPlugInD.dll”. The system cannot find the file specified. mt.exe DSPlugIn
Thanks for posting this. i had the same problem in VS2005, i solved as you suggested. thanks for helping us.
Sarath,
Thank you very much for posting this. Had the same error a few minutes ago then googled the error and fortunately, this page was first on the list. You saved me precious time. Thanks again and more power.
Macross ace,
Roy Focker
How can I install cppunit in visual studio 2005?
word
From the link in the first reply, replaced the import statement in MsDevCallerListCtrl.cpp with:
#pragma warning( disable : 4278 )
#pragma warning( disable : 4146 )
//The following #import imports EnvDTE based on its LIBID.
#import “libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2″ version(“8.0″) lcid(“0″) raw_interfaces_only named_guids
//The following #import imports EnvDTE80 based on its LIBID.
#import “libid:1A31287A-4D7D-413e-8E32-3B374931BD89″ version(“8.0″) lcid(“0″) raw_interfaces_only named_guids
#pragma warning( default : 4146 )
#pragma warning( default : 4278 )
That did the trick for me in Visual Studio 2005.
David
Hi,
Thanks David, but that didn’t work. I still get the single error
error PRJ0019: A tool returned an error code from “Updating c:\Documents and Settings\sreedevi\My Documents\cppunit-1.12.1\lib\cppunitd_dll.dll” TestPlugInRunner
It’s driving me dizzy. Please help!
Thanks.
[...] fix the bug first. According to this post I just tried to compile CPP Unit Under Visual C++ 2008. Compiler. There was one problem When I [...]
thanks a loy it works for VS2008
thanks.i changed the version from 7 to 9 and it compiles now.
thanks! I fixed it too
Hi Sreedevi:
(This may be too late to help you, but hopefully it will help the next person who googled up this entry …)
I just spent the whole morning fixing the same error. Turns out you can’t have spaces in the path to your cppunit folder. I moved it to d:\martin\cppunit\ (after making the changes in David’s post – Thanks David!) and now it all builds.