hello,
(forwarding to the list)

mark pryor <[EMAIL PROTECTED]> wrote:


Jamal Mazrui <[EMAIL PROTECTED]> wrote:
A Microsoft COM server that provides TypeLib information is distributed in the file named tlbinf32.dll. It is included in various development environments and is available in an installer at
http://www.lambdasoft.dk/comet/../files/tlbinf32.exe

A help file in CHM format is available at the web page
http://support.microsoft.com/kb/224331/en-us/

I have a current version of Perl for Windows from ActiveState.com, and would like to make use of the tlbinf32 library in some scripts. After spending hours trying to instantiate the "TLI.TLIApplication" object without success, I joined this list in search of help. I have been able to create the COM object and invoke its methods with other languages, including _vbscript_, WinBatch, and AutoIt -- though not with Ruby either (and Google searches inform me that PHP and Python also have difficulty with this). My Perl script, pasted below, produces the following error message:

Win32::OLE(0.1703) error 0x80004002: "No such interface supported" at tlbinf.pl
line 8.

Jamal,

Yes, it does not work. Most, if not all of us, have wasted uncountable amounts of time running into this same brick wall. Back in Winter-2004 I wrote a small page about it and I have recently restored it to my site.

What Active State has done in place of Tlbinf32 objects is build in methods to Win32::OLE::CONST to accomplish the same things. Frankly most of these exports seem almost hidden to me, but you can find samples of their use buried here and there in modules.

see
http://www.tlviewer.org/ASTypelib

hth,
Mark Pryor
Long Beach,CA

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.


How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to