我正在尝试开发与使用华硕 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 GUIDF1AA5209-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/