acdbGetObjectId() function's fails when checking for return value - it returns like as the return value wouldn't Acad::eOk, its int value however is 0 i.e. Acad::eOk. What's wrong?
if((es =acdbGetObjectId(oID, ent1))!= Acad::eOk);//doesn't work!
acutPrintf(_T("\nError nr (Acad::ErrorStatus enum): %u."), es);//es= i.e. Acad::eOk, bug??
acedSSFree(ssname);//must free selection set
It is returning Acad::eOk, but you probably got confused because you have an unwanted semicolon at the end of the line containing your if statement.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.