vcshare.net 发表于 2008-3-19 11:24:00

[求助]ARX2007,Save成功了,Close那死机了

<p>ARX2007,Save成功了,Close那死机了<br/>具体代码如下:<br/>CAcadDocument cadDocument(pDisp);<br/>cadDocument.Save();<br/>VARIANT SaveChanges ;<br/>SaveChanges.vt = VT_BOOL ;<br/>SaveChanges.boolVal = FALSE ;<br/>VARIANT FileName&nbsp; ;<br/>FileName.vt = VT_BSTR ;<br/>CString str = cadDocument.get_Name(); <br/>FileName.bstrVal = str.AllocSysString();<br/>cadDocument.Close(SaveChanges,FileName);<br/>我目标关闭当前文档<br/></p>
页: [1]
查看完整版本: [求助]ARX2007,Save成功了,Close那死机了