$code or die has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am using ActivePerl on Win98, and trying to work out what use the provided "OLE Browser" is meant to be. It brings up 3-frames in my browser that all appear to be empty. The middle frame has some Jscript and Perlscript.
Apart from this, I can't see any mention in the ActivePerl docs that describe what this browser is meant to do or why we should open it.
Has anyone else noticed this or does it work on your computers? While I am here, a quick thanks to everyone who helped on my previous posts. Love this site!
(d4vis)Re: undef
by d4vis (Chaplain) on Oct 23, 2000 at 07:39 UTC
|
From the ActiveState HTML Help:
"The Win32::OLE distribution now contains a type library browser. It is written in PerlScript, generating dynamic HTML. It requires Internet Explorer 4.0 or later. You'll find it in browser/Browser.html. It should be available in the ActivePerl HTML help under Win32::OLE::Browser.
After selecting a library, type or member you can press F1 to call up the corresponding help file at the appropriate location.
Maybe you're using Navigator, or an older version of IE?
Either way, the OLE browser is just a way get help on the OLE type libraries.
Win32::OLE, btw, "provides an interface to OLE Automation from Perl. OLE Automation brings VisualBasic like scripting capabilities and offers powerful extensibility and the ability to control many Win32 applications from Perl scripts."
I haven't used it myself, though the OLE browser seems to work on both a win98 and win2k machine.
Hope this helps,
~d4vis the scribe
#!/usr/bin/fnord
| [reply] |
Re: undef
by Zoogie (Curate) on Oct 23, 2000 at 14:10 UTC
|
Sounds like you don't have PerlScript configured properly in Internet Explorer. Try this:
1. In RegEdit, go to the key: HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\PerlScript\1.0
2. Change the value of "EnabledZones" to "0x00000001" (enable PerlScript in all zones).
3. Back in the OLE Browser, if the interface still doesn't work, try right-clicking on the middle frame and select "Refresh". It may take a little while to load.
Hope this helps, this is what I had to do to get it to work on my system. I'm not sure why the default value for the registry key (0x00000010 - Enable for local zone) doesn't seem to work. I'd probably change the registry key back to the original value after you're done using the OLE Browser, just to be safe.
- Zoogie | [reply] |
|
Brilliant!! Thanks, that seemed to work - although I had to reboot my machine for it to load up.
I have been using OLE recently to connect to Access databases. The ADO extension of OLE seems to be really fast. I was testing Win32::ODBC and it seems to take a long time to connect to the database, whereas ADO does it in milliseconds.
Anyway, thank you very much for your help.
$code or die
| [reply] |
RE: undef
by $code or die (Deacon) on Oct 23, 2000 at 00:18 UTC
|
UPDATE: By the way, this was meant to be titled 'undef "OLE Browser"' But something uexpected happened :D | [reply] |
|