using multiple class libraries

T

TF

I am developing a Windows Application in VB.NET that is using two
class libraries CL_A (contains class A) & CL_B (contains class B).
Also CL_A is used in CL_B.

Now in my application when i try to set a variable, declared in CL_B,
of type CL_A.A to another variable, declared in application, of same
type CL_A.A it gives me following error though both types are same.

error BC30311: Value of type 'CL_A.A' cannot be converted to 'CL_A.A'

Code looks like this:

class library CL_A:
--------------------

public class A
public m_x as String
end class

class library CL_B: (class library CL_A is added in reference)
--------------------------------------------------------------

public class B
public m_a as CL_A.A
end class

Now when i try to set the member of class 'B' to an instance of
'CL_A.A' in following code it gives an error at compilation.

Code from Windows Application: (class libraries CL_A and CL_B are
added in reference)
--------------------------------------------------------

dim a1 as new CL_A.A()
dim b1 as new CL_B.B()

b1.m_a = a1

Any help???

Thanks
 
T

TF

I got the problem. Reference of CL_A added to CL_B had differect path
than the one added to the application .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top