How to refer dll from our Application
Database
2
Posts
2
Posters
0
Views
1
Watching
-
i have created one dll and i refer this from my Application(Windows) while running it is showing COMException was unhandled Unknown error (0x80005000),can anyone suggest some solution.
You have to add reference to yr application's bin folder by right click on that and click "Add Rererence" OR If yr dll in System32 folder then use below code: First include below namespace
using System.Runtime.InteropServices;
and then give dll reference as shown below.
[DllImport("dllName.dll")]
public static extern (function datatype) DllFunctionName();Hope It will help u.
Krishnraj