Project

General

Profile

Backport #3263

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

Added by nworbekim (Mike Brown) about 9 years ago. Updated about 8 years ago.

Status:
Assigned
Priority:
Normal
[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 methodproto' 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

History

#1

Updated by nobu (Nobuyoshi Nakada) about 9 years ago

  • Category set to lib
  • Status changed from Open to Assigned
  • Assignee set to yugui (Yuki Sonoda)

=begin
r22720
=end

Also available in: Atom PDF