【问题标题】:How can i open a vc++ procet in visual studio 2013 express ? Getting many errors如何在 Visual Studio 2013 Express 中打开 C++ 项目?遇到很多错误
【发布时间】:2016-04-12 00:49:51
【问题描述】:

我有一个用 vc++ 编写的项目 其中一个文件是 .sln,在我看到的描述中:Microsoft Visual Studio 解决方案。当我使用 Visual Studio 2013 Express 打开文件时,我遇到了很多错误,例如它无法处理 c++ 或 vc++

我应该怎么做才能在 vc++ 中调试和使用项目? 我应该从某个地方下载 vc++ 吗?还是 Visual Studio 2013 Express 的东西?

这是我硬盘上文件的截图

当我尝试使用 Visual Studio 2013 Express 打开文件 VideoCaptureFilterSample.sln 时,我收到超过 100 个错误。 但也不是项目真的有那么多错误我认为visual studio 2013 express是针对csharp的,不能处理c++

我遇到的一些错误:

错误 1 ​​错误 C1083:无法打开包含文件:'afxwin.h':没有这样的文件或目录 e:\capturemaster\gamecapture-master\videocapturefiltersample\stdafx.h 23 1 VideoCaptureFilterSample

2   IntelliSense: cannot open source file "afxwin.h"    e:\capturemaster\gamecapture-master\VideoCaptureFilterSample\stdafx.h   23  1   VideoCaptureFilterSample
3   IntelliSense: cannot open source file "afxext.h"    e:\capturemaster\gamecapture-master\VideoCaptureFilterSample\stdafx.h   24  1   VideoCaptureFilterSample
4   IntelliSense: cannot open source file "afxdtctl.h"  e:\capturemaster\gamecapture-master\VideoCaptureFilterSample\stdafx.h   31  1   VideoCaptureFilterSample
5   IntelliSense: cannot open source file "afxcmn.h"    e:\capturemaster\gamecapture-master\VideoCaptureFilterSample\stdafx.h   34  1   VideoCaptureFilterSample
8   IntelliSense: identifier "CWnd" is undefined    e:\capturemaster\gamecapture-master\VideoCaptureFilterSample\VideoCaptureFilterSampleDlg.cpp    19  60  VideoCaptureFilterSample
9   IntelliSense: "CDialog" is not a nonstatic data member or base class of class "CVideoCaptureFilterSampleDlg"    e:\capturemaster\gamecapture-master\VideoCaptureFilterSample\VideoCaptureFilterSampleDlg.cpp    20  4   VideoCaptureFilterSample
10  IntelliSense: expected a ')'    e:\capturemaster\gamecapture-master\VideoCaptureFilterSample\VideoCaptureFilterSampleDlg.cpp    20  45  VideoCaptureFilterSample
11  IntelliSense: identifier "AfxGetApp" is undefined   e:\capturemaster\gamecapture-master\VideoCaptureFilterSample\VideoCaptureFilterSampleDlg.cpp    22  12  VideoCaptureFilterSample

【问题讨论】:

  • 没有什么比向我们展示确切的错误信息更能帮助我们了解您的问题
  • paddy 更新了我的问题,添加了文件的屏幕截图。当我编译项目 BUILD > Rebuild Solution 我得到错误。我猜visual studio 2013 express 不能处理vc++
  • @paddy 要求的是实际的错误消息,而不是文件的屏幕截图。您不需要显示全部 100 个,可能只显示前几个。
  • 磁盘上的文件映像毫无意义。您遇到的具体错误是什么?我们无法从我们坐的地方读懂你的想法或看到你的屏幕。

标签: c++ visual-studio visual-c++


【解决方案1】:

您应该安装和使用 Visual Studio 2013 社区。据我所知,Visual Studio Express 不包含 MFC 标头。但是您的代码包含 afx*.h,它是 MFC 的一部分。

【讨论】:

  • 正确的 Express 版本从未包含 MFC 或 ATL。即使使用 VS Community、Professional 或更高版本,您也必须选择对 MFC 的支持作为自定义安装的一部分——对于 VS 2015,您已经必须这样做才能获得 C++ :)
猜你喜欢
  • 1970-01-01
  • 2012-11-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-04-22
  • 2015-03-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多