![writing a dll file writing a dll file](https://www.computerhope.com/jargon/d/dll.png)
So we will create the following ‘class’ for that purpose. Say, we want a C# class to store and display some info about students in a class (school. cs file that has the classes that must be stored in the dll. It actually uses a dll file to store the class that does the computation work.
#Writing a dll file how to#
Now Im gonna teach you how to create your own dll file and use it in your programs! Some might have seen the FLAMES app that I coded in C#. You can google it and find more about it yourself! Anyway, I need not explain much about the advantages of using dlls since its well documented already on the web.
![writing a dll file writing a dll file](https://cracksole.com/wp-content/uploads/2020/09/DLL-Files-Fixer1.jpg)
Using dlls also reduces the amount of space your code occipies on disk since you are sharing the same dll among many programs. And whenever your program wants the class it can just call the dll and it will be loaded runtime. For instance you can store some classes in a dll file and you can link this file to any number of programs you want. DLL files are just code files that cant run alone. I came across programming dlls when I was learning C#.NET. Most people dont realize what a dll file is and how simple it is to create and use one in their programs. And the lecturer said some stuff about DLL files. Yesterday in my college during System Software class we were learning about Dynamic Loaders.