using multiple class libraries

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

    #1

    using multiple class libraries

    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
  • TF

    #2
    Re: using multiple class libraries

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

    Comment

    Working...