Menu

MFCRunner & existing MFC MDI app

Help
2008-06-10
2013-04-22
  • andrewwan1980

    andrewwan1980 - 2008-06-10

    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?

     
    • andrewwan1980

      andrewwan1980 - 2008-06-16

      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...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.