Calling a dll from .NET allpication
I have a dll supoose it is also made in C# .I have a functionality suppose adding of 2 numbers in this dll.I want to use this dll in my new application i want that from this application i give 2 numbers to dll and it gives me sum of 2 numbers .How can i do it in .NEt
Rajesh KumarPosted Apr 27, 2011, 5:12 PM
An Add Reference pop up will prompt you navigate to that dll. Browse that Dll.and add it into project
now add namespace in needed file, by using "Using" keyword
create an object of the class in which that method is defined
call the method using oject created.
pass required parameter, get the result.
Mayur GujrathiPosted Apr 27, 2011, 3:32 AM
using namespace of that dll in your form
and then call proper method or variables whatever of your dll
you just have to pass parameter of two numbers to that dll
Ankit NandekarPosted Apr 27, 2011, 3:24 AM
http://www.c-sharpcorner.com/UploadFile/cd3aa3/6877/?ArticleID=aea1b456-4b89-4fd1-855e-aead4317fa3f