I am using Perl 5 build 522, NT4 SP6.
I have been trying to run a Windows application (e.g. MIcrosoft Access 97)
from a Perl program whilst running that Perl program as a CGI application
in the browser.
All attempts to run Access from Perl in the browser have failed in some way
(usually with the creation of an inert copy of Access on the task list that
can't be removed).
The following code creates an OLE Access object which opens a database, has
a quick look at a property, closes the database and quits. From the CLI
this program runs perfectly. From the browser, however, Access crashes with
a read exception. Does anyone know why this might be?
I have also tried picking up a copy of Access using
Win32::OLE->GetActiveObject(). Again, this works fine from the CLI but does
nothing at all when running in the browser.
A colleague tried these same procedures running a copy of Perl 5.6 and got
the same results.
Does anyone have any idea what might be causing the problem here? Is it
Perl? Is it Access97? Is it IE5?
Any help would be appreciated.
Chris Humphries
P.S. Here is the sample program that ran fine from the CLI but had Access
crash when running in the browser.
#!/usr/local/bin/perl
use Win32::OLE;
# Request Access OLE object
unless ($ex = Win32::OLE->new('Access.Application'))
{print "\n\nError"; exit;}
# Open a database (I know it exists - this works from the CLI)
$ex->OpenCurrentDatabase("/tmp/logtest.mdb");
# Have a look at some property to prove it's working
$CurrentUser = $ex->CurrentUser();
print "CurrentUser = $CurrentUser\n";
# Finish
$ex->CloseCurrentDatabase();
$ex->Quit();
exit;
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl