Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to refer dll from our Application

How to refer dll from our Application

Scheduled Pinned Locked Moved Database
helptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SelvaSR
    wrote on last edited by
    #1

    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.

    K 1 Reply Last reply
    0
    • S SelvaSR

      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.

      K Offline
      K Offline
      Krishnraj
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups