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. General Programming
  3. C / C++ / MFC
  4. How to use the C++ dynamic load DLL which compiles with C#

How to use the C++ dynamic load DLL which compiles with C#

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++tutorial
3 Posts 3 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.
  • Z Offline
    Z Offline
    ZhiLiangLin
    wrote on last edited by
    #1

    How to use the C++ dynamic load DLL which compiles with C# :doh: tks!

    G _ 2 Replies Last reply
    0
    • Z ZhiLiangLin

      How to use the C++ dynamic load DLL which compiles with C# :doh: tks!

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      I suggest you start looking at p/invoke - here's two starters ... http://www.perceler.com/articles1.php?art=pinvoke1 http://www.codeproject.com/KB/dotnet/PInvoke.aspx 'g'

      1 Reply Last reply
      0
      • Z ZhiLiangLin

        How to use the C++ dynamic load DLL which compiles with C# :doh: tks!

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        What do you mean by a dll which compiles with C#? I think you have a native (C++) dll which you want to use in C#. As already suggested you can either use PInvoke to call the functions from that dll or if its a COM dll you might be interested in generating a tlb for it, then you can add the reference to this .tlb in your C# application and consume it.

        I am a HUMAN. I have that keyword (??? too much) in my name........ ;-)_AnsHUMAN_b>

        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