TheSwamp

Code Red => ARX Programming => Topic started by: xys1995 on March 15, 2011, 10:59:01 PM

Title: some question with AcAxObjectRefPtr
Post by: xys1995 on March 15, 2011, 10:59:01 PM
I created a custom object,I want get the object's property, but when I use the IOPMProper​tyExpander​ class,
AcAcObjectRefPtr<myobj> myObj(&m_objRef, AcDb::kForRead);
if(myObj.openStatus!=acad::eOk)
     return E_ACCESSDENIED;
I debug this return,the object is not open,Why? help me!