Posted by : Sudhir Chekuri Saturday, 9 January 2016

About dll

  • dll stands for "Dynamic Link Library".
  • It is an assembly.
  • It is a supportable file.
  • It is also known as "deployed namespace", which is a collection of classes.
  • Namespaces are used in .exe files by adding them as references.
  • Namespaces are imported using the keyword "using".

Creating dll

  • Open File click on "New project".
  • Under visual C# select "Windows",in that select "class Library" ,give a name as "techminds"and click on ok.
  • Then,the namespace is created with the name "techminds".
  • Write code in it ie., a static class with a public method.
  • Next build "build solution" in menu or press F6 to create a dll file.
  • Then check for the location where it is stored.
  • Open your project in file explorer. dll file will be create in the bin/debug folder in your project folder.

Steps to create exe file

  • Open File from to click on"New project".
  • Under visual C# select "windows", In that select "Console application", give name as "techmindsexe" and click on ok.
  • Then, write the code and add reference to that by following the below steps.

Steps to add Reference

  • Right click on "references" folder in "solution explorer".
  • click on "add reference".
  • click on "browse".
  • Browse the .dll file and click on ok,then the dll name will be added in the reference list.
Now we can add it as a namespace using the keyword "using".

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Followers

Total Pageviews

Powered by Blogger.

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -