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. COM
  4. how to convert to COM server from C++ lib module

how to convert to COM server from C++ lib module

Scheduled Pinned Locked Moved COM
csharpc++comsysadmintutorial
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.
  • D Offline
    D Offline
    DavJes
    wrote on last edited by
    #1

    Hi I have a C++ project as exe , I want to export some of the methods of the classes to use them in .net (C#) . I think better idea would be to create a ATL project and create interfaces and implement the methods by calling the C++ lib methods. Is there any other way to do this , which would be fessible and efficient ? thanks

    D 1 Reply Last reply
    0
    • D DavJes

      Hi I have a C++ project as exe , I want to export some of the methods of the classes to use them in .net (C#) . I think better idea would be to create a ATL project and create interfaces and implement the methods by calling the C++ lib methods. Is there any other way to do this , which would be fessible and efficient ? thanks

      D Offline
      D Offline
      Douglas Troy
      wrote on last edited by
      #2

      Per your title, if this is a COM Server, then you already have access to that in .NET. Just open your .NET Project, right-click on References and select "Add references ...", click on the COM tab and find your COM server in the list of named objects. When you select it, Studio will automatically generate a .NET wrapper to your COM interfaces and you can use that code directly in your .NET project. If it's not already a COM object, you can do it either way: create a DLL that you call into from your .NET project or a COM object that you reference in your .NET Project (as I just mentioned). Not entirely certain this answers your question, if not, you'll need to provide more details as to what, exactly, you're wanting to accomplish.


      :..::. Douglas H. Troy ::..
      Bad Astronomy |VCF|wxWidgets|WTL

      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