简体   繁体   English

在 C++ Builder 中使用 TEmbeddedWB

[英]Using TEmbeddedWB in C++ Builder

I am having little difficulty compiling a test app using TEmbeddedWB for RAD Studio Rio 10.3.3 from https://github.com/7even11/Delphi-EmbeddedWB我从https://github.com/7even11/Delphi-EmbeddedWB使用TEmbeddedWB for RAD Studio Rio 10.3.3 编译测试应用程序几乎没有困难

I just drop the a EmbeddedWB component on the form and compile.我只是将 EmbeddedWB 组件放在表单上并进行编译。 It compiles fine in Delphi.它在 Delphi 中编译得很好。 In C++ Builder there is an error:在 C++ Builder 中有一个错误:

[bcc32c Error] EWB.IEConst.hpp(101): expected unqualified-id [bcc32c 错误] EWB.IEConst.hpp(101): 预期的不合格 ID

In EWB.IEConst.hpp file this happens in following lines: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);

The error is at the last line ( CACHEGROUP_ATTRIBUTE_BASIC ).错误在最后一行( CACHEGROUP_ATTRIBUTE_BASIC )。 I don't see anything why the above would trigger an error as there is a bunch of static const System::Int8 above as well and they compile.我不明白为什么上面会触发错误,因为上面还有一堆static const System::Int8并且它们可以编译。

Any ideas what's the problem here?任何想法这里有什么问题?

As noted by @RemyLebeau there was a conflict with previously defined constants in WinInet.h and other headers.正如@RemyLebeau 所指出的,与之前在WinInet.h和其他标头中定义的常量存在冲突。 I've updated the changes on https://github.com/7even11/Delphi-EmbeddedWB to make it easier for C++ Builder programmers to compile and use the component.我已经更新了https://github.com/7even11/Delphi-EmbeddedWB上的更改,以使 C++ Builder 程序员更容易编译和使用该组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM