Ezguy Posted May 4, 2004 Posted May 4, 2004 Hi, Can anyone tell me how to create a dll in c# using visual studio is there any options to do that. thanks in advance Quote www.itfriend.com [ get connected with your IT friends]
Arch4ngel Posted May 4, 2004 Posted May 4, 2004 Make a Library Project... Add some stuff (class, forms or whatever you want). And build it. N.B.: You can't execute DLL directly (just like double-clicking on it). You'll have to make an Windows Application Project or an ASP.NET one... and add a reference to your dll (in cases of class, forms or other things). You can also make derived control and store them under a dll. You'll have to go by the toolbox to add them. More precision ? Let me know. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Administrators PlausiblyDamp Posted May 4, 2004 Administrators Posted May 4, 2004 Also the standard version of VS.Net doesn't allow you to create classlibrary projects, however have a look at this thread and that should fix your problem Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
mskeel Posted May 5, 2004 Posted May 5, 2004 and if you don't necesarily trust components off the web from , you could always compile it by hand using the command line C# compiler, csc.exe. Just put it in your path and you can get help via the command line. csc -? I believe. Quote
mskeel Posted May 5, 2004 Posted May 5, 2004 And antoher thing you might try that I have not but looks like it could work is to modify the project in a standard text editor by hand. I would open the *.vbproj file (not the user prefs...) and change the line OutputType = "WinExe" (or whatever type it might be) in the settins section to read OutputType = "Library" Getting a copy of a *.vbproj for a library somebody made in Enterprise edition and loading it into standard will Definately do it. It seems all the functionality is there, but becuase you didn't pay...you don't get to use. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.