"Cannot convert type to Array" error in DLL
Posted: Wed 23 May 2012 14:36
Helo.
ODAC v6.9.0 d10pro+BDS2006+WinXP
My code:
TOraObject *OraGeometry;
TOraArray *OraInf;
InitOCI();
OraGeometry = qQuery->GetObject( geomColumn );
int gtype = OraGeometry->AttrAsInteger["sdo_gtype"];
OraInf = OraGeometry->AttrAsArray["sdo_elem_info"]; <-- Error
During executing that code, I have got this error: "Cannot convert type to Array".
Compilation is ok. When I compile this code to standard exe file - everything works fine. The error appears only when I compile to DLL file.
Please tell me what I'm doing wrong.
ODAC v6.9.0 d10pro+BDS2006+WinXP
My code:
TOraObject *OraGeometry;
TOraArray *OraInf;
InitOCI();
OraGeometry = qQuery->GetObject( geomColumn );
int gtype = OraGeometry->AttrAsInteger["sdo_gtype"];
OraInf = OraGeometry->AttrAsArray["sdo_elem_info"]; <-- Error
During executing that code, I have got this error: "Cannot convert type to Array".
Compilation is ok. When I compile this code to standard exe file - everything works fine. The error appears only when I compile to DLL file.
Please tell me what I'm doing wrong.