How to create Dll file in visual studio2005.
Please help me.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prince Patel21 reputationPosted Apr 23, 2022, 4:31 AM EDT
I think this blog will help you to make dll:
Blog : https://www.thecodehubs.com/how-to-create-and-use-dlls-class-libraries-in-asp-net/
VulpesRank #55 · 29.2K reputationPosted Dec 8, 2011, 12:01 AM EST
Notice that you need to declare your classes as public if you want them to be accessible to consumers of the dll file.
Notice also that you won't be able to run the dll directly as it does not have a Main() method. You will need to create a sample exe project to test it by adding a reference to the dll file to that project.
SenthilkumarRank #387 · 6.5K reputationPosted Dec 8, 2011, 4:17 AM EST
It can have any number of classes and the methods which are defined as public will be accessed out side.
* It cannot be run Independent.
* It should be add as reference in the application or other library.
Right click the soultion >> Add new project >> select the class library.
After the logic written in the dll, right click the project and build.
This dll can be added as reference to the other class library.
The version can be added using sn (strong name) and can be added to the GAC folder.
Sam HobbsRank #107 · 20.5K reputationPosted Dec 8, 2011, 6:11 AM EST
Mahesh ChandRank #1 · 393.3K reputationPosted Dec 8, 2011, 6:35 AM EST
Also see right side listing of this post.
Sam HobbsRank #107 · 20.5K reputationPosted Dec 8, 2011, 7:02 AM EST
VulpesRank #55 · 29.2K reputationPosted Dec 9, 2011, 12:43 AM EST
If he'd been asking it under the Visual C++ category, then clarification would definitely have been needed.
Sam HobbsRank #107 · 20.5K reputationPosted Dec 9, 2011, 8:25 AM EST