Solved

VB6/VB.Net

Posted on 2002-03-11
3
173 Views
Last Modified: 2010-05-02
This has probably been asked dozens of times already, but I just don't want to search.

The latest issue of VBPJ (Now called "Visual Studio Magazine") has an article about combining VB6 and VB.Net.  The article seems to indicate, though they don't say specifically, that you can run VB.Net and VB6 on the same machine at the same time.  Is this indeed possible?  I have a lot of code that I would like to migrate, but I need to retain the ability to maintain the code in VB6 until the migration is complete.

I know that standard answer is, "I wouldn't if I were you.", but I need a definite answer from someone who is currently running both platforms on the same machine (without dual boot, that is).
0
Comment
Question by:Clif
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 50 total points
ID: 6855664
yes that is possible (Windows NT or more recent operating systems -- VB.NET will not install under Windows 98 or rearlier)  

Migration of code from VB6 to VB.NET IS generally NOT (repeat NOT) going to work.  The fundamental syntax of VB.NET, while simiar to VB6, has enough differences of significance, that the Migration Wizard will more than likely Choke on you existing VB 6 code, regardless of what Microsoft says.

I have used BOTH VB6 and VB.NET (though with the Beta 2 version of .NET) on the SAME machine, under Windows NT 4.0, with absolutely no conflicts...but again, migration is NOT a viable path to take.

Arthur Wood
0
 
LVL 10

Author Comment

by:Clif
ID: 6855741
Thanks.  I will be running under XP Home (for now).

As far as migrating code, perhaps "migrating" isn't the correct word but will have to suffice.  I'm sure it will be like recoding C++ to VB, which I have done in the past.  Very tedious, but the result will be worth while.

I presume (almost) all the third-party controls will still work?  (Yeah, I know this is another question, so never mind :)  )
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6857200
If you are coming from C++, take a look at C# (one of the .NET languages).  You will find a GREAT DEAL of commnality between C++ and C#.

Arthur Wood
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question