簡體   English   中英

在 C++ Builder 中使用 TEmbeddedWB

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM