C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how can i make a dll file in visual studio 05? Posted by minhnguyena7 on 3 Jun 2007 at 9:52 PM
After created a simple project in C# .NET( with 1 single class ) and would like to reuse it in VB .NET i played around with Visual Studio 05 for hours to find out "how can i make a DLL files to reuse in other language". I am sure i dont know how to add some dll module into my C# project either. Some advise please.
Report
Re: how can i make a dll file in visual studio 05? Posted by Ribbleton on 4 Jun 2007 at 8:43 AM
: After created a simple project in C# .NET( with 1 single class ) and
: would like to reuse it in VB .NET i played around with Visual Studio
: 05 for hours to find out "how can i make a DLL files to reuse in
: other language". I am sure i dont know how to add some dll module
: into my C# project either. Some advise please.

1. Create a new class library project
2. Create classes and code
3. complie Project
4. Dll Created

5. Create a new project
6. Click on Add Reference
7. Navigate to the class library folder
8. Go into the debug folder or whatever and include

remember you will prob have to include the namespace. in the new project.

Think thats right - someone correct me if im wrong

*Ribbleton_
Report
Re: how can i make a dll file in visual studio 05? Posted by minhnguyena7 on 4 Jun 2007 at 8:37 PM
: : After created a simple project in C# .NET( with 1 single class ) and
: : would like to reuse it in VB .NET i played around with Visual Studio
: : 05 for hours to find out "how can i make a DLL files to reuse in
: : other language". I am sure i dont know how to add some dll module
: : into my C# project either. Some advise please.
:
: 1. Create a new class library project
: 2. Create classes and code
: 3. complie Project
: 4. Dll Created
:
: 5. Create a new project
: 6. Click on Add Reference
: 7. Navigate to the class library folder
: 8. Go into the debug folder or whatever and include
:
: remember you will prob have to include the namespace. in the new
: project.
:

THank you very much. So we have to copy ( or move the code ) to an other class library to compile to dll files. This way work pretty good. Howerver, we cant compile it directly from working project. Is there anyway i can compile only 1 C# file to become a dll file?

For example, if I work with a C# project and make a class in 1 .cs file. Then i want to make that file (only) to become a DLL file without building an other class library project. Is it posible to do it in visual studio 05 ?

By the way, when i reuse a dll file, do i have to copy that dll file to my working project, or i just need to browse to the file and compile it ?

Report
Re: how can i make a dll file in visual studio 05? Posted by Ribbleton on 6 Jun 2007 at 10:00 AM
: : : After created a simple project in C# .NET( with 1 single class ) and
: : : would like to reuse it in VB .NET i played around with Visual Studio
: : : 05 for hours to find out "how can i make a DLL files to reuse in
: : : other language". I am sure i dont know how to add some dll module
: : : into my C# project either. Some advise please.
: :
: : 1. Create a new class library project
: : 2. Create classes and code
: : 3. complie Project
: : 4. Dll Created
: :
: : 5. Create a new project
: : 6. Click on Add Reference
: : 7. Navigate to the class library folder
: : 8. Go into the debug folder or whatever and include
: :
: : remember you will prob have to include the namespace. in the new
: : project.
: :
:
: THank you very much. So we have to copy ( or move the code ) to an
: other class library to compile to dll files. This way work pretty
: good. Howerver, we cant compile it directly from working project.
: Is there anyway i can compile only 1 C# file to become a dll file?
:
: For example, if I work with a C# project and make a class in 1 .cs
: file. Then i want to make that file (only) to become a DLL file
: without building an other class library project. Is it posible to
: do it in visual studio 05 ?
:
: By the way, when i reuse a dll file, do i have to copy that dll file
: to my working project, or i just need to browse to the file and
: compile it ?
:
:
If you want a dll of one class then just add one class to a project and compile it. Not you have a understanding of Dll's and class libraries search google for N-Tier Development.

*Ribbleton_




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.