Connecting Tech Pros Worldwide Help | Site Map

Cross-Language classes problem

Member
 
Join Date: Mar 2009
Posts: 44
#1: May 6 '09
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:
Quote:
object B { get; }
Member of <dllname>.A
in the old code i was told to rewrite (VB to C#) i see:
Expand|Select|Wrap|Line Numbers
  1. 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's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#2: May 6 '09

re: Cross-Language classes problem


Does Class B a method or property called LoadXml?

If it's a property then you have to assign it to LoadXML.
EG:
Expand|Select|Wrap|Line Numbers
  1. 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?
Member
 
Join Date: Mar 2009
Posts: 44
#3: May 7 '09

re: Cross-Language classes problem


*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
Reply