in reply to Re: Re: RE (tilly) 1: Win32::OLE
in thread Win32::OLE
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: RE (tilly) 1: Win32::OLE
by ff (Hermit) on Feb 23, 2005 at 17:18 UTC | |
| [reply] [d/l] [select] |
by tilly (Archbishop) on Feb 24, 2005 at 23:44 UTC | |
As for being in the dark about that message, I already told you what it means. It means that emptyenum was defined twice (probably in different modules and then exported to the same one). If the two values are the same, then the error is harmless. If the values are different, you have a real problem. (It probably is harmless.) I'd personally start tracking the error down by looking at C:/Perl/site/lib/Win32/OLE/Const.pm. | [reply] |
by ff (Hermit) on Feb 25, 2005 at 15:38 UTC | |
Update: I reposted this note in its own thread and received a solution at Re: 'emptyenum' error w/ use Win32::OLE::Const 'Microsoft Word' To recap: I'm getting a series of 15 messages like:
The warnings do seem to be harmless because my program is creating the Word documents that I want via templates. My problems are: While you did say that emptyenum was being run more than once, that didn't do much for me because I couldn't see anywhere where it WAS being run. I couldn't find it in Const.pm nor in my own code. However, I did pull out my handy-dandy OLE browser that comes with ActiveState's perl and noticed that # Type Library Browser for wdCharacterCaseHID shows emptyenum Now there's zillions of little pieces of stuff that is investigatable (?) about MS Word with that tool and it was mostly a shot in the dark that elicited that nugget. But not a total shot, as relevant lines from my code include:
which is what made me check out the properties of wdCharacterCaseHID. Now, that nugget may be totally irrelevant whereupon I'm exhibiting my cluelessness about what to do. Some cluck commands that I embedded into Const.pm also give some results that puzzle me. When the code above runs (the code is in a sub called 'word_subs.pl' in a package called 'ws'), cluck tells me:
Line 120 is the line in 'word_subs.pl' above that invokes Const.pm. However, when my main program gets around to invoking a different sub ('out_subs.pl' from a different package 'email_out'), and that sub has lines including:
then cluck tells me:
and in this case cluck's output seems to properly notify that the Const.pm module was being invoked from line 1027 of out_subs.pl (the line with the <Microsoft Outlook> string). The fact of no complaints from the Outlook stuff would seem to say that emptyenum is being used strangely within Word.... | [reply] [d/l] [select] |