Presentation is loading. Please wait.

Presentation is loading. Please wait.

Social Media And Global Computing Creating DLLs with Visual Studio

Similar presentations


Presentation on theme: "Social Media And Global Computing Creating DLLs with Visual Studio"— Presentation transcript:

1 Social Media And Global Computing Creating DLLs with Visual Studio

2 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.

3 Creating Stand-alone Components

4 Creating Stand-alone Components

5 Creating Stand-alone Components

6 Creating Stand-alone Components

7 Right-Click on References
Add a Reference to a DLL Right-Click on References Then select Add Reference

8 Use Browse Tab to locate DLL
Add a Reference to a DLL Use Browse Tab to locate DLL

9 It is listed in your References
Add a Reference to a DLL Select Your DLL Then It is listed in your References

10 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 );


Download ppt "Social Media And Global Computing Creating DLLs with Visual Studio"

Similar presentations


Ads by Google