473,395 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how can i create dll in c#.net

pls help me ...

i would like to create a dll file in c#.net, how it possible? how to register the dll ?
and whats the methode to use the dll in C#.net program?


please help me


thanks
mohanlal
Oct 13 '06 #1
5 36340
Automatically whenever u crate ur project the dll i stored in ur bin directory.
In case if u need any dll to be added to ur project then follow these steps:

1. In the Solution Explorer, right click on the references and select 'Add Reference'.

2. Then Add Refernce dialog box is opened, there u need to browse the dll path and click select and then ok button.

Now the dll is added. U can make use of that.

Regards,
Usha.
Oct 16 '06 #2
bharathreddy
111 100+
hai,

In order to create your own dlls first open the VS then

1)File->New->Project->then select the Class Library template.
2)when opend u will find :

using System;
namespace ClassLibrary1
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Class1
{
public Class1()
{
//
// TODO: Add constructor logic here
}
// Write your functions properties here.
}
}

3) Build the solution. This will create the dll in the bin directory.
4) Then in order to include this dll in your project follow the steps Usha had said above.
Oct 17 '06 #3
HI
I have one slight doubt about the same. Well what if i have already created program with 5-6 classes and all . And now i want to include it to .dll file so that i could use all the classes in another application..so is there any short cut method to do so or do i hv to start a new project to the same.
thanks
rnd
Apr 26 '07 #4
Frinavale
9,735 Expert Mod 8TB
HI
I have one slight doubt about the same. Well what if i have already created program with 5-6 classes and all . And now i want to include it to .dll file so that i could use all the classes in another application..so is there any short cut method to do so or do i hv to start a new project to the same.
thanks
rnd
Has your program been compiled as a DLL?
What did you use to create your program?
If you've used Visual Studio and created these classes in a Class Library project your DLL will be created whenever you build the project.

If you haven't done this I would recommend making a new project and importing the classes into it.

-Frinny
Apr 26 '07 #5
bhar
37
Hi,

A class library is a collection of classes that are compiled into a .dll file. By converting classes into components we need not copy the source code into the projects where we need to use the components. We need to just import the component into a new project. By using components, we can reduce the size of the exe files. This is because components are precompiled and do not add up to the executable file. For those developing multiple projects, components provide scalability and performance to their applications.

Answer to you question is: Better create a Class library project and inport your class methods and properties. More over you can use namespaces in your class library files.

[Link Removed]
Apr 27 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
9
by: Peter | last post by:
Hello£¬everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the...
37
by: Steven Bethard | last post by:
The PEP below should be mostly self explanatory. I'll try to keep the most updated versions available at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
18
by: Steven Bethard | last post by:
I've updated the PEP based on a number of comments on comp.lang.python. The most updated versions are still at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
5
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
2
by: masri999 | last post by:
I have a requirement in SQL 2005 in Development database 1. Schema dbo owns all objects (tables,views,SPs,UDFs etc) . 2. Only DBA's ( who are database owners ) can create, alter tables ....
4
by: JohnnyDeep | last post by:
I am trying to create a store proc that contain a create index with the cluster option and I receive DB21034E The command was processed as an SQL statement because it was not a valid Command...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.