Solved

VB6/VB.Net

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now