dxUxTheme.hpp defines…
namespace Dxuxtheme {
typedef unsigned HTHEME;
}
and yet Windows SDK's uxtheme.h defines…
typedef HANDLE HTHEME; // handle to a section of theme data for class
resulting in [BCC32 Error] E2015 Ambiguity between 'HTHEME' and 'Dxuxtheme::HTHEME' when both headers get included in a cpp file (directly or indirectly).
I have seen the report CB5870 which describes the same problem (but in a different way).
You should fix your definition to avoid the problem and not require code hacks to work around it.
Steps to Reproduce:
Attempt to compile a C++ file with the following code in it:
#include "dxUxTheme.hpp"
#include <uxtheme.h>
static HTHEME theme;
(make sure that the two headers are available on the compiler's path or are in the same folder as the source file
Actual Results:
[BCC32 Error] E2015 Ambiguity between 'HTHEME' and 'Dxuxtheme::HTHEME'
Expected Results:
No compiler errors
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.
This has beecome a show-stopper for us and we would appreciate a fix as soon as possible.
If you can do it, simply renaming your variable to 'Dxuxtheme::dxHTHEME' would resolve the problem…
Dear Andrew,
Yes, your solution is quite correct and our developers are going to rely on it. Actually, they are in process of making the necessary changes. However, this affects almost all our products and we are also reviewing other parts of our code to prevent similar problems in the future. Thus, plenty of changes are necessary and this job requires significant time. Please bear with us. Once the report's state has been set to Fixed, we can send you a "hot" code fix. Just email a request to Support@devexpress.com.
Thanks,
Serge