in reply to Win32::OLE objects
Hi
I ran your code and added the following:
the Reference is null, and the last error is:sub LogInit{ my $appname = $_[0]; my $module = $_[1]; my $apploglevel = $_[2]; $LogObj = Win32::OLE->new('LOGGERHELPER.UILogHelp'); print "Ref is ", ref $LogObj, "\n"; print Win32::OLE->LastError(), "\n" unless ($LogObj); $Log0bj->{LogLevel} = $apploglevel; $Log0bj->{AppName} = $appname; $Log0bj->{Module} = $module; Win32::MsgBox('my log is "'.$LogObj.'"'); return $LogObj;
Perhaps you need to import the LOGGERHELPER.UILogHelp constants in the Win32::OLE call? - jRef is Win32::OLE(0.1702) error 0x800401f3: "Invalid class string" Can't call method "LogMessage" on unblessed reference at CLUILogger.pm + line 42.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Win32::OLE objects
by anselmomh (Initiate) on May 06, 2005 at 19:37 UTC | |
by jimbojones (Friar) on May 06, 2005 at 19:43 UTC | |
by anselmomh (Initiate) on May 06, 2005 at 20:09 UTC |
In Section
Seekers of Perl Wisdom