Porting Addin

  • Thread starter Thread starter Mart Rogers
  • Start date Start date
M

Mart Rogers

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

Does anyone know what the equivelent of Application.CodePane and
Application.CodeModule are under .Net?

Thanks.
 
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 said:
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!

Many Thanks
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software


Mart Rogers said:
I am porting an Add In from VB6 to VB.Net.

Does anyone know what the equivelent of Application.CodePane and
Application.CodeModule are under .Net?

Thanks.
 
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
 
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.
 
Hi Mart and Dmitriy,

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

Carlos Quintero
 
Back
Top