When is it a good idea to make a DLL file

So, I have searched stack for a similar question, without finding anything.
So tell me if this is a duplicate.

What my question is as described in the title.

When is it a good idea to make a .dll file.

For instance, whenever I start on a new project, I notice that in many cases I have to re-write the samesimilar code over again, especially when it come to database connections, opening, closing, running queries and readingwriting files.

Is it good practice to create a dll for such small tasks, or could it lead to bigger problems?

Any suggestions on when to create dll files would be appreciated. Thanks.

Source: dll

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.