in reply to Re: Win32::OLE objects
in thread Win32::OLE objects

When all the code is in the same perl file it all works its only when i moved the logging code to a module that passing hte Win32::OLE object seems to get upset
perl file --> calls LogInit
pm file --> creates Win32::OLE object and passes back
perl file --> calls LogIT passing in the Win32::OLE object that it got back
pm file --> uses that object to pass it ARGS which logs things
so basically im not passing Win32::OLE object correctly i guess i just dont know how to fix it :(

Replies are listed 'Best First'.
Re^3: Win32::OLE objects
by jimbojones (Friar) on May 06, 2005 at 19:43 UTC
    Hi

    Right; is it possible that your 'use Win32::OLE' statement was/is different in your .pl file as opposed to the .pm file? Or had a use Win32::OLE::Const line?

    - j

      The Win32::OLE::Const line was never in the perl file and an older copy that works has the exact same lines for the creation of the object .. there must be something you have to do when passing a Win32::OLE object back and forth between a perl file and a module that im not aware of :(