From: Bruno Antunes Date: 2009-09-11T23:11:16+09:00 Subject: Re: Ruby + COM + OLEGEN Masaki Suketa wrote: > 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 The problem is not creating the CCS application object - it's the only class that I can from OLEGEN's output. However, AcdEvent should also be a class and I can't instantiate any objects of that type, since OLEGEN's output only gives me a module :| Regards, Bruno Antunes -- Posted via http://www.ruby-forum.com/.