473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Porting Addin

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.
Jul 19 '05 #1
5 1671
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
http://x-unity.miik.com.ua
Deliver reliable .NET software
"Mart Rogers" <ma*********@dev.null> wrote in message
news:bg**********@hercules.btinternet.com...
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.


Jul 19 '05 #2

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:ur**************@tk2msftngp13.phx.gbl...
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" <ma*********@dev.null> wrote in message
news:bg**********@hercules.btinternet.com...
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.

Jul 19 '05 #3
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
Jul 19 '05 #4
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
http://x-unity.miik.com.ua
Deliver reliable .NET software

"Mart Rogers" <ma*********@dev.null> wrote in message
news:bg**********@titan.btinternet.com...

"Carlos J. Quintero" <carlos_j_quintero@_NO_MORE_SPAM_hotmail.com> wrote in message news:Om**************@TK2MSFTNGP09.phx.gbl...
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.


Does this still apply to VS.Net 2002 ?


HTH,

Carlos Quintero



Jul 19 '05 #5
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-****@no-spam-please.hotpop.com>
escribio en el mensaje news:%2***************@TK2MSFTNGP12.phx.gbl...
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.

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
0
by: seeni | last post by:
I have created an addin to use in visual studio 2002. How to port the addin to Visual studio 2003? When I installed setupmsi in the machine containing visual studio 2003, the addin is not...
6
by: jchao123 | last post by:
Dear All, I have an MDB file (Access 2000/XP) which contains generic routines I use in various apps (eg, API calls, File access classes etc). I have compiled into an MDE file which I reference...
5
by: Mart Rogers | last post by:
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.
0
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way...
7
by: Joseph Geretz | last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now, just a couple of days. Suddenly though, running my project in Debug launches Outlook as specified, but no breakpoints...
1
by: AlexZh | last post by:
Hi, I'd like to stop command line build by one project build failed. To do that I've created simple AddIn (see code below), that works fine for IDE and does not work for command line. In the AddIn...
6
by: Christof Nordiek | last post by:
Hi, I created an Addin Project with the Addin-Project-Wizzard in VS2005. I added some code from a Knowledge Base How To und built the project. It worked, and the Addin got registered with...
1
by: John | last post by:
Hi I have a simple Outlook 2003 AddIn created using Outlook 2003 AddIn template in vs 2008. The full code is given below at the end. I got warnings on Interop assemblies as I have Office 2007...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.