IT Community - Software Programming, Web Development and Technical Support

How to create DLL file

This is a discussion on How to create DLL file within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, How can we create DLL files in Visual Studio and use it in Windows and Webapplication ? Can we use ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-03-2008, 03:23 AM
Kirubhananth Kirubhananth is offline
D-Web Programmer
 
Join Date: Feb 2008
Location: My native is Madurai but now in Chennai
Posts: 61
Kirubhananth is on a distinguished road
Send a message via AIM to Kirubhananth Send a message via Skype™ to Kirubhananth
Question How to create DLL file

Hi,
How can we create DLL files in Visual Studio and use it in Windows and Webapplication ?

Can we use a same DLL file in both the Windows and Web application?

Please help
__________________
--Kirubhaa. Born to win--
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-04-2008, 04:07 AM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 138
GDevakii is on a distinguished road
Smile Re: How to create DLL file

using UtilityMethods;

class TestCode
{
static void Main(string[] args)
{
System.Console.WriteLine("Calling methods from MathLibrary.DLL:");

if (args.Length != 2)
{
System.Console.WriteLine("Usage: TestCode <num1> <num2>");
return;
}

long num1 = long.Parse(args[0]);
long num2 = long.Parse(args[1]);

long sum = AddClass.Add(num1, num2);
long product = MultiplyClass.Multiply(num1, num2);

System.Console.WriteLine("{0} + {1} = {2}", num1, num2, sum);
System.Console.WriteLine("{0} * {1} = {2}", num1, num2, product);
}
}
/* Output (assuming 1234 and 5678 are entered as command line args):
Calling methods from MathLibrary.DLL:
1234 + 5678 = 6912
1234 * 5678 = 7006652
*/
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code-behind to create node dynamically using XML File or any Stored Procedure poornima ASP and ASP.NET Programming 3 02-14-2008 09:46 PM
How to create a Setup file in VS 2005 to start a installer from a installer file? $enthil C# Programming 2 11-16-2007 03:10 AM
How to Create a Cab file in C#? oxygen C# Programming 5 10-25-2007 01:13 AM
How to create a ZIP File in Java? bluesky Java Programming 1 07-25-2007 06:03 AM
Is it possible to create an .ini file for CEAppMgr that will disable.. theone Mobile Software Development 1 07-19-2007 01:00 AM


All times are GMT -7. The time now is 07:32 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0