Question : I get a error message when I reference a dll file to my C# Window application

Hi,

Im trying to add a reference to a dll file to my C# Window application but i get a error message.
"A reference to 'C:\name of the dll file" could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component."

I think the dll file is made in C

Answer : I get a error message when I reference a dll file to my C# Window application

>> Because i have all the source files can i recompile my dll so i can just reference it like a assembly or COM object?
Well, unless it is managed code you can't build it as a .Net managed assembly. As far as I know a COM object has to be design as such from the ground up. Using a Win32 DLL isn't hard. Did you look at the link I provided, which shows the correct way to do this?
Random Solutions  
 
programming4us programming4us