How to add reference of a dll in a Visual Studio Project
-
Hi , I have created a .DLL in one solution and I am trying to use that .dll in another solution. In Visual Studio 2010 if I want to use same .DLL in the same Solution in which it was created , then I can do "Add->References->Configuratio~->Project" But when I try to use this .DLL in another solution I cannt see .DLL in the "Project" tab. How can I add reference to dll which is in another solution. MSDN shows the way for adding references of dll only for those which are in same solution.
-
Hi , I have created a .DLL in one solution and I am trying to use that .dll in another solution. In Visual Studio 2010 if I want to use same .DLL in the same Solution in which it was created , then I can do "Add->References->Configuratio~->Project" But when I try to use this .DLL in another solution I cannt see .DLL in the "Project" tab. How can I add reference to dll which is in another solution. MSDN shows the way for adding references of dll only for those which are in same solution.
Hi, You can add the existing project to your solution and then add the lib of that dll project in linker options of the project you want add a reference. Hope this helps Nitheesh Nitheesh George http://www.simpletools.co.in
-
Hi , I have created a .DLL in one solution and I am trying to use that .dll in another solution. In Visual Studio 2010 if I want to use same .DLL in the same Solution in which it was created , then I can do "Add->References->Configuratio~->Project" But when I try to use this .DLL in another solution I cannt see .DLL in the "Project" tab. How can I add reference to dll which is in another solution. MSDN shows the way for adding references of dll only for those which are in same solution.
Use the Browse tab and add the reference from the folder of the other solution.
«_Superman_» _I love work. It gives me something to do between weekends.
-
Use the Browse tab and add the reference from the folder of the other solution.
«_Superman_» _I love work. It gives me something to do between weekends.
-
For unmanaged C++ projects, you add a DLL reference as mentioned by Nitheesh George. Open
Project -> Properties -> Configuration Properties -> Linker -> Input
. Enter the name of the LIB file corresponding to the DLL in theAdditional Dependencies
text box.«_Superman_» _I love work. It gives me something to do between weekends.
-
In addition to what Superman said, be sure that the DLL is in the library search path used by Windows so it can be found when your program runs.
I must get a clever new signature for 2011.