Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am trying to separate my App into 4 parts...

Status
Not open for further replies.

maverick

MIS
Apr 21, 1999
193
0
0
US
I have the main application and I added 3 new projects to the solution,
I added them as DLL's so I can compile and update them separately, but my Proj2 DLL can't see variables or procedures in the Main App...

Any ideas what I'm missing ?
I think it's a scope issue but not quite sure how to fix it.

Thanks,
Mav
 
You need to add a reference to the main app in your Proj2 DLL in order to get at the variables and procedures that are in the main app.
 
Better is to pass any variables needed in either a function or property call. If you are going through the time to do them as separate DLL's then you should keep how they work separate.

-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
I solved the issue by setting properties in Proj2 and calling to set those onload because I felt as Sorwen does, that DLL's should be a single complete entity, I guess my problem was more that I couldn't remember if the was the right way to do it...

Thanks so much guys!
Mav
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top