On Wed, 17 May 2000 13:20:08 +0100, Simon Oliver
<[EMAIL PROTECTED]> wrote:

>I need to load two typelibs but the two libraries "overlap" their constant
>definitions:
>
>use Win32::OLE::Const 'Microsoft ActiveX Data Objects 2\.\d+ Library';
>use Win32::OLE::Const 'Microsoft ADO Ext\. 2\.\d+';
>
>Which results in many errors like:
>
>"Constant subroutine adEmpty redefined at D:\Perl\ado_rset.pl line 65535."
>
>How can this be avoided? 

I would recommend to load at least one set of the constants into a hash
instead (see the Win32::OLE::Const docs about this).

-Jan

---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to