I followed the instructions on http://cppunit.sourceforge.net/cgi-bin/moin.cgi/MfcTestRunner trying to embed the MFCRunner in my existing MFC MDI app. As soon as I see both my MDI app and MFCRunner dialog, my MDI app throws an exception and both crash.
Is there a specific setup our MFC SDI/MDI apps have to be in, such as cannot have multi-threaded, etc?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I figured out my problem. Basically my existing MFC MDI app is unicode and the cppunitd.lib testrunnerd.lib files we are told to link to are in ANSI. I converted testrunner into unicode (quite easy) and linked my MFC MDI app to testrunnerud.lib and everything works fine now.
Strange how I didn't need to convert cppunitd.lib into unicode...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I followed the instructions on http://cppunit.sourceforge.net/cgi-bin/moin.cgi/MfcTestRunner trying to embed the MFCRunner in my existing MFC MDI app. As soon as I see both my MDI app and MFCRunner dialog, my MDI app throws an exception and both crash.
Is there a specific setup our MFC SDI/MDI apps have to be in, such as cannot have multi-threaded, etc?
I figured out my problem. Basically my existing MFC MDI app is unicode and the cppunitd.lib testrunnerd.lib files we are told to link to are in ANSI. I converted testrunner into unicode (quite easy) and linked my MFC MDI app to testrunnerud.lib and everything works fine now.
Strange how I didn't need to convert cppunitd.lib into unicode...