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. Managed C++/CLI
  4. help needed adding com components with idl

help needed adding com components with idl

Scheduled Pinned Locked Moved Managed C++/CLI
helpcomtutorial
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.
  • A Offline
    A Offline
    arusmemon
    wrote on last edited by
    #1

    Hi, i am trying to add a com component in VC (Managed) but the component is not been able to add, i.e. when i try to add, following error is displayed "Add reference: error adding reference to project" for additional info, i have a sample sdk that is using the component it is actually developed under VC 6.0 and is using .idl files Will some body please me how to do this, i will be very thankfull. Arus.

    U 1 Reply Last reply
    0
    • A arusmemon

      Hi, i am trying to add a com component in VC (Managed) but the component is not been able to add, i.e. when i try to add, following error is displayed "Add reference: error adding reference to project" for additional info, i have a sample sdk that is using the component it is actually developed under VC 6.0 and is using .idl files Will some body please me how to do this, i will be very thankfull. Arus.

      U Offline
      U Offline
      ursus zeta
      wrote on last edited by
      #2

      You should provide more information along with your inquiry. Anyone responding will have to ask you a number of questions. I assume that you are new to this kind of thing. If the COM component has a type library, the easiest thing to do is to convert it to a .NET assembly with the utility, TlbImp.exe. If you don't understand that clearly, then you should read up a little on COM Interop; COM components are unmanaged and you are trying to use it in a managed app.

      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