[IronPython] Help with unrar.dll in ironpython

Dino Viehland dinov at exchange.microsoft.com
Fri Oct 12 01:51:34 CEST 2007

See http://channel9.msdn.com/wiki/default.aspx/IronPython.ValueTypes for an explanation of why you can't update value types.

You might be able to call archiveData.set_OpenMode(1) after creating it though.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronny Stiftel
Sent: Thursday, October 11, 2007 12:15 PM
To: users at lists.ironpython.com
Subject: [IronPython] Help with unrar.dll in ironpython

Hi i am kinda new to ironpython and tried to use unrar in a project.
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:

>> archiveData = unrar.RAROpenArchiveDataEx(OpenMode=1)
ValueError: Attempt to update field 'OpenMode' on value type 'RAROpenArchiveDataEx'; value type fields cannot be directly modified

guess there is an easy way to solve it, any help would be appreciated


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20071011/e0fa4b99/attachment.html>

More information about the Ironpython-users mailing list