Project

General

Profile

Actions

Backport #3263

closed

dl/cparser.rb error trying to use Windows COM method of "IApplication::Login"

Added by nworbekim (Mike Brown) almost 14 years ago. Updated over 4 years ago.

Status:
Closed
[ruby-core:30112]

Description

=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 `'

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

Actions

Also available in: Atom PDF

Like0
Like0Like0