How to Register COM Interop?

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

    #1

    How to Register COM Interop?

    I asked this before, someone said I need use regasm, but it doesn;t seem to
    work.

    I am developing a class library which impelements a smtp sink. when I
    compiled the project, the last statement is "Registerin g project output for
    COM Interop", that registers the COM Interop on my develope machine. I am
    trying to register the dll on other machine. Regsvr32 doesn't, and regasm
    too. How could I register this type of dll?

    Thanks!


  • davidw

    #2
    Re: How to Register COM Interop?

    I tried codebase, and it works, but I am not sure why. what is the tlb for?

    "Jos?Joye" <jose.joye@KILL THESPAMSbluewin .ch> wrote in message
    news:u7jbX6UbDH A.2688@TK2MSFTN GP11.phx.gbl...[color=blue]
    > If you type:
    > regasm /tlb:'yourDllNam e'.tlb 'yourDllName'.d ll
    >
    > Do you have any error?
    > If not, launch Ole/Com Viewer from Tool menu in VS.net and search for your
    > interface
    >
    > Jos?
    >
    > "davidw" <wyx1999@hotmai l.com> wrote in message
    > news:u5xkZ0UbDH A.652@tk2msftng p13.phx.gbl...[color=green]
    > > I asked this before, someone said I need use regasm, but it doesn;t seem[/color]
    > to[color=green]
    > > work.
    > >
    > > I am developing a class library which impelements a smtp sink. when I
    > > compiled the project, the last statement is "Registerin g project output[/color]
    > for[color=green]
    > > COM Interop", that registers the COM Interop on my develope machine. I[/color][/color]
    am[color=blue][color=green]
    > > trying to register the dll on other machine. Regsvr32 doesn't, and[/color][/color]
    regasm[color=blue][color=green]
    > > too. How could I register this type of dll?
    > >
    > > Thanks!
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • José Joye

      #3
      Re: How to Register COM Interop?

      ..tlb is used by non managed application to get the interface definition.
      When I was working with C++ and COM, a tool was provided to generate from
      the .tlb file a set of classes that were providing "easier" programming
      model to access the COM object.

      José
      "davidw" <wyx1999@hotmai l.com> wrote in message
      news:%238KviFVb DHA.2876@TK2MSF TNGP11.phx.gbl. ..[color=blue]
      > I tried codebase, and it works, but I am not sure why. what is the tlb[/color]
      for?[color=blue]
      >
      > "Jos?Joye" <jose.joye@KILL THESPAMSbluewin .ch> wrote in message
      > news:u7jbX6UbDH A.2688@TK2MSFTN GP11.phx.gbl...[color=green]
      > > If you type:
      > > regasm /tlb:'yourDllNam e'.tlb 'yourDllName'.d ll
      > >
      > > Do you have any error?
      > > If not, launch Ole/Com Viewer from Tool menu in VS.net and search for[/color][/color]
      your[color=blue][color=green]
      > > interface
      > >
      > > Jos?
      > >
      > > "davidw" <wyx1999@hotmai l.com> wrote in message
      > > news:u5xkZ0UbDH A.652@tk2msftng p13.phx.gbl...[color=darkred]
      > > > I asked this before, someone said I need use regasm, but it doesn;t[/color][/color][/color]
      seem[color=blue][color=green]
      > > to[color=darkred]
      > > > work.
      > > >
      > > > I am developing a class library which impelements a smtp sink. when I
      > > > compiled the project, the last statement is "Registerin g project[/color][/color][/color]
      output[color=blue][color=green]
      > > for[color=darkred]
      > > > COM Interop", that registers the COM Interop on my develope machine.[/color][/color][/color]
      I[color=blue]
      > am[color=green][color=darkred]
      > > > trying to register the dll on other machine. Regsvr32 doesn't, and[/color][/color]
      > regasm[color=green][color=darkred]
      > > > too. How could I register this type of dll?
      > > >
      > > > Thanks!
      > > >
      > > >[/color]
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...