相关疑难解决方法(0)

如何在Visual Studio c ++ express 2008中添加WTL和ATL

我开始在家里使用visual studio c ++ express 2008,但其中没有ATL.
如何将ATL添加到visual studio c ++ express 2008?

c++ wtl atl visual-studio

23
推荐指数
3
解决办法
4万
查看次数

vs2017中的MFC开发

当我安装vs2017时,我确实选择了带有C++选项的Windows开发.但是,在安装之后,我没有看到已添加MFC.果然,我在编译应用程序时遇到错误,

致命错误C1083:无法打开包含文件:'afxwin.h':没有这样的文件或目录

我在控制面板中找不到我的vs2017安装的更改/修改选项.如何添加"Microsoft基础类C++"包?

mfc visual-studio-2017

22
推荐指数
2
解决办法
3万
查看次数

获取"无法打开包含文件:'atlbase.h':没有此类文件或目录"错误

我正在交换机器(在两台Windows 8.1笔记本电脑之间),刚刚从TFS加载了我正在处理的项目.在一台机器上它编译,另一台机器没有编译,并给出第一个错误

error C1083: Cannot open include file: 'atlbase.h': No such file or directory
Run Code Online (Sandbox Code Playgroud)

在两台笔记本电脑上,我运行的是Visual Studio Ultimate 2013.在第一台笔记本电脑上,我检查了它的位置atlbase.h,它C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include来自于Visual Studio 2012安装目录.在新机器上,我没有安装Visual Studio 2012,因此该目录C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include不存在.

其他人有类似的问题(例如Ramilol的问题),因为他们使用的是Visual Studio Express.我正在使用Ultimate.

它可能是一个环境变量问题(由raj raj建议),但我的include目录路径VC++ Directories$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath)必需的.

我的一般问题是"我该如何解决这个问题?" 但是我也有兴趣知道我如何检查并设置$(VCInstallDir)的值,因为C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include它确实存在atlbase.h(所以我很困惑,为什么它没有被拾取).

==========编辑1:重写==========

让我再说一遍这个问题.

我已经将一个Visual Studio 2013项目加载到TFS的新构建笔记本电脑上.它不会构建并给出错误error C1083: Cannot open include file: 'atlbase.h': No such file or directory …

c++ atl include-path visual-studio-2013

21
推荐指数
4
解决办法
2万
查看次数

无法打开包含文件:'atlbase.h':没有这样的文件或目录

请查看以下代码

#define _ATL_APARTMENT_THREADED

#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override something,
//but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>

#include <sapi.h>
#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{
 cout << "Hello" << endl;
 ISpVoice * pVoice = NULL;

 if (FAILED(::CoInitialize(NULL)))
     return FALSE;

 HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);
 if( SUCCEEDED( hr ) )
 {
     cout << "Succeeded" << …
Run Code Online (Sandbox Code Playgroud)

c++ windows qt sapi header-files

9
推荐指数
2
解决办法
4万
查看次数

我在哪里可以获得活动模板库?

我以前从未使用过COM,我的任务是编写一个使用某些第三方COM对象的应用程序.如果有人能指出一些关于如何使用它们的好教程,我将不胜感激.更直接的是,我似乎没有安装活动模板库.我在网上搜索但无法弄清楚如何获得它.

atl

8
推荐指数
1
解决办法
8757
查看次数

无法打开文件atls.lib

我的硬盘中有atls.lib,但我无法将其链接到我的Visual Studio项目中.我知道atls.lib是一个ATL特定的库文件,我有所有的ATL文件/头文件库.但是,我仍然无法链接它们.

链接:致命错误LNK1104:无法打开文件'atls.lib'

任何人都可以帮助一个无助的程序员吗?

非常感谢你.

linker atl visual-c++-2008-express

5
推荐指数
4
解决办法
2万
查看次数

致命错误 C1083:无法打开包含文件:“atlbase.h”Pyinsane 包

因此,从此处下载 pyinsane 2.0.2 软件包并进入命令窗口后,我运行了该setup.py build命令。但每次我运行它时,都会出现致命错误 C1083:

rawapi.cpp
src/pyinsane2/wia/rawapi.cpp(8): fatal error C 1083: Cannot open include file: 
'atlbase.h': 
no such file or directory 
error: command 'C\\Program Files (x86)\\Microsoft Visual Studio\\
Visual Studio\\VC\\Tools\\MSVC\\14.12.25827\\bin\\
HostX86\\x86\\cl.exe' failed with exit status 2
Run Code Online (Sandbox Code Playgroud)

我知道这个问题以前曾多次以类似的方式被问过,但它们都不是关于我正在处理的 pyinsane 包或 atlbase.h 文件。如果我只是没有找到正确的问题,那么我将不胜感激。

是的,我已经尝试过使用,#include <atlbase>但它给了我同样的错误。我在 Windows 8.1 上使用 python 3.6.3 和 MC VS 2017。

c++ python visual-studio pyinsane

1
推荐指数
1
解决办法
5104
查看次数