目录

Swift/COM

Swift/COM bridges COM interfaces to Swift by generating Swift interfaces for the COM interface.

import SwiftCOM
import WinSDK

try! CoInitializeEx(COINIT_MULTITHREADED)

if let pFD = try? IFileDialog.CreateInstance(class: CLSID_FileOpenDialog) {
  try pFD.Show(nil)
}

The current approach is to manually construct high-level interfaces to a handful of COM+ interfaces to enable reflection into the system. It would then allow for the generation of Swift bindings to the COM interface via C. These interfaces can then be wrapped for more idiomatic access.

关于
309.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号