[求助]executeInApplicationContext为什么报错
<p>void CCreateEnity::CreateDoc(void *pData) <br/>{ </p><p><br/> AcApDocument* pDoc = acDocManager->curDocument(); <br/> if (acDocManager->isApplicationContext())<br/> { <br/> acDocManager->appContextNewDocument((const ACHAR *)pData); <br/> } <br/> else <br/> acutPrintf(L"\nERROR To Create Doc!\n"); <br/>}</p><p><font color="#e61a1a">static ACHAR pData[] =L"acad.dwt"; <br/> acDocManager->executeInApplicationContext(CreateDoc,(void *)pData);</font></p><p>为甚麽执行会出错?</p><p>error C3867: 'CCreateEnity::CreateDoc': function call missing argument list; use '&CCreateEnity::CreateDoc' to create a pointer to member</p><p>网上例子很多?错在哪了?</p><p>各位大侠帮帮忙?快疯掉了~</p><p></p> 我发现,如果把CreateDoc(void *pData)函数放到全局函数执行不会报错,为甚麽在添加的类就编译不了呢?
页:
[1]