Click here to Skip to main content
15,920,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Which one is better to implement; a class or a .dll file

For example:- if I want to write some lengthy functions, which will be used by many forms of my project.

So my question is that, whether i should create a .dll file and include its refernce in my project

or

i should write those lengthy functions in a class in my project itself.

Which is better in regards of code complexity; performance; debugging and processing.
Posted

I personally do like a class within my project more than a referenced dll. Mostly because debugging feels smoother.

But there are cases when a dll is more appropriate. Especially if you're using it in several projects/project maps.
 
Share this answer
 
i think it is better to use dll though dll is also based on class but it will provide a lot of other features as well
Class VS DLL[^]
 
Share this answer
 
Check these threads

Class vs. DLL[^]
DLL vs Class[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900