Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created c ".dll" successfully, but iam not able include in visual studio reference, I got the following error:
A reference to "test.dll" could not be added. please make sure that the file is accessible and that it is a valid assembly or COM component.

Refer the screen:
http://s1.postimg.org/dxb8fwjqn/screen.png[^]
Posted

1 solution

You don't add C DLL files as references: only .NET assemblies can be referenced.

To use a C DLL file in your C# code, you need to use DLLImport: MSDN[^]
 
Share this answer
 

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