c++ - 从 Windows 注册表下载类型化库

标签 c++ visual-studio registry

我正在尝试开发与使用华硕 Aura SDK(可在此处下载 https://www.asus.com/campaign/aura/uk/AURA-ready.php)的 native C++ 程序的 Node.js 连接。

在手册中,说:

The #import does the similar effect as #include, except that it gets the type information from the "Type Libraries" (reside in the Windows Registry) instead of header files. The GUID F1AA5209-5217-4B82-BA7E-A68198999AFA in the directive is the Lib ID of "AuraServiceLib", where the AURA SDK can be found.

我需要这个用于 x86_64 的库,但我不知道它是否可用(我相信是的,因为 x64 中有一些示例)。

有什么方法可以从 Windows 注册表中探索这些库吗?我如何检查该库是否有 x64 版本?

谢谢!

最佳答案

除非他们正在做一些与正常情况截然不同的事情,否则实际的类型库不会存储在注册表中,只是对 tlb 文件在文件系统中所在位置的引用。

要检查 SDK 安装 TLB 的位置,打开 regedit.exe 并转到 HKEY_CLASSES -> TypeLib -> {F1AA5209-5217-4B82-BA7E-A68198999AFA} -> -> 0 并检查“win64” key 。很可能是“1.0”,如果有这样的 win64 key ,默认值将是类型库文件的路径。

关于c++ - 从 Windows 注册表下载类型化库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57485047/

相关文章:

c# - C#'s operators' 操作顺序

registry - 卸载 BIDS 2008

powershell - 在 powershell 中创建多个(子)注册表项

c++ - clang ASTContext.getParents 总是返回一个空列表

c++ - 如何将数据存储在 C++ 可执行文件的资源部分?

c++ - 在 Visual Studio 中预启动时启动外部程序

visual-studio - 如何在 Visual Studio 中显示调用堆栈、立即数和其他隐藏窗口

c# - 在 Visual Studio 扩展中使用 DTE2 界面接收测试运行开始/完成

visual-studio - PEM_read_bio_X509(有时)失败(OpenSSL 1.0.1p)

c++ - 如果计算机在 sleep 模式下突然断电,系统注册表的状态?