set_OpenMode(1) wont work<br>and i understand why, but i dunno how to solve it cause its from an imported dll<br><br><div><span class="gmail_quote">On 10/12/07, <b class="gmail_sendername">Dino Viehland</b> &lt;<a href="mailto:dinov@exchange.microsoft.com">
dinov@exchange.microsoft.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">See <a href="http://channel9.msdn.com/wiki/default.aspx/IronPython.ValueTypes" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://channel9.msdn.com/wiki/default.aspx/IronPython.ValueTypes
</a>
for an explanation of why you can't update value types.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">You might be able to call archiveData.set_OpenMode(1) after
creating it though.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
users-bounces@lists.ironpython.com</a>] <b>On
Behalf Of </b>Ronny Stiftel<br>
<b>Sent:</b> Thursday, October 11, 2007 12:15 PM<br>
<b>To:</b> <a href="mailto:users@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users@lists.ironpython.com</a><br>
<b>Subject:</b> [IronPython] Help with unrar.dll in ironpython</span></p>

</div><div><span class="e" id="q_115917c17503d6ed_1">

<p>&nbsp;</p>

<p style="margin-bottom: 12pt;">Hi i am kinda new to ironpython
and tried to use unrar in a project.<br>
Since i was unable to directly import it i made a .net wrapper dll (see
attachment generate.py), works quite well only problem left now is:<br>
<br>
&gt;&gt; archiveData = unrar.RAROpenArchiveDataEx(OpenMode=1)<br>
ValueError: Attempt to update field &#39;OpenMode&#39; on value type
&#39;RAROpenArchiveDataEx&#39;; value type fields cannot be directly modified<br>
<br>
guess there is an easy way to solve it, any help would be appreciated <br>
<br>
regards<br>
ronny<br>
<br>
</p>

</span></div></div>

</div>


<br>_______________________________________________<br>Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br><br></blockquote></div><br>