我改成这样的
IAcadDocument IDoc,IApp; IDoc.AttachDispatch(IApp.get_ActiveDocument()); IDoc->close(vFull,vNull);
可是还是出错啊,梦幻神话高手帮我看看!!
错误是:
Compiling... XiTong.cpp F:\haohuibin\testarx\XiTong.cpp(288) : error C2039: 'get_ActiveDocument' : is not a member of 'IAcadDocument' f:\haohuibin\testarx\acad.h(5) : see declaration of 'IAcadDocument' F:\haohuibin\testarx\XiTong.cpp(289) : error C2819: type 'IAcadDocument' does not have an overloaded member 'operator ->' f:\haohuibin\testarx\acad.h(5) : see declaration of 'IAcadDocument' F:\haohuibin\testarx\XiTong.cpp(289) : error C2227: left of '->close' must point to class/struct/union F:\haohuibin\testarx\XiTong.cpp(289) : error C2065: 'vFull' : undeclared identifier F:\haohuibin\testarx\XiTong.cpp(289) : error C2065: 'vNull' : undeclared identifier Error executing cl.exe.
cadittestarx.arx - 5 error(s), 0 warning(s)