unable to refer imgctl.dll in C#.Net application
-
http://www.ruche-home.net/?������������ I have downloaded imgctl.dll from the above link. version: 1.24 I am trying to add reference to this dll from windows application based on C#. But i am getting: "A reference to "C:\imgctl.dll" could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component". Tried downloading a new one and added but still getting same error. Please help me, if anyone knows about this. Thanks in Advance
-
http://www.ruche-home.net/?������������ I have downloaded imgctl.dll from the above link. version: 1.24 I am trying to add reference to this dll from windows application based on C#. But i am getting: "A reference to "C:\imgctl.dll" could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component". Tried downloading a new one and added but still getting same error. Please help me, if anyone knows about this. Thanks in Advance
You can only add a reference to a .NET or COM .DLL. You've apparently got your hands on a normal library .DLL. You'll have to get at the functions it using P/Invoke. In C#, you need to look into the DllImport attribute.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
You can only add a reference to a .NET or COM .DLL. You've apparently got your hands on a normal library .DLL. You'll have to get at the functions it using P/Invoke. In C#, you need to look into the DllImport attribute.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008