//-------------------------Macro--------------------------------------------//
#define OPENOBJ_BEGIN(Ent, OpenMode, ClassName, VariableName) {\ XDbObject tObj(Ent, OpenMode); \ClassName *VariableName=!tObj? NULL: ClassName::cast(tObj.m_pObject);
#define OPENOBJ_END() }
And I have sent the cpp file to http://www.wholetomato.com/support/contact.asp .
Regards