Referring to other classes in the same DLL
Posted on 1998-08-05
I am a VB student with the following problem:
I have a standard project with a standard startup module (StartModule).
I have a DLL(DLLA) with two classes (ClassA and ClassB).
StartModule has instantiated examples of both ClassA and ClassB. I want ClassA to be able to
call ClassB via the instance of ClassB started by StartModule.
I have got this far:
public ExampleA as new ClassA
set exampleA.objparent = me
DLLA:ClassA (and ClassB)
public objparent as ?????????? what
I can't say "public objparent as StartModule" because VB wont recognise that. StartModule is not a class and it is in a separate project.
(I was thinking of referring to ClassB from ClassA as "Startmodule.ClassB")
In essence I am trying to get one class in a DLL to call another class in the same DLL. But as they are separate instances I am not sure how to do it.
I would be most grateful for a solution with code examples.