Building .tbl

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alex

    Building .tbl

    I'm building COM in C# to be used from C++ application. I've read
    that C++ client should use Type Library file .tlb. But my solution (of
    Class Library) produces only MyCom.dll. So my question is: What should
    I do (in VS 2005) to build .tlb file?

    Thanks,
    Alex

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Building .tbl

    Alex,

    When you call Regasm.exe to register the .dll file for COM interop, you
    will want to run it once with the /tlb switch. This will produce the type
    library that you can access from your unmanaged applications.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Alex" <alsim123@hotma il.comwrote in message
    news:1158681058 .434826.95920@m 7g2000cwm.googl egroups.com...
    I'm building COM in C# to be used from C++ application. I've read
    that C++ client should use Type Library file .tlb. But my solution (of
    Class Library) produces only MyCom.dll. So my question is: What should
    I do (in VS 2005) to build .tlb file?
    >
    Thanks,
    Alex
    >

    Comment

    • Alex

      #3
      Re: Building .tbl

      Thanks, Nicholas, but after I'd ran:
      regasm.exe "mycom.cll" /tlb
      nothing happened. There was no any errors, but nothing was produced,
      I've searched my whole C drive and could not find anything like
      mycom.tbl

      Thanks,
      Alex


      Nicholas Paldino [.NET/C# MVP] wrote:
      Alex,
      >
      When you call Regasm.exe to register the .dll file for COM interop, you
      will want to run it once with the /tlb switch. This will produce the type
      library that you can access from your unmanaged applications.
      >
      Hope this helps.
      >
      >
      --
      - Nicholas Paldino [.NET/C# MVP]
      - mvp@spam.guard. caspershouse.co m
      >
      "Alex" <alsim123@hotma il.comwrote in message
      news:1158681058 .434826.95920@m 7g2000cwm.googl egroups.com...
      I'm building COM in C# to be used from C++ application. I've read
      that C++ client should use Type Library file .tlb. But my solution (of
      Class Library) produces only MyCom.dll. So my question is: What should
      I do (in VS 2005) to build .tlb file?

      Thanks,
      Alex

      Comment

      • Nicholas Paldino [.NET/C# MVP]

        #4
        Re: Building .tbl

        Alex,

        You need to specify the output file name when you use the /tlb option:

        regasm.exe "mycom.dll" /tlb:mycom.tlb


        --
        - Nicholas Paldino [.NET/C# MVP]
        - mvp@spam.guard. caspershouse.co m

        "Alex" <alsim123@hotma il.comwrote in message
        news:1158684155 .857774.143220@ e3g2000cwe.goog legroups.com...
        Thanks, Nicholas, but after I'd ran:
        regasm.exe "mycom.cll" /tlb
        nothing happened. There was no any errors, but nothing was produced,
        I've searched my whole C drive and could not find anything like
        mycom.tbl
        >
        Thanks,
        Alex
        >
        >
        Nicholas Paldino [.NET/C# MVP] wrote:
        >Alex,
        >>
        > When you call Regasm.exe to register the .dll file for COM interop,
        >you
        >will want to run it once with the /tlb switch. This will produce the
        >type
        >library that you can access from your unmanaged applications.
        >>
        > Hope this helps.
        >>
        >>
        >--
        > - Nicholas Paldino [.NET/C# MVP]
        > - mvp@spam.guard. caspershouse.co m
        >>
        >"Alex" <alsim123@hotma il.comwrote in message
        >news:115868105 8.434826.95920@ m7g2000cwm.goog legroups.com...
        I'm building COM in C# to be used from C++ application. I've read
        that C++ client should use Type Library file .tlb. But my solution (of
        Class Library) produces only MyCom.dll. So my question is: What should
        I do (in VS 2005) to build .tlb file?
        >
        Thanks,
        Alex
        >
        >

        Comment

        • Alex

          #5
          Re: Building .tbl

          Nicholas:

          Thaaaaaank youuuuuuuu soooo muuuuuch!

          You were right to the point! Everything is fine now!

          Alex


          Nicholas Paldino [.NET/C# MVP] wrote:
          Alex,
          >
          You need to specify the output file name when you use the /tlb option:
          >
          regasm.exe "mycom.dll" /tlb:mycom.tlb
          >
          >
          --
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard. caspershouse.co m
          >
          "Alex" <alsim123@hotma il.comwrote in message
          news:1158684155 .857774.143220@ e3g2000cwe.goog legroups.com...
          Thanks, Nicholas, but after I'd ran:
          regasm.exe "mycom.cll" /tlb
          nothing happened. There was no any errors, but nothing was produced,
          I've searched my whole C drive and could not find anything like
          mycom.tbl

          Thanks,
          Alex


          Nicholas Paldino [.NET/C# MVP] wrote:
          Alex,
          >
          When you call Regasm.exe to register the .dll file for COM interop,
          you
          will want to run it once with the /tlb switch. This will produce the
          type
          library that you can access from your unmanaged applications.
          >
          Hope this helps.
          >
          >
          --
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard. caspershouse.co m
          >
          "Alex" <alsim123@hotma il.comwrote in message
          news:1158681058 .434826.95920@m 7g2000cwm.googl egroups.com...
          I'm building COM in C# to be used from C++ application. I've read
          that C++ client should use Type Library file .tlb. But my solution (of
          Class Library) produces only MyCom.dll. So my question is: What should
          I do (in VS 2005) to build .tlb file?

          Thanks,
          Alex

          Comment

          Working...