将箭头指向部分替换为编译器报错的内容即可。
参考文章:https://www.experts-exchange.com/questions/28238490/C-help-needed-Current-thread-must-be-set-to-single-thread-apartment-STA-mode-before-OLE-calls-can-be-made.html