void CCreateEnity::CreateDoc(void *pData) { AcApDocument* pDoc = acDocManager->curDocument(); if (acDocManager->isApplicationContext()) { acDocManager->appContextNewDocument((const ACHAR *)pData); } else acutPrintf(L"\nERROR To Create Doc!\n"); }
static ACHAR pData[] =L"acad.dwt"; acDocManager->executeInApplicationContext(CreateDoc,(void *)pData);
为甚麽执行会出错? error C3867: 'CCreateEnity::CreateDoc': function call missing argument list; use '&CCreateEnity::CreateDoc' to create a pointer to member 网上例子很多?错在哪了? 各位大侠帮帮忙?快疯掉了~ |