I want to check if the value of "AcDbAttribute->tag()" is equal to the "ACHAR" string that i gived or not. however the operator"==" don`t work. blow is the code that i write:
AcDbAttribute* pAttribute = nullptr;
ACHAR *tagatt=_T("TagName");
pref->openAttribute(pAttribute, attrId, AcDb::kForWrite);
if(tagatt==pAttribute->tag())
{
acutPrintf(_T("blockref 8888exit"));
}
else
{
acutPrintf(_T("blockref 666exit"));
}
;
this part it`ll output: "blockref 666exit"