mso.dll 和 msoutl.olb 的路径变量
我正在尝试为 Microsoft Outlook 开发一个工具栏。为了让它工作,我需要 mso.dll 和 msoutl.olb 作为导入。 我的问题是:路径是硬编码的,但它因每个操作系统而异,当然如果有人没有将 Office 安装到默认路径。
我尝试了这种方式
http://support.microsoft.com/kb/234788/ en-us/
但它不起作用,因为我无法获得我需要的返回值(好吧,经过四次类型转换,但我认为必须有更好的方法;))
感谢您的帮助
I'm trying to develop a toolbar for Microsoft Outlook. For getting it to work I need mso.dll and msoutl.olb as an import.
My problem is: the path is hardcoded , but it varies for every OS and of course if someone doesn't install Office to the default path.
I tried it this way
http://support.microsoft.com/kb/234788/en-us/
but it didn't work, because I couldn't get the return value I needed (OK, after four type conversions but I thought there had to be a better way ;) )
Thanks for helping
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MSO.DLL 的路径存储在 Office 2007 的以下注册表项下:
安装路径也位于此注册表项下:
The path to MSO.DLL is stored under the following registry key for Office 2007:
The install path is also under this key: