Page 1 of 1

E2015 Ambiguity between 'GUID'

Posted: Tue Dec 20, 2022 11:23 am
by Lion85
Hi,
Hi, I am putting WebView into my project. When I try to start it mi in debug, it gives me the following error:
[bcc32 Error] E2015 Ambiguity between 'GUID' and 'Uwvtypelibrary::GUID'.
did this happen to you guys as well?

Re: E2015 Ambiguity between 'GUID'

Posted: Tue Dec 20, 2022 1:37 pm
by salvadordf
Hi,

I don't have a C++ builder license and I can't test the component in that IDE.
Please, edit the uWVTypeLibrary.pas file and disable this line :

Code: Select all

GUID = __MIDL___MIDL_itf_webview2_0005_0001_0001;
Let me know if there are more build errors.

Re: E2015 Ambiguity between 'GUID'

Posted: Tue Dec 20, 2022 4:37 pm
by Lion85
I finally solved it; it was as simple as that.
Even removing that line there didn't solve it.
Then in Projects->Options->Conditional Defines I added

Code: Select all

NO_USING_NAMESPACE_UWVTYPELIBRARY
so that I specify GUID that I need to use to avoid the conflict.
I hope this will help other users.

PS.I take this opportunity to thank you so much for the lib you created!