DLLs - Creating
-
How do I create a DLL with C# I have searched google and codeproject, but they both find articles that just say "DLL" once in the article(that is what i cearch engine does). Thanks for any and all help!
-
How do I create a DLL with C# I have searched google and codeproject, but they both find articles that just say "DLL" once in the article(that is what i cearch engine does). Thanks for any and all help!
In the project property either use class library or use the class library template while opening a new project.
-
How do I create a DLL with C# I have searched google and codeproject, but they both find articles that just say "DLL" once in the article(that is what i cearch engine does). Thanks for any and all help!
Create a Class Library project. This will create a .NET Framework Assembly though. C#, or any other Managed language, can't make a .DLL that exports library functions like C++ can. The .NET Framework doesn't support C-style exports. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Create a Class Library project. This will create a .NET Framework Assembly though. C#, or any other Managed language, can't make a .DLL that exports library functions like C++ can. The .NET Framework doesn't support C-style exports. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
So how do I use the files I create, any references, and thanks that will help a lot.
-
So how do I use the files I create, any references, and thanks that will help a lot.
You Can use them by adding a reference to your DLL. Thanks and Regards Pani
-
So how do I use the files I create, any references, and thanks that will help a lot.
There are two ways that your class library can be used: 1) The 'safest' way is to create your class library project/solution, write your code, compile it as a dll, then copy that into the /obj directory of any project that will use it. Then add reference, browse to the obj directory and add a using statement for your library namespace. 2) You add the class library project to the solution that will consume your project. This is only best if this is the only solution that would use that class library. In this method you would do an Add Reference, click the Project tab, then select your class library project and add it. It is highly suggested that you modify your AssemblyInfo.cs file and make the version number something like "1.0.0". This way you control the version number of your dll with each release. Otherwise you create a new copy of your dll even if it is a minor implementation change. There are 10 kinds of people in the world.
Those that read binary...
...and those who don't. -
You Can use them by adding a reference to your DLL. Thanks and Regards Pani
Yes, the project will create a .dll file when being referenced.