Using TExcelApplication (Borland C++ Builder)

Dmitry_
Dmitry_ used Ask the Experts™
on
I try use TExcelApplication with TOpenPictureDialog.

When I put TExcelApplication and TOpenPictureDialog on the form and compile,
I got the following errors:

[C++ Error] ExtDlgs.hpp (32): E2015 Ambiguity between 'Dialogs' and
'Excel_2k::Dialogs'
[C++ Error] ExtDlgs.hpp(34): E2015 Ambiguity between 'Dialogs' and
'Excel_2k::Dialogs'
[C++ Error] ExtDlgs.hpp(40): E2015 Ambiguity between 'Buttons' and
'Excel_2k::Buttons'

The error appears in C++ Builder 5 and 6.

The same error occurred when I try use TExcelApplication with Richedit98,
Elpack components (www.eldos.org).

How can I solve this problem?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
somewhere u have something like
using namespace Excel_2k;
that will cause a collision between the two Dialogs
Change the order of includes in your *.h file, put

#include "Excel_2k_SRVR.h"

after

#include <Dialogs.hpp>

The problem lies in the way Borland has created its headers.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial