Cross-Language classes problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Meganutter
    New Member
    • Mar 2009
    • 47

    Cross-Language classes problem

    Hello all,

    Due to some Typing Complications Using C# i am forced to use some VB.NET code to get some data. i will describe the problem as good as i can

    I have an object from a dll (3rd party, non editable, Probably VB) lets call that A
    A has a few properties, one of them is Read only (COM)Object B

    B is shown in my tooltip when i hover above it that its a (COM)Object of type B
    Object explorer shows:
    object B { get; }
    Member of <dllname>.A
    in the old code i was told to rewrite (VB to C#) i see:
    Code:
    A.B.LoadXml(strXML)
    however C# tells me B does not have a LoadXml.

    What do i need to do to get the data loaded into B with LoadXml?

    Thanks in advance
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Does Class B a method or property called LoadXml?

    If it's a property then you have to assign it to LoadXML.
    EG:
    Code:
    A.B.LoadXML = strXML;
    If it's a method,does it accept 1 parameter?

    In your Object Viewer could you please copy the method/property declaration for the LoadXML property/method so that I can see it?

    Comment

    • Meganutter
      New Member
      • Mar 2009
      • 47

      #3
      *edit*
      just went to get more info about the project
      seems like i dont need to rewrite the core which makes this unnecessary. thank you for your time

      Comment

      Working...