我正在尝试使用以下代码阅读自定义c ++ dll文件。
require 'ffi'
require 'Win32API'
module Test
extend FFI::Library
ffi_lib 'C:\Users\MyLab\Desktop\TestApi\TestAPI'
attach_function :getInformation, [] ,:string
# import, export = "0", calltype = :stdcall
# codeGen = Win32API.new("TestAPI", "getInformation", [], 'I').call()
end
puts Test.getInformation
但它会出现以下错误:
Qt: Untested Windows version 10.0 detected!
我该如何解决?有什么问题?