How to make a dll library only accessible by a certain exe project?

pisceswzh

Well-known member
Joined
Mar 19, 2007
Messages
96
Programming Experience
1-3
Hi,

I am trying to pack certain feature, which includes some windows forms and modules, into a dll library and when I want to use these forms or modules, I just use the exe project to call the library.

The problem is if I want my exe project be able to call, say, a subroutine in the dll file, I have to make that subroutine Public Shared and this will lead to any other .net projects, if they are using VS, they can be able to call the subroutine and I don't want that happen.

Therefore, is there a way to prevent other users that are accessible to my dll libraries from using them in their own projects?

Thanks in advance.
 
Back
Top