Make OLE calls is giving STAThreadAttribute exceptions, how

前端 未结 0 1733
名媛妹妹
名媛妹妹 2021-01-06 07:09

Before making OLE calls, you need to set the current thread to Single Thread Apartment (STA) mode. Make sure that the Main function is marked with STAThreadAttr

相关标签:
回答
  • 消灭零回复
提交回复
热议问题