kibkid Posted August 30, 2004 Share Posted August 30, 2004 Hi, lets say I want to develope a tool that I would use many times and in many different programs. i would create a namespace called "kibkibtool" then i would develope the class and all the methods. my question is, when i want to use that tool in another program (proggy) i would type "using kibkibtool", what file would i have to include in the directory of proggy for the kibkidtool namespace be able to work? thanx Link to comment Share on other sites More sharing options...
0 ecstasis Posted August 30, 2004 Share Posted August 30, 2004 well, normally you would create a class library which would probably end up being called kibkibtool.dll (this is the original tool you created) and then you would add a reference to that dll in your new project Link to comment Share on other sites More sharing options...
0 kibkid Posted August 30, 2004 Author Share Posted August 30, 2004 Interesting. Sorry I'm just starting in c#. So how would you create the .dll file? Does the IDE create it while compiling or not? Link to comment Share on other sites More sharing options...
0 kibkid Posted August 30, 2004 Author Share Posted August 30, 2004 I think I got it. I think the IDE creates the .dll by itself if the class is not runnable, i.e does not have a Main() method. Link to comment Share on other sites More sharing options...
0 ecstasis Posted August 30, 2004 Share Posted August 30, 2004 you have to start a new class library project and then yes the ide makes it for you when you compile Link to comment Share on other sites More sharing options...
0 ecstasis Posted August 30, 2004 Share Posted August 30, 2004 I think I got it.I think the IDE creates the .dll by itself if the class is not runnable, i.e does not have a Main() method. heres an intro http://www.codeguru.com/Csharp/Csharp/cs_m...icle.php/c4239/ Link to comment Share on other sites More sharing options...
0 kibkid Posted August 30, 2004 Author Share Posted August 30, 2004 thanx man. Link to comment Share on other sites More sharing options...
0 Glowstick Posted August 30, 2004 Share Posted August 30, 2004 The filename can be whatever. The CLR will check all executables in your folder until it finds the stuff your code is referencing. Link to comment Share on other sites More sharing options...
Question
kibkid
Hi, lets say I want to develope a tool that I would use many times and in many different programs.
i would create a namespace called "kibkibtool" then i would develope the class and all the methods.
my question is, when i want to use that tool in another program (proggy) i would type "using kibkibtool", what
file would i have to include in the directory of proggy for the kibkidtool namespace be able to work?
thanx
Link to comment
Share on other sites
7 answers to this question
Recommended Posts