Board index » cppbuilder » I have a Variant - I need a TVariant
Hardee & Jua
![]() CBuilder Developer |
Fri, 12 Sep 2003 05:12:40 GMT
I have a Variant - I need a TVariant
Hello,
I am trying to use an imported ActiveX using the method where I use a I create a Variant using CreateOleObject and set some properties. Then Variant param, ds; param = CreateOleObject("MapX.ODBCQueryInfo.3"); param.OlePropertySet( "SqlQuery", "select * from USA" ); ds = Map1->Datasets->Add( miDataSetODBC, param ); // line 38 The compile fails with the messages: [C++ Error] MainForm.cpp(38): E2015 Ambiguity between '_fastcall [C++ Error] MainForm.cpp(38): E2342 Type mismatch in parameter [C++ Error] MainForm.cpp(38): E2015 Ambiguity between '_fastcall I don't really understand these errors (except the second one). Is I may have completely misunderstood how I'm supposed to work with this Thanks in advance Hardee Mahoney |