如何阅读自定义c ++ dll文件

时间:2018-05-17 08:47:48

标签: ruby winapi

我正在尝试使用以下代码阅读自定义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!

我该如何解决?有什么问题?

0 个答案:

没有答案