Bug #3263: dl/cparser.rb error trying to use Windows COM method of "IApplication::Login"
http://redmine.ruby-lang.org/issues/show/3263

Author: Mike Brown
Status: Open, Priority: Normal
ruby -v: 1.9.1-p376

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


----------------------------------------
http://redmine.ruby-lang.org