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. COM Component...

COM Component...

Scheduled Pinned Locked Moved COM
comc++announcement
3 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.
  • S Offline
    S Offline
    Siva Sankar Koyi
    wrote on last edited by
    #1

    I have a fundamental component.. Suppose if I developed a ATL componet(DLL)and If I want to release to the client what should be given to the client how the client know the CLSID and IID of this component. If I am not wrong I should deliver to the client DLL, TLB. could anybody clarify me this thanks Siva

    L 1 Reply Last reply
    0
    • S Siva Sankar Koyi

      I have a fundamental component.. Suppose if I developed a ATL componet(DLL)and If I want to release to the client what should be given to the client how the client know the CLSID and IID of this component. If I am not wrong I should deliver to the client DLL, TLB. could anybody clarify me this thanks Siva

      L Offline
      L Offline
      Lim Bio Liong
      wrote on last edited by
      #2

      Hello Siva, At minimum, deliver the DLL itself plus other dependent DLLs. These must be registered successfully in the client's OS. Thereafter, if the client uses VC++, the user will need to #import the DLL, e.g. : #import "MyComponentDLL.dll" A set of Type Library Header files will be generated by the VC++ compiler. If the client uses VB, the user will have to reference your DLL. .NET dev environments (e.g. C#, VB.NET) will also need to reference the DLL. For other development environments, check out the documentation. Best Regards, Bio.

      A 1 Reply Last reply
      0
      • L Lim Bio Liong

        Hello Siva, At minimum, deliver the DLL itself plus other dependent DLLs. These must be registered successfully in the client's OS. Thereafter, if the client uses VC++, the user will need to #import the DLL, e.g. : #import "MyComponentDLL.dll" A set of Type Library Header files will be generated by the VC++ compiler. If the client uses VB, the user will have to reference your DLL. .NET dev environments (e.g. C#, VB.NET) will also need to reference the DLL. For other development environments, check out the documentation. Best Regards, Bio.

        A Offline
        A Offline
        AmitGG
        wrote on last edited by
        #3

        Hi I would add something. In my work I am using a DLL (Which has been built in C#) and I am using it in VC++ by using COM. Below is how I am doing it in my case. If client uses VC++, it has to create a Type library (TLB) file from the DLL. In microsoft visual studio (.NET) 2003 there is a tool , Regasm.Exe .. Use Regasm.exe tool to create TLB file .. Actually it registers the DLL in the system registry as well as creates a TLB file. Now use this TLB in #import command. #import "MyComponentDLL.tlb" A set of Type Library Header files will be generated by the VC++ compiler. Now Put the TLB file in your working folder and put the DLL in the folder where your solution EXE will be created. and Start then building the code. -- modified at 4:51 Wednesday 1st March, 2006

        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