Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create a dll file but i cant how to use it in another program
please help me?
thanx a lot
Posted

Add that dll in references of your project. After that you can use classes and methods of that dll in your project.
 
Share this answer
 
Comments
afshin.b.k 26-Jul-10 8:04am    
i do this but i think program should be have a using ....
nagendrathecoder 26-Jul-10 8:13am    
Ofcourse it should. :)
After adding the .dll as an reference, you need to add the namespace to your own project (using.foo.foo on the top of your document).
 
Share this answer
 
In solution Explorer right Click Project-->Add Reference--> Click Browse and browse for ur Dll File then click Ok. Now the Dll gets added to ur Project.
In order to access the any method or member varible u need to specify the NamespaceName.ClassName.methodName
 
Share this answer
 
Comments
koool.kabeer 26-Jul-10 8:28am    
Yeah This is exactly what you must do

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900