Using Custom .dll files - where do they go?
-
I have created a .dll file to manage data with an sql server. I want to build a new windows app that uses that .dll 2 Questions: 1. Where does the .dll file go? In the same directory as my project? 2. When I include the file, is it just like I define other classes? Using namespace.class;
-
I have created a .dll file to manage data with an sql server. I want to build a new windows app that uses that .dll 2 Questions: 1. Where does the .dll file go? In the same directory as my project? 2. When I include the file, is it just like I define other classes? Using namespace.class;
Assuming you are using Visual Studio.NET, open the solution explorer and right click on the "references" folder, select the "Add reference" menu choice, then click the browse button. Browse to your .DLL file, and click "OK". That will add a reference to your .DLL to the project. From there, just add a line at the top of your source file like this: "using mynamespace;" Martin Cook Who needs cyberspace when you have CP space? :)
-
I have created a .dll file to manage data with an sql server. I want to build a new windows app that uses that .dll 2 Questions: 1. Where does the .dll file go? In the same directory as my project? 2. When I include the file, is it just like I define other classes? Using namespace.class;
Thank you , .. as for .NET classes, they should automatically reference .. is this correct? I had a problem where I created an app that would not run on another system which didn't have VS.NET installed. It was an XP Pro box with .NET1.1 installed.
-
Thank you , .. as for .NET classes, they should automatically reference .. is this correct? I had a problem where I created an app that would not run on another system which didn't have VS.NET installed. It was an XP Pro box with .NET1.1 installed.
I had a problem where I created an app that would not run on another system which didn't have VS.NET installed. As long as the target machine has the .NET framework installed, you should be good to go. Ensure that the framework version on the target machine is the same as the one you compiled your application to.
-
I have created a .dll file to manage data with an sql server. I want to build a new windows app that uses that .dll 2 Questions: 1. Where does the .dll file go? In the same directory as my project? 2. When I include the file, is it just like I define other classes? Using namespace.class;
hi, This is very similar to a problem i had faced some time back. Here is how i dealt with it (i assume you are working with Visual Studio .NET )- 1: I created a blank Visual Studio .NET 'solution'. 2: I added added two 'projects' into that 'solution'. The projects CLIENT was a web-application and DATACONNECTIVITY was a class library. 3: The DATACONNECTIVITY project was built to a DLL. 4: I then added the reference of the DATACONNECTIVITY's dll to my CLIENT project. (Alternately you can copy this dll into CLIENT's debug folder). 5: Now compile and build CLIENT. hope this helps. Regards, Mithun.