DLL (COM) with .Net

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

    DLL (COM) with .Net

    I need to rebuild a COM Dll, which is consumed by many ASP pages, and desktop
    applications. By simply calling the CreateObject,.. . from each application.


    The requirment is to use the .Net // C# To do a same funtional DLL,

    While keeping in mind that it should be still accessable from for all
    application either ASP pages or desktop applications.

    So what is the type of the project that should use to rebuild this new (DLL)
    or Webservice,...

    Regrds


    --
    MCSD not .Net yet :(
  • Mythran

    #2
    Re: DLL (COM) with .Net


    "Thanker" <Thanker@discus sions.microsoft .com> wrote in message
    news:BD8952A7-5E1D-476D-ADCC-0ECC2DDF55B5@mi crosoft.com...[color=blue]
    >I need to rebuild a COM Dll, which is consumed by many ASP pages, and
    >desktop
    > applications. By simply calling the CreateObject,.. . from each
    > application.
    >
    >
    > The requirment is to use the .Net // C# To do a same funtional DLL,
    >
    > While keeping in mind that it should be still accessable from for all
    > application either ASP pages or desktop applications.
    >
    > So what is the type of the project that should use to rebuild this new
    > (DLL)
    > or Webservice,...
    >
    > Regrds
    >
    >
    > --
    > MCSD not .Net yet :([/color]

    Without redesigning the COM DLL, you'll just create a C# Class Library
    project. Once the C# class is created and you imported all the code
    (copy/paste or through wizard), you will have to make sure you set it up to
    be COM accessible (check the docs).

    HTH,

    Mythran

    Comment

    • Mythran

      #3
      Re: DLL (COM) with .Net


      "Thanker" <Thanker@discus sions.microsoft .com> wrote in message
      news:BD8952A7-5E1D-476D-ADCC-0ECC2DDF55B5@mi crosoft.com...[color=blue]
      >I need to rebuild a COM Dll, which is consumed by many ASP pages, and
      >desktop
      > applications. By simply calling the CreateObject,.. . from each
      > application.
      >
      >
      > The requirment is to use the .Net // C# To do a same funtional DLL,
      >
      > While keeping in mind that it should be still accessable from for all
      > application either ASP pages or desktop applications.
      >
      > So what is the type of the project that should use to rebuild this new
      > (DLL)
      > or Webservice,...
      >
      > Regrds
      >
      >
      > --
      > MCSD not .Net yet :([/color]

      Without redesigning the COM DLL, you'll just create a C# Class Library
      project. Once the C# class is created and you imported all the code
      (copy/paste or through wizard), you will have to make sure you set it up to
      be COM accessible (check the docs).

      HTH,

      Mythran

      Comment

      • Thanker

        #4
        Re: DLL (COM) with .Net

        The criteria is,
        It should be re-developed totally from scratch,
        So I still need to create it.
        Since the current COM is not functioning properly.

        What is the best project libraray to use?
        --
        MCSD not .Net yet :(


        "Mythran" wrote:
        [color=blue]
        >
        > "Thanker" <Thanker@discus sions.microsoft .com> wrote in message
        > news:BD8952A7-5E1D-476D-ADCC-0ECC2DDF55B5@mi crosoft.com...[color=green]
        > >I need to rebuild a COM Dll, which is consumed by many ASP pages, and
        > >desktop
        > > applications. By simply calling the CreateObject,.. . from each
        > > application.
        > >
        > >
        > > The requirment is to use the .Net // C# To do a same funtional DLL,
        > >
        > > While keeping in mind that it should be still accessable from for all
        > > application either ASP pages or desktop applications.
        > >
        > > So what is the type of the project that should use to rebuild this new
        > > (DLL)
        > > or Webservice,...
        > >
        > > Regrds
        > >
        > >
        > > --
        > > MCSD not .Net yet :([/color]
        >
        > Without redesigning the COM DLL, you'll just create a C# Class Library
        > project. Once the C# class is created and you imported all the code
        > (copy/paste or through wizard), you will have to make sure you set it up to
        > be COM accessible (check the docs).
        >
        > HTH,
        >
        > Mythran
        >
        >[/color]

        Comment

        • Thanker

          #5
          Re: DLL (COM) with .Net

          The criteria is,
          It should be re-developed totally from scratch,
          So I still need to create it.
          Since the current COM is not functioning properly.

          What is the best project libraray to use?
          --
          MCSD not .Net yet :(


          "Mythran" wrote:
          [color=blue]
          >
          > "Thanker" <Thanker@discus sions.microsoft .com> wrote in message
          > news:BD8952A7-5E1D-476D-ADCC-0ECC2DDF55B5@mi crosoft.com...[color=green]
          > >I need to rebuild a COM Dll, which is consumed by many ASP pages, and
          > >desktop
          > > applications. By simply calling the CreateObject,.. . from each
          > > application.
          > >
          > >
          > > The requirment is to use the .Net // C# To do a same funtional DLL,
          > >
          > > While keeping in mind that it should be still accessable from for all
          > > application either ASP pages or desktop applications.
          > >
          > > So what is the type of the project that should use to rebuild this new
          > > (DLL)
          > > or Webservice,...
          > >
          > > Regrds
          > >
          > >
          > > --
          > > MCSD not .Net yet :([/color]
          >
          > Without redesigning the COM DLL, you'll just create a C# Class Library
          > project. Once the C# class is created and you imported all the code
          > (copy/paste or through wizard), you will have to make sure you set it up to
          > be COM accessible (check the docs).
          >
          > HTH,
          >
          > Mythran
          >
          >[/color]

          Comment

          • Lloyd Dupont

            #6
            Re: DLL (COM) with .Net

            As is set, just write your control and tag your class with:
            [ComVisible(true )]

            well truth to tell you don't even need to tag the class as it's visible by
            default.
            however in the ComVisibleAttri bute documentation they explain you how to
            register your class, etc...

            "Thanker" <Thanker@discus sions.microsoft .com> wrote in message
            news:94D1AB75-56D7-4A88-92D0-32CCE7A04AAF@mi crosoft.com...[color=blue]
            > The criteria is,
            > It should be re-developed totally from scratch,
            > So I still need to create it.
            > Since the current COM is not functioning properly.
            >
            > What is the best project libraray to use?
            > --
            > MCSD not .Net yet :(
            >
            >
            > "Mythran" wrote:
            >[color=green]
            >>
            >> "Thanker" <Thanker@discus sions.microsoft .com> wrote in message
            >> news:BD8952A7-5E1D-476D-ADCC-0ECC2DDF55B5@mi crosoft.com...[color=darkred]
            >> >I need to rebuild a COM Dll, which is consumed by many ASP pages, and
            >> >desktop
            >> > applications. By simply calling the CreateObject,.. . from each
            >> > application.
            >> >
            >> >
            >> > The requirment is to use the .Net // C# To do a same funtional DLL,
            >> >
            >> > While keeping in mind that it should be still accessable from for all
            >> > application either ASP pages or desktop applications.
            >> >
            >> > So what is the type of the project that should use to rebuild this new
            >> > (DLL)
            >> > or Webservice,...
            >> >
            >> > Regrds
            >> >
            >> >
            >> > --
            >> > MCSD not .Net yet :([/color]
            >>
            >> Without redesigning the COM DLL, you'll just create a C# Class Library
            >> project. Once the C# class is created and you imported all the code
            >> (copy/paste or through wizard), you will have to make sure you set it up
            >> to
            >> be COM accessible (check the docs).
            >>
            >> HTH,
            >>
            >> Mythran
            >>
            >>[/color][/color]


            Comment

            • Lloyd Dupont

              #7
              Re: DLL (COM) with .Net

              As is set, just write your control and tag your class with:
              [ComVisible(true )]

              well truth to tell you don't even need to tag the class as it's visible by
              default.
              however in the ComVisibleAttri bute documentation they explain you how to
              register your class, etc...

              "Thanker" <Thanker@discus sions.microsoft .com> wrote in message
              news:94D1AB75-56D7-4A88-92D0-32CCE7A04AAF@mi crosoft.com...[color=blue]
              > The criteria is,
              > It should be re-developed totally from scratch,
              > So I still need to create it.
              > Since the current COM is not functioning properly.
              >
              > What is the best project libraray to use?
              > --
              > MCSD not .Net yet :(
              >
              >
              > "Mythran" wrote:
              >[color=green]
              >>
              >> "Thanker" <Thanker@discus sions.microsoft .com> wrote in message
              >> news:BD8952A7-5E1D-476D-ADCC-0ECC2DDF55B5@mi crosoft.com...[color=darkred]
              >> >I need to rebuild a COM Dll, which is consumed by many ASP pages, and
              >> >desktop
              >> > applications. By simply calling the CreateObject,.. . from each
              >> > application.
              >> >
              >> >
              >> > The requirment is to use the .Net // C# To do a same funtional DLL,
              >> >
              >> > While keeping in mind that it should be still accessable from for all
              >> > application either ASP pages or desktop applications.
              >> >
              >> > So what is the type of the project that should use to rebuild this new
              >> > (DLL)
              >> > or Webservice,...
              >> >
              >> > Regrds
              >> >
              >> >
              >> > --
              >> > MCSD not .Net yet :([/color]
              >>
              >> Without redesigning the COM DLL, you'll just create a C# Class Library
              >> project. Once the C# class is created and you imported all the code
              >> (copy/paste or through wizard), you will have to make sure you set it up
              >> to
              >> be COM accessible (check the docs).
              >>
              >> HTH,
              >>
              >> Mythran
              >>
              >>[/color][/color]


              Comment

              Working...