in reply to Still More help needed with Win32::OLE project.

Is Init the only method you need to call on this object? What if you press forward and ignore that Init doesn't seem to work? (Perhaps it was called implicitly upon object creation.)

--Solo
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.

Replies are listed 'Best First'.
Re^2: Still More help needed with Win32::OLE project.
by wa4otj (Beadle) on Jun 15, 2004 at 15:33 UTC
    Actually, I need to call several functions. The Init is just the first in the process. I have been working from the hypothesis that the manufacturers instructions (and their VB examples) that claim the call to Init() is necessary before calling any other functions are correct. Still, it's a good thought. I will try that.

    Nathan

    Update: Tried it. No dice.

    my $c = $HALi->{Modes}=Count();

    fails with undefined subroutine. Of course, I may be calling it wrongly too. I will keep experimenting.

    Nathan

      my $c = $HALi->{Modes}->Count(); # ^^
      is what you are looking for, I believe--or at least the right way to call the Count method on the Modes collection.

      --Solo
      --
      You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.