Project

General

Profile

Backport #3263

Updated by jeremyevans0 (Jeremy Evans) about 1 month ago

=begin

Try to call a com entry point in dll FComApi.dll and ruby dl parser generated the following error:

C:/Ruby19/lib/ruby/1.9.1/dl/cparser.rb:55:in `parse_signature': undefined local variable or method `proto' for FComApi:Module (NameError)
from C:/Ruby19/lib/ruby/1.9.1/dl/import.rb:116:in `extern'
from E:/DSxxxxxx/xxxxxx/fortislogin.rb:33:in `<module:FComApi>'
from E:/DSxxxxxx/xxxxxx/fortislogin.rb:30:in `<main>'

Here is the relevant code from fortislogin.rb, showing lines 30 through 34.

module FComApi
extend DL::Importer
dlload 'FComApi'
extern 'long IApplication::Login(char*, char*, long)'
end

I get the same error with the one click rubyinstaller and the zip file containing the windows ruby files for 1.9.1-p376

=end

Back