<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
hi all,<br>
&nbsp;&nbsp;&nbsp; we have a problem with a project after updating it to IPy 2.6.1. We
need to use a COM library; we add the reference in VS which creates the
interop.XXX file. In IPy v1.1 we could access the imported types
directly, like <br>
<br>
<font size="2"><font color="#000000"><font face="Arial">LN_AclEntry =
LN_dbACL.GetEntry(entryName)<br>
<br>
</font></font><font face="Arial"><font color="#0000ff">if</font><font
 color="#000000"> (LN_AclEntry == None):<br>
&nbsp; DebugMessage(</font><font color="#800000">"%s entry does not exist in
database: %s"</font><font color="#000000"> %(entryName, databaseName))<br>
</font><font color="#0000ff">else</font><font color="#000000">:<br>
</font><font color="#0000ff">&nbsp; if</font><font color="#000000">
(LN_AclEntry.Level &gt;= ACLLEVEL.ACLLEVEL_DESIGNER):</font></font></font><br>
&nbsp;&nbsp;&nbsp; ...<br>
<br>
the important line here is the last one: in IPy 1.1, LN_AclEntry is an
instance of LN_AclEntry {Domino.NotesACLEntryClass}. In IPy 2.6.1, this
same variable is of type <font size="2"><font color="#000000"><font
 face="Arial">LN_AclEntry {System.__ComObject}.<br>
<br>
This means we can't access Level property and compare with ACLLEVEL
enumeration.<br>
<br>
Is there something we can do to get v1.1 behaviour back? If not, can we
cast somehow the object to the correct type?<br>
<br>
Thanks in advance,<br>
<br>
Ernesto Cullen<br>
<br>
</font></font></font>
</body>
</html>