[IronPython] Help with unrar.dll in ironpython

Haibo Luo haiboluo at exchange.microsoft.com
Sun Oct 14 23:33:57 CEST 2007

Ronny, are you running your script with alpha 4? Seems alpha 4 and 5 (unfortunately) had regression on this scenario.

Could you try the alpha 3 binaries? I expect it should work.


From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Ronny Stiftel
Sent: Saturday, October 13, 2007 4:38 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Help with unrar.dll in ironpython

set_OpenMode(1) wont work
and i understand why, but i dunno how to solve it cause its from an imported dll
On 10/12/07, Dino Viehland < dinov at exchange.microsoft.com<mailto:dinov at exchange.microsoft.com>> wrote:

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> [mailto: 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<mailto: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


Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>

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

More information about the Ironpython-users mailing list