【问题标题】:You must copy ATL files from an earlier version of BDS [$(BDS)\include\atl\*.*] to use ATL?您必须从早期版本的 BDS [$(BDS)\include\atl\*.*] 复制 ATL 文件才能使用 ATL?
【发布时间】:2015-11-09 20:09:42
【问题描述】:

我正在使用 embarcadero C++ XE8 32 位。当我包含以下文件时:

#include<ATLBASE.h>
#include<UTILCLS.h>
#include<opcda.h>
#include<DataCallBackSink.cpp>

我收到以下错误:

[bcc32 Fatal Error] atlbase.h(5): F1003 Error directive: You must copy ATL files from an earlier version of BDS [$(BDS)\include\atl\*.*] to use ATL

当我转到文件时,我会看到以下文本:

// CBuilderXE does not include ATL files as we were unable to secure a license
// For C++ ActiveX development you can now use the DAX (Delphi ActiveX) Framework
// Alternately, you may copy the ATL files from an earlier version of C++Builder
//   $(BDS)\include\atl\*.*   --->   $(BDS)\include\windows\sdk\atl
#error You must copy ATL files from an earlier version of BDS [$(BDS)\include\atl\*.*] to use ATL

我使用名为 include\ATL*file name* 的映射将文件直接添加到我的程序中

我想,当我将这些文件复制到 \windows\sdk\atl 目录时,它会起作用,但它不会

那么之前有没有人遇到过这个错误,如果你解决了,你是怎么解决的?

【问题讨论】:

    标签: c++ atl


    【解决方案1】:

    除了包含文件,您还需要复制一个 .lib 文件。您可以从here 下载它。

    如果问题仍然存在,请确保项目选项中的搜索路径正确。

    【讨论】:

      猜你喜欢
      • 2012-12-02
      • 2010-10-19
      • 2013-05-02
      • 2014-05-13
      • 2014-05-19
      • 2011-03-03
      • 2011-01-29
      • 2011-04-28
      • 1970-01-01
      相关资源
      最近更新 更多