Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
How to add dll file in Project.I have tried the below process but it is not working:
Right ckicking Solution Explorer->add->Reference
selecting the dll file in my system.

Regards
Balamurugan
Posted
Comments
Jibesh 2-Jan-13 6:31am    
what type of dll you are trying to add? a C++ or COM dll?
Balamurugan1989 2-Jan-13 6:33am    
CRXLAT32.DLL
Jibesh 2-Jan-13 6:52am    
I think you are trying to load a unmanaged version of Crystal Report dll in to managed (C#) project. I believe you can get .Net version of crystal report extensions. Please check that.

You cannot add a unmanaged (C++ Dll) into your Managed (C#) project.
Hetal Jariwala 2-Jan-13 6:37am    
It may be com component

 
Share this answer
 
Hi,

You are doing the right way to add the reference library. if you are using DLL of the windows code then you should use DLLImport instead of adding reference.

Lest us know if it is not working, also post the error message if any.

Best luck,
 
Share this answer
 
If you are using third party dll then you need to register that dll first.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 30-Jul-13 19:26pm    
Not true.
—SA

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