[IronPython] Help with unrar.dll in ironpython

Ronny Stiftel ronny.stiftel at gmail.com
Sun Oct 14 01:38:11 CEST 2007


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> 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] *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
>
> regards
> ronny
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20071014/ec4f6079/attachment.html>


More information about the Ironpython-users mailing list