I'm pretty new to CppUnit and dlls in general so here goes. I've used the wizard found here http://cppunit.sourceforge.net/cppunit-wiki/CppUnitVisualStudio2005Wizard
to create a nice test in Visual Studio 2005. It works great and all that, my problem comes when I try to add stdafx.h to my source that I'm testing. It gripes about multiple instances of DllMain. Can anyone provide a solution or explanation of what's going on here? Oh, and I'm putting a bunch of old code under test here so removing stdafx.h from all my source files isn't an option.
thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm pretty new to CppUnit and dlls in general so here goes. I've used the wizard found here http://cppunit.sourceforge.net/cppunit-wiki/CppUnitVisualStudio2005Wizard
to create a nice test in Visual Studio 2005. It works great and all that, my problem comes when I try to add stdafx.h to my source that I'm testing. It gripes about multiple instances of DllMain. Can anyone provide a solution or explanation of what's going on here? Oh, and I'm putting a bunch of old code under test here so removing stdafx.h from all my source files isn't an option.
thanks in advance.