access class dll members

I wrote a Class Library DLL. To check it I wrote a Windows app and referenced the DLL. I wrote "dim obj as new Class" which found the class ok. But I can't get any members by obj.

I can see the members in Class View.

I can take out the reference to Class and just add in the existing Class.vp and I can get the members from it. How come I can't do this with the DLL This is my first time to try this. Thanks for any help.



Answer this question

access class dll members

  • gsl3

    I figured it out! I had to use WJH in the root when I created the DLL and then use "Dim obj as new WJH.Class" in my test program. When I went back and made the special root name in the DLL, the system coached me for the right name in the Dim statement. Pretty cool.


  • LionelG

    Ensure that the Class is Public as well as the members.

    Public Class Foo

    ...

    Public Property

    ...

    End Property

    End Class


  • Upul-uj

    It is. I've been reading more and there is stuff about namespaces, etc. Is there more to do in the code that uses the DLL than just setting a reference to the DLL
  • access class dll members