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 access a VB.NET dll from C++

How to access a VB.NET dll from C++

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++com
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.
  • M Offline
    M Offline
    Manfred Staiger
    wrote on last edited by
    #1

    Hello everybody, I need to access some functions in a VB.NET dll from my VC++ application. The problem is that the dll doesn't export any functions like a common dll does. On a microsoft website I found a hint that looks like the .NET dll needs to implement a COM interface to fit my purposes, but I'm not shure. Does anybody have more knowledge on this issue??? MS

    L 1 Reply Last reply
    0
    • M Manfred Staiger

      Hello everybody, I need to access some functions in a VB.NET dll from my VC++ application. The problem is that the dll doesn't export any functions like a common dll does. On a microsoft website I found a hint that looks like the .NET dll needs to implement a COM interface to fit my purposes, but I'm not shure. Does anybody have more knowledge on this issue??? MS

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Manfred Staiger wrote:

      the .NET dll needs to implement a COM interface to fit my purposes

      Not entirly true. VC++ .NET compilers support "mixed mode". Use can use the /clr compiler switch to give your C++ project access to the .NET platform including components authored in nasty VB.NET :) Now it's not quite that simple but that is basically the idea. There are plenty of MSDN resources about project settings etc.

      Manfred Staiger wrote:

      The problem is that the dll doesn't export any functions like a common dll does.

      Correct, everything in .NET is a class. Using "mixed mode" you can create an instance and call the methods, or call the "static" methods of the class of course without an instance. The Code Project (Managed) C++/CLI forum is dedicated to using the VC++ product with the .NET platform so your future questions on this subject should go there. hope that helps

      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