[bcc32 Error] MicroStationDGN_OCX.h(2159): E2347 Parameter mismatch in write access specifier of property Vertex
-------------------------------------------
[MicroStationDGN_OCX.h]
void __fastcall set_Vertex(int Index/*[in]*/, Microstationdgn_tlb::Point3d* pVal/*[in,out]*/);
__property Microstationdgn_tlb::Point3d Vertex[int Index]={ read=get_Vertex, write=set_Vertex };
[MicroStationDGN_OCX.cpp]
void __fastcall TEllipseElement::set_Vertex(int Index/*[in]*/,
Microstationdgn_tlb::Point3d* pVal/*[in,out]*/)
{
GetDefaultInterface()->set_Vertex(Index/*[in]*/, pVal/*[in,out]*/);
}
--------------------------------------- Solution -----------------------------------------------------------------
[MicroStationDGN_OCX.h]
void __fastcall set_Vertex(int Index/*[in]*/, Microstationdgn_tlb::Point3d& pVal/*[in,out]*/);
[MicroStationDGN_OCX.cpp]
void __fastcall TEllipseElement::set_Vertex(int Index/*[in]*/,
Microstationdgn_tlb::Point3d& pVal/*[in,out]*/)
{
GetDefaultInterface()->set_Vertex(Index/*[in]*/, &pVal/*[in,out]*/);
}
---------------------- Explain ----
Parameter type of set_ function should be the same as the type of the Property.
Today, Bentley Motors are as yet a preeminent extravagance vehicle marque and speak to high caliber in present day motoring. used car dealerships near me
ReplyDelete