Menu

How to compile CppUnit 1.8 under VC 7?

Help
±ä«TªN
2002-08-13
2013-04-22
  • ±ä«TªN

    ±ä«TªN - 2002-08-13

    In "http://www.iunknown.com/Articles/fog0000000025.html", I find "how to get your first unit test up and running using CppUnit and Microsoft Visual C++ 7.0."

    So after downloaded source files of cppunit 1.8.0, I open examples/examples.dsw in VC 7(contains all the samples) first. Then, I make HostApp the Startup project and compile. The problem is:

    g:\myTestWork\cppunit-1.8.0\src\msvc6\DSPlugIn\StdAfx.h(21): fatal error C1083: can not open include file:ObjModel\addauto.h:No such file or directory

    How or where I can find a solution?

    Thanks

     
    • James Galasyn

      James Galasyn - 2002-09-03

      I get the same error. A quick search of the VS.NET directories turned up no files by this name. I suspect the plug-in model has completely changed under VC7.

       
      • Bruce Wootton

        Bruce Wootton - 2003-02-06

        We finally resolved this by moving to CppUnit v1.9.  That seems to work well.

         
    • Anonymous

      Anonymous - 2003-01-10

      Did anybody solve this problem?

       
    • Bruce Wootton

      Bruce Wootton - 2003-01-28

      Same problem - A quick solution is to build it on VC 6.  I think the DLLs should be compatible.

      As far as a long term solution, I found this on deja:
      ----- begin paste --------------------------------------
      Sriraman,

      The Add-In model has changed; but loosely speaking this would be EnvDTE.dll.
      You may want to check the Environment SDK documentation to get an overview
      of the new model.

      Chris Lucas
      Visual C++
      Microsoft

      "Sriraman M.V." <sreeraman_mv@3mts.com> wrote in message
      news:uiHzglLJBHA.1848@tkmsftngp02...
      > I have a project that uses apputo.h from ....Microsoft Visual
      > Studio\include\ObjModel & devbld.pkg from ....Microsoft Visual
      > Studio\Common\MSDev98\Bin\IDE. When I upgraded this project VC++7. it give
      > an error saying that these two includes are missing.What is the equivalent
      > for these in VC++7.
      >
      >

       
    • todd smith

      todd smith - 2003-02-22

      I have tried compiling under VS6 and using in VS7 and compiling the latest dev snapshot in VS7. Neither technique has been successful. :(

       
    • Andrey Melnikov

      Andrey Melnikov - 2003-04-18

      As IDE object model has changed in VC7, plugin version of CPPUnit needs to be rewritten. AFAIK nobody has done it yet, the only solution is to use Compiler Outputter and not to compile the plugin at all.

      However compiler outputter in 1.8 is not supported by vc7 well. Though the results are still clickable in Output window of 7th Studio, Tasks window is empty, as format of data generated by the outputter should be changed to match the format VC7 expects.

      I wrote VC7Outputter class which produces output suitable for Studio .NET. Is someone interested in it?

       
      • Adeh DeSandies

        Adeh DeSandies - 2003-05-22

        YES!
        I am trying to use CppUnit 1.9 with VC7. Right njow its working fine with the TextOutputter, and it would be nice to get the MfCUi working again, but barring that, the integration of a CompilerOutputter would be great.

         
    • Baptiste Lepilleur

      Get the lastest 1.9.11 portability test 3 snapshot. TaskList integration has been recently added.

      Baptiste.

       
      • Robert G Palmer Jr

        It appears that the line:
        ExecuteVisualStudioCommand(CString("Edit.OpenFile ") + fileName);

        is failing with a dialog box appearing that says: The command allows at most one argument.

        I have stepped into the code and the parameters look correct (fileName).

        Since this fails, the get_MainWindow fails as well.

         
    • Robert G Palmer Jr

      Baptiste,

      You indicate that one should get the "1.9.11 portability test 3 snapshot"  - how do I go about doing that - I can't find it listed anywhere.  I'm relatively new to SourceForge.  Please point me in the correct direction.

      Thanks,
      Robert

       
    • Robert G Palmer Jr

      I got it running - used v1.8.0 replaced the two files (found in testrunner) and removed TestRunner's dependency on DSPlugIn.  It builds and runs, but when I click on an error, I get a crash at this location:

      the pWindow returned by get_MainWindow() is null.

      I only have one project open - the sample project.  Is that correct? should I have the sample application open in another copy of visual studio?

      void MsDevCallerListCtrl::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult)
      ...
          pDTE->get_MainWindow(&pWindow);
          pWindow->put_Visible(TRUE);
          pWindow->SetFocus();

       
    • Ed Johnson

      Ed Johnson - 2004-10-18
       
    • Mathcoles

      Mathcoles - 2004-12-30

      I am in Testing, I would like to learn how to write Unit test Cases for Cpp on different platforms. Plz give the Source. so, that i can learn & start writing the Code for unit Testing.

       
      • Code Guru

        Code Guru - 2004-12-30

        You can download the CppUnit distribution by clicking on the File link at the top of any page on this website.  It looks like the latest version is 1.10.2.  The distribution comes with great documentation to help you get started.  One of the HTML pages included shows a step-by-step example of how to write test cases for your C++ code.

        HTH

        Layne

         
      • Code Guru

        Code Guru - 2004-12-30

        P.S.  To avoid confusion, you should typically start your own thread by going to the main index of the messages, rather than posting a follow up to an exisiting message like you did here.

         

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.