Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi dears...
I want my c# app , ability to create custom DLL for self user.
now , How to create custom DLL with app in c# windows form?
plz help me!
Tanks.
Posted
Updated 1-Feb-14 5:46am
v5
Comments
Sergey Alexandrovich Kryukov 29-Jan-14 1:51am    
What, are there non-custom DLL? :-)
—SA

1 solution

In .NET, essentially, there are no DLLs or non-DLLs, there are just assemblies and modules. Modules are real artifacts created as a result of the build, they are PE files: http://en.wikipedia.org/wiki/Portable_Executable[^].

And .EXE or .DLL is no more then the part of the names. When you use application type "Object Library", the .DLL file is created, otherwise it is an .EXE file, which must have an entry point (Main). That's basically all. The .EXE file can be used exactly as a .DLL: referenced by other assemblies or loaded during run-time. The library is just the assembly without the entry point, not more not less.

To set this application type with Visual Studio, see project properties, very first tab ("Application"). The bare C# compiler has appropriate command-line options; run it to see.

—SA
 
Share this answer
 
Comments
Mujtaba20 29-Jan-14 2:02am    
Tanks man.
Sergey Alexandrovich Kryukov 29-Jan-14 3:30am    
Sure. Will you except the answer formally (green "Accept" button)?
—SA

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