我在应用程序中有两种形式,一种是在设计时生成的,另一种是在运行时动态生成的。在运行时生成的表单中有一个上下文菜单,其中有一个项目打开FolderBrowserDialog。每当我试着点击该项目发生错误说 Current thread must be set to single thread apartment (STA) mode before OLE
calls can be mad
在阅读了关于此主题的大部分主题之后,我仍然感到困惑。 如果我使用.Net中多个线程的COM STA DLL实例,COM技术不会使用队列序列化该呼叫吗? var instance = new 3PartyComStaLib()
多个线程做 instance.doWork();
如果属实,这将是好的,唯一的代价是,这将是慢?
我正在尝试创建一个控制台或窗体,将文件拖放到它们各自的.exe上 程序将获取该文件并对其进行散列,然后将剪贴板文本设置为可靠生成的散列。 这是我的代码 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography