关闭OLE服务器 [英] Shutting Down OLE Server

查看:214
本文介绍了关闭OLE服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过将RTF从剪贴板复制到临时文件,将RTF documnet嵌入到我的文档中。然后,我从临时文件中创建OLE项。在WinXP / Word2003设置中,我可以删除临时文件。现在使用Win7(x64)/ Word 2007我不能删除临时文件,因为Word不会放弃它。



我怎么能强迫一个从OLE服务器断开连接和/或直接关闭服务器的对象?

I''m embedding an RTF documnet into my document by copying RTF from the clipboard to a tempfile. I then create the OLE item from the temporary file. In a WinXP/Word2003 setup, I was then able to delete the temporary file. Now with Win7(x64)/Word 2007 I can''t delete the temporary file because Word won''t let go of it.

How can I force an object to disconnect from the OLE server and/or shut down the server directly?

推荐答案

您必须正确清理OLE对象。从启动开始反向执行所有步骤。



我猜你打开一个文件,操纵它并需要关闭。用一个可见的窗口运行OLE代码,这样你就可以看到你做了什么......
you must clean up your OLE object properly. Do all steps from startup in reverse.

I guess you opened an file, manipulated it and need to close is. Run the OLE code with i a visible window, so you see what you have done...


这篇关于关闭OLE服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆