DLL Collection references
I’m sure that this is such an elementary question that only a novice VB code-cutter would ask it but I’ve got a problem that’s giving me serious grief! Incidentally, I am a novice VB code-cutter so be gentle with me!!!
I’ve built a .DLL that defines a “Public” Collection in the Declarations section of a Class module:
Public myCollection As New Collection
The collection is populated and referenced by the calling .EXE – everything OK.
I’ve subsequently added, to the .DLL, a form comprising text boxes and command buttons. I need to give the form’s event processor “Subs” access to the collection – abject miserable failure!
For some reason, no doubt a very basic one, every method that I've tried to provide a reference to the collection object from the Form module has failed. Initially, I thought that because it is declared as “Public” that all Subs/Functions in the .DLL project would have access to it. Apparently this is not so!
Can anyone end my suffering - Please!
manassas