WDSQUERY in .NET 2.0 ->

Hi there,

i was just wondering if search was supported in 2.0 and beyond as i seem to get a QueryInterface Exception when instantiating the Search class from 2.0.

kind regards,

Andrew


Answer this question

WDSQUERY in .NET 2.0 ->

  • hey answer plz i got a problem..

    Were you trying to use the interop DLL that shipped in the SDK beta

    It was built for .NET 1.1 - you'll have to use tlbimp to generate an interop DLL that works with .NET 2.0.

  • Stoked

    i think your on the right track there, i always assumed the interop DLL was more than tlbexp and an PIA; was expecting a 2.0 PIA.

    if that isnt the case then i expect your solution to work, thanks.



  • GEEEO

    I found some compile warnings about Marshaling so im assume it wasnt going to happen for that interop library versionSmile

    So i've made a custom ATL project to call WDS via COM directly which seems to work nicely. Maybe i should publish my wrapper but im hoping you guys to before me.

  • biriktirici

    The WDS APIs are unmanaged COM interfaces.  So all you need to do is use tlbimp (not tlbexp) to import the TLB to generate an interop DLL.

    Unfortunately we don't provide a PIA at this time (mostly because the API is still beta and likely to change).



  • WDSQUERY in .NET 2.0 ->