Project

General

Profile

Actions

Bug #2079

closed

win32ole's OLEGEN does not create all classes needed when a TLB has more than one class defined

Added by sardaukar (Bruno Antunes) over 14 years ago. Updated about 13 years ago.

Status:
Closed
ruby -v:
1.9.1
[ruby-core:25511]

Description

=begin
Hello.

If this is not a Ruby issue, I apologize, but I thought it would be best to contact the people responsible for Win32OLE, so here goes.

I have this TLB, and when I run OLEGEN (\doc\ruby\ruby-1.9.1\sample\win32ole) I obtain a file that is either incomplete or I'm missing something. It only generates one class and 5 modules. If so, how can I run, for example, AcdEvent's Connect() method since there's no class to instantiate AcdEvent objects?

Please help if you can, with either a patch to OLEGEN or some other way to achieve this result.

I have attached to this issue the TLB file in question, the generated (by OLEGEN) source file and a screen shot of Reflector's output of the DLL contents after importing the TLB into a Visual Studio project.

Thank you!
=end


Files

Ccs.tlb (5.06 KB) Ccs.tlb The TLB file sardaukar (Bruno Antunes), 09/10/2009 11:06 PM
ccs19.rb (10 KB) ccs19.rb generated proxy class sardaukar (Bruno Antunes), 09/10/2009 11:06 PM
reflect.PNG (6.3 KB) reflect.PNG RedGate Reflector.net output sardaukar (Bruno Antunes), 09/10/2009 11:06 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0