Solved

VB6/VB.Net

Posted on 2002-03-11
3
178 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

730 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