title
Products            Buy            Support Forum            Professional            About            Codec Central
 

R13: .ReadIDTag failing in Csharp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisjj
    dBpoweramp Enthusiast
    • Nov 2008
    • 296

    R13: .ReadIDTag failing in Csharp

    Has anyone here managed to get .ReadIDTag to work from Csharp? Not me.

    http://www.dbpoweramp.com/developer-scripting-dmc.htm says
    Read ID Tag from File: .ReadIDTag ([in] BSTR File, [in] long Index, [out] BSTR *pTagElement, [out] BSTR *pTagValue )
    but e.g.

    Code:
     dMC.ReadIDTagElementValue(file, i, ref val);
    gives

    Code:
    N on-invocable member 'DMCSCRIPTINGLib.IConverter.ReadIDTagElementValue' cannot be used like a method.
    Workaround: .ReadIDTagElementValue
  • chrisjj
    dBpoweramp Enthusiast
    • Nov 2008
    • 296

    #2
    Re: R13: .ReadIDTag failing in Csharp

    Oops, sorry, my error - I had overlooked the interface definition's [retval]. So the fix is:

    value = dMC.get_ReadIDTagElementValue("", 1);

    Comment

    Working...

    ]]>