[All]
Namespace Conflict between TOpenDialog and Word_2k::Dialogs in C++ Builder
Abstract: Namespace Conflict between TOpenDialog and Word_2k::Dialogs in C++ Builder
Product: Borland C++ Builder
Version: 6.0, 2006
Issue:
In a C++ application (bcb 6 or 2006 reproduced) when adding a TWordApplication and a component from ComCtrls(i.e. TrichEdit)� to your form, you will get a compilation error :"C++ Error ComCtrls.hpp(2638);E2015 AmbiguityBetween 'Windows' and 'Word_2k::windows'.
Resolution:
Edit your unit.h file and move #include"WORD_2K_SERVR.h"anywhere after #include<ComCtrls.hpp>
The application will then compile properly