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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
>
>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
We finally resolved this by moving to CppUnit v1.9. That seems to work well.
Did anybody solve this problem?
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.
>
>
I have tried compiling under VS6 and using in VS7 and compiling the latest dev snapshot in VS7. Neither technique has been successful. :(
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?
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.
Get the lastest 1.9.11 portability test 3 snapshot. TaskList integration has been recently added.
Baptiste.
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.
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
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();
http://www.iunknown.com/000014.html
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.
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
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.