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#
  4. Why i can't import C# com dll to C++ project ? ? ?

Why i can't import C# com dll to C++ project ? ? ?

Scheduled Pinned Locked Moved C#
c++helpcsharpcomquestion
6 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I try to make import the DLL that i wrote in C# to C++ project and i getting this message Error 1 fatal error C1083: Cannot open type library file: 'c:\.... DLL file path ....\maintdll.dll': Error loading type library/DLL. c:\.... DLL FILE PATH ......checkinguiincpp\checkinguiincpp.cpp 6 Someone can help me ?

    S J 2 Replies Last reply
    0
    • L Lost User

      I try to make import the DLL that i wrote in C# to C++ project and i getting this message Error 1 fatal error C1083: Cannot open type library file: 'c:\.... DLL file path ....\maintdll.dll': Error loading type library/DLL. c:\.... DLL FILE PATH ......checkinguiincpp\checkinguiincpp.cpp 6 Someone can help me ?

      S Offline
      S Offline
      Software_Specialist
      wrote on last edited by
      #2

      Are you trying to import .Net dll to Unmanaged C++ ?

      1 Reply Last reply
      0
      • L Lost User

        I try to make import the DLL that i wrote in C# to C++ project and i getting this message Error 1 fatal error C1083: Cannot open type library file: 'c:\.... DLL file path ....\maintdll.dll': Error loading type library/DLL. c:\.... DLL FILE PATH ......checkinguiincpp\checkinguiincpp.cpp 6 Someone can help me ?

        J Offline
        J Offline
        Judah Gabriel Himango
        wrote on last edited by
        #3

        Is your C# COM dll registered on the system using the RegAsm utility in the .NET SDK? Can you look at your C# COM dll using the OleView utility?

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: Minnesota Bridge Collapses The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        L 1 Reply Last reply
        0
        • J Judah Gabriel Himango

          Is your C# COM dll registered on the system using the RegAsm utility in the .NET SDK? Can you look at your C# COM dll using the OleView utility?

          Tech, life, family, faith: Give me a visit. I'm currently blogging about: Minnesota Bridge Collapses The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I can see the TLB file - but i cant see the dll in the oleView. The registration with RegAsm does not help. What to do next ?

          J 1 Reply Last reply
          0
          • L Lost User

            I can see the TLB file - but i cant see the dll in the oleView. The registration with RegAsm does not help. What to do next ?

            J Offline
            J Offline
            Judah Gabriel Himango
            wrote on last edited by
            #5

            Yanshof wrote:

            The registration with RegAsm does not help.

            When you run RegAsm on your dll, what happens?

            Tech, life, family, faith: Give me a visit. I'm currently blogging about: Minnesota Bridge Collapses The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

            L 1 Reply Last reply
            0
            • J Judah Gabriel Himango

              Yanshof wrote:

              The registration with RegAsm does not help.

              When you run RegAsm on your dll, what happens?

              Tech, life, family, faith: Give me a visit. I'm currently blogging about: Minnesota Bridge Collapses The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              I run it on the command line - and i getting back this message Types registered successfully

              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