Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Delphi 在C++ Builder中使用TESTABDEWB_Delphi_C++builder_C++builder 10.3 Rio_Tembeddedwb - Fatal编程技术网

Delphi 在C++ Builder中使用TESTABDEWB

Delphi 在C++ Builder中使用TESTABDEWB,delphi,c++builder,c++builder-10.3-rio,tembeddedwb,Delphi,C++builder,C++builder 10.3 Rio,Tembeddedwb,我使用TembededWB为RAD Studio Rio 10.3.3从 我只是将嵌入的WB组件放到表单上并编译。它在Delphi中编译得很好。在C++ Builder中有一个错误: [bcc32c错误]EWB.IEConst.hpp101:预期的不合格id 在EWB.IEConst.hpp文件中,这种情况发生在以下行中: static const System::Int8 BINDSTATUS_SERVER_MIMETYPEAVAILABLE = System::Int8(0x36); sta

我使用TembededWB为RAD Studio Rio 10.3.3从

我只是将嵌入的WB组件放到表单上并编译。它在Delphi中编译得很好。在C++ Builder中有一个错误:

[bcc32c错误]EWB.IEConst.hpp101:预期的不合格id

在EWB.IEConst.hpp文件中,这种情况发生在以下行中:

static const System::Int8 BINDSTATUS_SERVER_MIMETYPEAVAILABLE = System::Int8(0x36);
static const System::Int8 BINDSTATUS_SNIFFED_CLASSIDAVAILABLE = System::Int8(0x37);
static const System::Int8 BINDSTATUS_64BIT_PROGRESS = System::Int8(0x38);
#define VER_NUM L" 14.70.0"
extern DELPHI_PACKAGE System::UnicodeString _MaskedChars;
static const int ADDRESS_NOT_VALID = int(0x7ffbfe1c);
#define ASS_MESS L"Please assign a WebBrowser before using this feature."
static const System::Int8 CACHEGROUP_ATTRIBUTE_BASIC = System::Int8(0x1);
错误出现在最后一行CACHEGROUP_ATTRIBUTE_BASIC。我不明白为什么上面的代码会触发错误,因为上面还有一堆静态常量System::Int8,它们是编译的


你知道这里有什么问题吗?

正如@RemyLebeau所指出的,WinInet.h和其他标题中先前定义的常量存在冲突。我已经更新了这些更改,使C++的Builder程序员更容易编译和使用这个组件。< /P>检查CaCeGROPGIAtEtEXBASIC是否已经使用定义宏更早声明。如果是这样,则该宏的内容将替换EWB.IEConst.hpp中的CACHEGROUP_ATTRIBUTE_BASIC,从而创建一个无效声明。@RemyLebeau谢谢,这确实是问题所在,与WinInet.h和其他头冲突。