By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,984 Members | 2,832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,984 IT Pros & Developers. It's quick & easy.

using multiple class libraries

P: n/a
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???

Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
I got the problem. Reference of CL_A added to CL_B had differect path
than the one added to the application .
Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.