From: Masaki Suketa Date: 2009-09-11T02:08:45+09:00 Subject: Re: Ruby + COM + OLEGEN Hello, At 09/10/2009 11:17 PM, Bruno Antunes wrote: >> I have this TLB, and when I run OLEGEN >> (\doc\ruby\ruby-1.8.6\sample\win32ole) I obtain a file that is either >> incomplete or I'm missing something. It only generates only 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? When I >> import the same TLB into VisualStudio, I get a DLL with 3 instantiable >> classes (AcdAutomationServer, AcdEvent and AcdObject). Is this a >> limitation of OLEGEN? OLEGEN is for early binding and not tested well. Direct Instantiating object from class made by OLEGEN is not stable. Do you know how to instantiate object from these classes in VBScript? For example, in VBScript: Set acdEvent = CreateObject("ABC.XYZ") then in Win32OLE: acdEvent = WIN32OLE.new("ABC.XYZ") Regards, Masaki Suketa