[英]Using TEmbeddedWB in C++ Builder
我从https://github.com/7even11/Delphi-EmbeddedWB使用TEmbeddedWB
for RAD Studio Rio 10.3.3 编译测试应用程序几乎没有困难
我只是将 EmbeddedWB 组件放在表单上并进行编译。 它在 Delphi 中编译得很好。 在 C++ Builder 中有一个错误:
[bcc32c 错误] EWB.IEConst.hpp(101): 预期的不合格 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
)。 我不明白为什么上面会触发错误,因为上面还有一堆static const System::Int8
并且它们可以编译。
任何想法这里有什么问题?
正如@RemyLebeau 所指出的,与之前在WinInet.h
和其他标头中定义的常量存在冲突。 我已经更新了https://github.com/7even11/Delphi-EmbeddedWB上的更改,以使 C++ Builder 程序员更容易编译和使用该组件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.