Porting Addin

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

    #1

    Porting Addin

    I am porting an Add In from VB6 to VB.Net.

    Does anyone know what the equivelent of Application.Cod ePane and
    Application.Cod eModule are under .Net?

    Thanks.


  • Dmitriy Lapshin [C# / .NET MVP]

    #2
    Re: Porting Addin

    Hello Mart,

    I am pretty sure it is not right to talk of 'equivalent' as the VS .NET
    automation model is quite different from the VB6 one, it'd be more correct
    to talk of objects with the closest functionality.

    The closest replacement for the CodePane object would probably be the
    TextWindow, TextPane and the TextDocument objects.

    The closest replacement for the CodeModule object would probably be the
    CodeModel object and its underlying hierarchy (CodeClass, CodeFunction and
    so on).

    Hope this answers your question.

    P.S. I would also like to warn you that such a port might require a
    significant amount of re-writing add-in logic as the two automation models
    have little enough in common. So I wish you good luck in this effort!

    --
    Dmitriy Lapshin [C# / .NET MVP]
    X-Unity Unit Testing and Integration Environment

    Deliver reliable .NET software


    "Mart Rogers" <mart.rogers@de v.null> wrote in message
    news:bgqph5$1i2 $1@hercules.bti nternet.com...[color=blue]
    > I am porting an Add In from VB6 to VB.Net.
    >
    > Does anyone know what the equivelent of Application.Cod ePane and
    > Application.Cod eModule are under .Net?
    >
    > Thanks.
    >
    >[/color]

    Comment

    • Mart Rogers

      #3
      Re: Porting Addin


      "Dmitriy Lapshin [C# / .NET MVP]" <x-code@no-spam-please.hotpop.c om> wrote
      in message news:urjwvRBXDH A.1480@tk2msftn gp13.phx.gbl...[color=blue]
      > Hello Mart,
      >
      > I am pretty sure it is not right to talk of 'equivalent' as the VS .NET
      > automation model is quite different from the VB6 one, it'd be more correct
      > to talk of objects with the closest functionality.
      >
      > The closest replacement for the CodePane object would probably be the
      > TextWindow, TextPane and the TextDocument objects.
      >
      > The closest replacement for the CodeModule object would probably be the
      > CodeModel object and its underlying hierarchy (CodeClass, CodeFunction and
      > so on).
      >
      > Hope this answers your question.
      >
      > P.S. I would also like to warn you that such a port might require a
      > significant amount of re-writing add-in logic as the two automation models
      > have little enough in common. So I wish you good luck in this effort![/color]

      Many Thanks
      [color=blue]
      >
      > --
      > Dmitriy Lapshin [C# / .NET MVP]
      > X-Unity Unit Testing and Integration Environment
      > http://x-unity.miik.com.ua
      > Deliver reliable .NET software
      >
      >
      > "Mart Rogers" <mart.rogers@de v.null> wrote in message
      > news:bgqph5$1i2 $1@hercules.bti nternet.com...[color=green]
      > > I am porting an Add In from VB6 to VB.Net.
      > >
      > > Does anyone know what the equivelent of Application.Cod ePane and
      > > Application.Cod eModule are under .Net?
      > >
      > > Thanks.
      > >
      > >[/color]
      >[/color]


      Comment

      • Carlos J. Quintero

        #4
        Re: Porting Addin

        Hi Mart,

        As Dmitriy said, both automation models are so different and the one of
        VS.Net is so far from trivial that I would recommend you the book "Inside
        Visual Studio .Net 2003" by Craig Skibo and others (Microsoft Press). The
        cost and time spent reading it will compensate you by far later.

        HTH,

        Carlos Quintero


        Comment

        • Dmitriy Lapshin [C# / .NET MVP]

          #5
          Re: Porting Addin

          Mart,

          I think Carlos can be much more precise here (nice to meet you here, by the
          way!), but my guess is that 95 (or even more) per cent of information given
          in the book still applies to VS .NET 2002.

          --
          Dmitriy Lapshin [C# / .NET MVP]
          X-Unity Unit Testing and Integration Environment

          Deliver reliable .NET software

          "Mart Rogers" <mart.rogers@de v.null> wrote in message
          news:bgr3tj$sak $1@titan.btinte rnet.com...[color=blue]
          >
          > "Carlos J. Quintero" <carlos_j_quint ero@_NO_MORE_SP AM_hotmail.com> wrote[/color]
          in[color=blue]
          > message news:OmJt6$BXDH A.2648@TK2MSFTN GP09.phx.gbl...[color=green]
          > > Hi Mart,
          > >
          > > As Dmitriy said, both automation models are so different and the one of
          > > VS.Net is so far from trivial that I would recommend you the book[/color][/color]
          "Inside[color=blue][color=green]
          > > Visual Studio .Net 2003" by Craig Skibo and others (Microsoft Press).[/color][/color]
          The[color=blue][color=green]
          > > cost and time spent reading it will compensate you by far later.[/color]
          >
          > Does this still apply to VS.Net 2002 ?
          >
          >[color=green]
          > >
          > > HTH,
          > >
          > > Carlos Quintero
          > >
          > >[/color]
          >
          >[/color]

          Comment

          • Carlos J. Quintero

            #6
            Re: Porting Addin

            Hi Mart and Dmitriy,

            Yes, I would say 99% of the book applies to VS.Net 2002...

            Carlos Quintero

            "Dmitriy Lapshin [C# / .NET MVP]" <x-code@no-spam-please.hotpop.c om>
            escribio en el mensaje news:%23ODfsTLX DHA.384@TK2MSFT NGP12.phx.gbl.. .[color=blue]
            > Mart,
            >
            > I think Carlos can be much more precise here (nice to meet you here, by[/color]
            the[color=blue]
            > way!), but my guess is that 95 (or even more) per cent of information[/color]
            given[color=blue]
            > in the book still applies to VS .NET 2002.
            >[/color]


            Comment

            Working...