virtual void dwgFileOpened(AcDbDatabase*pDb, ACHAR* fileName)
{
#ifdef _WIN64
CONTEXT con;
RtlCaptureContext(&con);
#else
#endif
if(pDb->isEMR())
{
#ifdef _WIN64
int iOff=GetEmrOff(con.Rip);
#else
typedef bool (AcDbDatabase::*FunEmr)()const;
FunEmr *pFun= &(&AcDbDatabase::isEMR);
int iOff=GetEmrOff(*((int*)((int*) pFun )));
#endif
Data *pData=reinterpret_cast(pDb);
char *cVal=reinterpret_cast(pData->m_pData);
int*iVal=(int*)&(cVal[iOff]);
1