Calling VB.Net dll functions in COM dll help
-
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
-
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
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