Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

E2015 Ambiguity between 'GUID'

Post Reply
Lion85
Posts: 15
Joined: Tue Dec 06, 2022 9:19 am

E2015 Ambiguity between 'GUID'

Post 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?
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: E2015 Ambiguity between 'GUID'

Post 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.
Lion85
Posts: 15
Joined: Tue Dec 06, 2022 9:19 am

Re: E2015 Ambiguity between 'GUID'

Post 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!
Post Reply