CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Posts
    66

    Unit Test & MFC (Visual C++ unmanaged) project


    Hi all,

    I was very glad as I heard the company will migrate the project to VS 2005 (from 2003), because I hoped for a good help with Unit Tests. Well after some tries I’m very disappointed because I understand … nothing (I used before CPPUnit and it worked fine).
    The project is only an exe with many classes (there is a special reason for this design). It is a MFC multi top-level documents application (unmanaged) developed with VS 2005. The MSDN help says that I need a static library, an .obj file, or a DLL entry point. The project is an executable (neither a static nor a dynamic library) so I have to use some how the .obj files. I never did something like this before. Did anybody knows how to this? Maybe knows somebody an example, tutorial, book for this case.
    For any idea, thanks in advance.

    Best regards,
    Emil

  2. #2
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Unit Test & MFC (Visual C++ unmanaged) project

    CppUnitVisualStudio2005Wizard
    A Visual Studio Wizard to create a project to test a class
    http://cppunit.sourceforge.net/cppun...udio2005Wizard
    Nobody cares how it works as long as it works

  3. #3
    Join Date
    Sep 1999
    Posts
    66

    Re: Unit Test & MFC (Visual C++ unmanaged) project

    Thank you Zerver for your suggestion, but I want to try the Unit Test integrated in the Visual Studio 2005 Team Edition.

    Best Regards,
    Emil

  4. #4
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Unit Test & MFC (Visual C++ unmanaged) project

    OK, I thought you had problems getting CPPunit to work in VS 2005.

    I'm afraid I don't know anything about that integrated unit testing.
    Nobody cares how it works as long as it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured