outlook addin中的多进程 [英] multi process in outlook addin

查看:87
本文介绍了outlook addin中的多进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试为Outlook 2010创建一个插件,

I am trying to create a plugin for Outlook 2010,


所以我试图通过多线程(多进程)实现这一点,

So I am trying to achieve this by multithreading(multi processes),


请建议Outlook 2010中多线程的范围,安全性以及Outlook 2010中多线程的最佳实践。

Please suggest what is the scope of multithreading in Outlook 2010 and how much its safe and also the best practices regarding multithreading in Outlook 2010.


感谢Adv

Thanks In Adv


Arun。

Arun.

推荐答案

COM加载项必须使用STA(单线程单元)模型。 您可以在加载项中使用多个线程,但只能从Outlook的UI线程调用Outlook对象模型的接口。 
COM add-ins must use the STA (Single Threaded Apartment) model.  You can use multiple threads in your add-in but the Outlook Object Model's interfaces must only be called from Outlook's UI thread. 


这篇关于outlook addin中的多进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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