Converting VB6 PropertyBag in .NET

前端 未结 3 672
自闭症患者
自闭症患者 2021-01-22 03:45

For certain file operations we use VB6\'s PropertyBag object to convert various items to a bytearray via the Content property. We then save the bytearray as part of a binary fil

3条回答
  •  情话喂你
    2021-01-22 04:02

    There is 0 support for PropertyBags in .NET. Serailisation of objects replaces the PropertyBag construct.

    So as I see it you have 2 choices.

    1. Byte the bullet and write the 10 or 20 line Interop dll.
    2. Analyse the contents of the serialised property bag and see if you can decode it and figure out the offsets of the images and streams etc.

    I know which one I'd be heading for.

提交回复
热议问题