The trick is two fold. Have to add
sub New { return new packagename; }
orSet obj = CreateObject("My.ZipObject") Set objr = obj.New Set rc = objr.zipAFile("type.txt","Type.zip")
my $r = Win32::OLE->new('My.ZipObject'); print "\nZip DLL error code " . Win32::OLE->LastError(); my $oo = $r->new; my $exitcode = $oo->zipAFile("type.txt","Type.zip");
In reply to Re^2: Perl Com Ojbects
by cdlvj
in thread Perl Com Ojbects
by cdlvj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |