打赏

在线程中启用Com组件最优方法

        var thread = new Thread(ThreadDo);//ThreadDo是调用COM组件的方法
        thread.SetApartmentState(ApartmentState.STA);
    thread.IsBackgound=True; thread.Start();

posted @ 2019-08-04 08:26  DanielXiaoyc  阅读(315)  评论(0)    收藏  举报