Bug Report Q446680
Visible to All Users

In C++Builder, the "Ambiguity between 'Vcl::Imglist::TImageIndex' and 'System::Uitypes::TImageIndex'" error occurs when handling the OnGetNodeImageIndex event

created 12 years ago

After moving from Builder 2009 to XE3 I get the following error

[bcc32 Error] Unit1.h(1211): E2015 Ambiguity between 'Vcl::Imglist::TImageIndex' and 'System::Uitypes::TImageIndex'

on line

void __fastcall TLGetNodeImageIndex(TcxCustomTreeList *Sender, TcxTreeListNode *ANode, TcxTreeListImageIndexType AIndexType, TImageIndex &AIndex);

Any ideas?

Thanks.

Comments (3)
DevExpress Support Team 12 years ago

    I am afraid this information is not enough to answer you precisely why this happens. Would you please provide us with a sample project to demonstrate the issue and steps to get this exception? We will examine it and do our best to find a solution.

      Just dropped a DBTreeList onto a form and added an event handler

        Any response on this? I took the trouble to provide a sample project so an answer would be appreciated.

        Answers

        created 12 years ago (modified 12 years ago)

        Hello Paul,
        Thank you for your message. I have managed to reproduce this problem. I am forwarding this issue to our developers for further processing.
        You will receive an automatic message once the status of this issue is changed.

          Show previous comments (10)

            … like I suggested 7 days ago without any response. ;-)

              Thanks for the update
              I had initially tried using 'System::Uitypes::TImageIndex' which is the error message displayed by XE3 but when either the form designer is invoked or when the IDE is first started I got an error "Incorrect method declaration in class TForm1" just using 'Uitypes::TImageIndex' solves the problem.

                One more idea: Maybe you can put something like "using Uitypes::TImageIndex" below all the #include's to avoid changing every occurrence of TImageIndex inside the units.

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.