Error: Ambiguity between TTypeKind and Activex::TTypeKind.

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
w0wbagger
Posts: 7
Joined: Wed 24 Aug 2005 20:23

Error: Ambiguity between TTypeKind and Activex::TTypeKind.

Post by w0wbagger » Mon 26 May 2008 17:50

I'm getting this error in CRAccess.hpp in the new version of MyDac (v5.5) when I compile my app.

Error is on line 646:

" TBooleanArray __fastcall ParseTypes(const AnsiString ObjectTypes, const AnsiString * AllTypes, const int AllTypes_Size)/* overload */;"

I'm using C++ Builder v6, and just upgraded from v5.2 to v5.5

Any ideas?

Thanks,
Ian

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 27 May 2008 09:48

We could not reproduce the problem. Please send a complete small sample to dmitryg*crlab*com to demonstrate it.

the_bachelor1982
Posts: 8
Joined: Mon 30 Jan 2012 21:48

Post by the_bachelor1982 » Mon 30 Jan 2012 21:58

I'm getting also this error in the version of MyDAC 7.1 when i compile my app.

I'm using C++ Builder 2010. Wenn i make a new Project it work's fine but with my existing project i get this error.

Have you any idea's?

best regards

Maik

AndreyZ

Post by AndreyZ » Tue 31 Jan 2012 09:07

This problem occurs because of Rave components. There is the TTypeKind type declared in the Rave components with the same name as in the ActiveX unit. C++Builder compiler somehow gets the type for the AllTypes variable (that is used for our ParseTypes method) from the RvLEDefine.hpp unit. To aviod the problem, please try the following:
- close the IDE;
- remove the following code from the %MyDAC_Install_Directory\Include%\CRAccess.hpp file:

Code: Select all

TBooleanArray __fastcall ParseTypes(const System::UnicodeString ObjectTypes, System::UnicodeString *AllTypes, const int AllTypes_Size)/* overload */;
- open the IDE and recompile your project.

the_bachelor1982
Posts: 8
Joined: Mon 30 Jan 2012 21:48

Post by the_bachelor1982 » Tue 31 Jan 2012 10:40

...that work's now. Thank you so much for your help.

best regards,

Maik

AndreyZ

Post by AndreyZ » Tue 31 Jan 2012 12:26

It's good to see that the problem has been solved. If any other questions come up, please contact us.

Post Reply