Page 1 of 1
Error: Ambiguity between TTypeKind and Activex::TTypeKind.
Posted: Mon 26 May 2008 17:50
by w0wbagger
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
Posted: Tue 27 May 2008 09:48
by Dimon
We could not reproduce the problem. Please send a complete small sample to dmitryg*crlab*com to demonstrate it.
Posted: Mon 30 Jan 2012 21:58
by the_bachelor1982
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
Posted: Tue 31 Jan 2012 09:07
by AndreyZ
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.
Posted: Tue 31 Jan 2012 10:40
by the_bachelor1982
...that work's now. Thank you so much for your help.
best regards,
Maik
Posted: Tue 31 Jan 2012 12:26
by AndreyZ
It's good to see that the problem has been solved. If any other questions come up, please contact us.