我在ARX中用函数void OpenDxfFile(void * pData){ AcApDocument* pDoc = acDocManager->curDocument(); if (acDocManager->isApplicationContext()) { acDocManager->appContextOpenDocument((const char *)pData); } else { acutPrintf("\nERROR To Open Doc!\n"); } } void OpenDxf() { // TODO: Implement the command CString TemppData=路径+"\\文件名.dxf"; const char * pData=(LPCTSTR)TemppData; acDocManager->executeInApplicationContext(OpenDxfFile, (void *)pData); }打开指定路径指定文件名的DXF文件,但现在想建个函数关掉这个DXF文件怎么办? |