var thread = new Thread(ThreadDo);//ThreadDo是调用COM组件的方法
thread.SetApartmentState(ApartmentState.STA);
thread.IsBackgound=True;
thread.Start();
在线程中启用Com组件最优方法
猜你喜欢
转载自www.cnblogs.com/xiaoyichong/p/11297147.html
今日推荐
周排行