Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
Hi
I have a dll (for example A.dll) which references to an other dll( say B.dll), now when i use A.dll in my app, my application can also see B.dll,i want B.dll to be not reached to my app.
can any one say that how to make B.dll is only used by A.dll and should be out of reach to my app.

Thank you
Santhosh
Posted
Comments
Sergey Alexandrovich Kryukov 15-Dec-13 3:25am    
Pretty interesting question, I up-voted it and answered.
—SA

1 solution

You can make B.DLL a private assembly to A.DLL. Please see: http://msdn.microsoft.com/en-us/library/windows/desktop/ff951638(v=vs.85).aspx[^].

Before going this way, thoroughly consider all implications, pro and contra. It will be harder to support, especially if eventually you decide to use B.DLL resources elsewhere. One alternative would be joining A.DLL and B.DLL in one assembly, another one just leaving things as is and ignoring the problem.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900