[Cppunit-devel] AFX_EXT_CLASS error
Brought to you by:
blep
From: Laurie S. <la...@sh...> - 2001-07-24 23:22:02
|
We're just starting with cppunit - any help would be greatly appreciated! We are trying to move forward to unit testing with legacy code. I finally got everything to link happily and created a test case and that compiles and links fine. I copied static AFX_EXTENSION_MODULE extTestRunner; and then I copied the code out of HostApp BOOL CHostAppDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; TestRunner runner; runner.addTest ( CppUnit::TestFactoryRegistry::getRegistry().makeTest() ); runner.run (); return TRUE; } to my OnNewDocument() function to start the test and I am now baffled why my code does not compile, I can't see any important differences from the HostApp project - it gives me the error c:\projects\cppunit\cppunit-1.5.5\include\msvc6\testrunner\testrunner.h(20) : error C2079: 'TestRunner' uses undefined class 'AFX_EXT_CLASS' I am using VC++ 6.0 and cppunit 1.5.5 (with the latest TestRunner.h from cvs). Thank you for any help! Laurie |