DLL cannot see Main Module
Posted on 2006-07-23
Hi, this question is worth 300 points and they will be awarded to the individual that provides the best answer to my question.
I have an application that I've been working on for some time now (many Forms). My colleague has also been working on other parts of this application and we're now at the stage of meshing it all together into one App. Everything has worked fine thus far, except for the following problem described below:
I have a Main Module in my application that I call "modGlobalModule.vb". I declare Public variables in that main module, which are used throughout the application. When I added one of my colleague's Forms to my part of the application, his Form cannot see my Main Module or the global variables therein. I can see his Form, since I added a reference to it, and it runs OK, but I cannot add a reference back to my Main Module from his Form, so that it can see the global variables I need his Form to see. The reason I cannot do that is because my Project is not a DLL, its an EXE.
How do I get his Forms, that will all be added as DLLs into my part of the application, to see my Main Module and the global variables therein?