Possible Duplicate:
How to use c# Dll in vc++?
I have created a class in the c sharp and made the DLL of the class now i want to use the methods in the DLL file in my VC++ project.
I know how to add the .lib file in VC++ project but how to add a DLL file in VC++ project I don’t know.
I want to create the object of the class that i defined in the DLL in my VC++ project and through the object i want to access its methods.
When I tried this and I got following error:
support.microsoft.com/kb/828736 error "referenced assembly entlibcontrib.data.mysql does not have strong name"
Please guide me through this.
Keep in mind to make the DLL visible to COM and follow this guide. For the visibility you can either change the
AssemblyInfo.csand add[assembly: ComVisible(true)]or via the integrated property editor of Visual Studio.