COM object IDictionary interface

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • greg

    #1

    COM object IDictionary interface

    Hi

    I use a COM object to interface with domain search from SRS
    and it returns:

    SRSPLUSLib.SrsC lass srs = new SRSPLUSLib.SrsC lass();

    srs.Startup();

    SRSPLUSLib.IDic tionary dic = srs.DomainInfo( domain,tld);



    They say it is Scripting.Dicti onary object

    +++++++++++++++ +++++++++++++++ +++++++++

    Now in VB sample they use dic.Item["DOMAIN STATUS"]

    but in c# this does not work

    I am not very good in COM interface

    in intellisence i see Items returns object, I dont know how to cast it

    HOW do I get MY Items like "DOMAIN STATUS"



    HELP!!!!!!!!!!! !


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: COM object IDictionary interface

    greg,

    It appears that you are using an IDictionary interface that is defined
    in SRSPLUSLib, not the one from .NET. Can you give the definition of the
    interface? Without knowing the members on that interface, it is impossible
    to tell (although there should be some sort of method/property where you can
    get at this kind of stuff).


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "greg" <gregl@insaucti onNOSPAM.com> wrote in message
    news:%23UxwSB4r DHA.3468@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > Hi
    >
    > I use a COM object to interface with domain search from SRS
    > and it returns:
    >
    > SRSPLUSLib.SrsC lass srs = new SRSPLUSLib.SrsC lass();
    >
    > srs.Startup();
    >
    > SRSPLUSLib.IDic tionary dic = srs.DomainInfo( domain,tld);
    >
    >
    >
    > They say it is Scripting.Dicti onary object
    >
    > +++++++++++++++ +++++++++++++++ +++++++++
    >
    > Now in VB sample they use dic.Item["DOMAIN STATUS"]
    >
    > but in c# this does not work
    >
    > I am not very good in COM interface
    >
    > in intellisence i see Items returns object, I dont know how to cast it
    >
    > HOW do I get MY Items like "DOMAIN STATUS"
    >
    >
    >
    > HELP!!!!!!!!!!! !
    >
    >[/color]


    Comment

    Working...