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. .NET (Core and Framework)
  4. Calling VB.Net dll functions in COM dll help

Calling VB.Net dll functions in COM dll help

Scheduled Pinned Locked Moved .NET (Core and Framework)
comcsharpwindows-adminhelp
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.
  • B Offline
    B Offline
    bhartik
    wrote on last edited by
    #1

    hi, i am trying to call the functions from VB.net dll to COM dll. First i wrote a vb.net dll for SMTP interface and took following steps 1. generated a key pair for sink class using sn -k 2. then i export the dll using tlbexp ..\x.dll ..\x.tlb 3. then registered that dll with registry usin RegAsm /codebase option 4. gacutil /i , to make it available in global chache. Thus now my dll is registered with registry. In my COM dll, i import the .tlb but, i not getting the CLSID and IID then how should create an instance in the com dll? Also how to call the function from vb.net dll to com dll Plz help me out Any help is welcome Regards bharti

    N 1 Reply Last reply
    0
    • B bhartik

      hi, i am trying to call the functions from VB.net dll to COM dll. First i wrote a vb.net dll for SMTP interface and took following steps 1. generated a key pair for sink class using sn -k 2. then i export the dll using tlbexp ..\x.dll ..\x.tlb 3. then registered that dll with registry usin RegAsm /codebase option 4. gacutil /i , to make it available in global chache. Thus now my dll is registered with registry. In my COM dll, i import the .tlb but, i not getting the CLSID and IID then how should create an instance in the com dll? Also how to call the function from vb.net dll to com dll Plz help me out Any help is welcome Regards bharti

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      bhartik wrote: how should create an instance in the com dll? Also how to call the function from vb.net dll to com dll Try reading my article: Creating a CCW for COM enabled non .NET applications[^] - Nick Parker
        My Blog

      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