Social Media And Global Computing Creating DLLs with Visual Studio
Creating Stand-alone Components Classes can be compiled and stored as a dynamic link library (DLL) instead of into the EXE file type Create a Class Library application The name of the DLL will be the same as the Namespace, and in addition you create a class and one or more methods in the DLL. Use Build instead of Run to create the DLL file. It will be located inside the Debug folder inside the Bin folder inside your Application’s folder.
Creating Stand-alone Components
Creating Stand-alone Components
Creating Stand-alone Components
Creating Stand-alone Components
Right-Click on References Add a Reference to a DLL Right-Click on References Then select Add Reference
Use Browse Tab to locate DLL Add a Reference to a DLL Use Browse Tab to locate DLL
It is listed in your References Add a Reference to a DLL Select Your DLL Then It is listed in your References
Using a DLL in your Application DLL components can be reused with many different applications Two Steps Add a reference to the DLL components Include a ‘using’ statement with the namespace Then declare an objects of the component type(s) Use members of the referenced classes in the Library. For Example: using NameOfDLL; . . . NameOfClass myObj = new NameOfClass(); string dblString = myObj.NameOfMethod ( someValue );