• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

MS VB 6.0 compile

I have an old VB 6.0 Code and its not compiling now I am trying on VS 2005 and 2006. What Steps should I take to compile it, also is there any tutorial on VB 6.0 so that I can learn in depth. BTW I am a .Net Developer and I have been working on C#.
0
skbhagat35
Asked:
skbhagat35
  • 3
  • 2
  • 2
  • +1
1 Solution
 
käµfm³d 👽Commented:
.NET is completely different (in terms of the compiled output) than VB6. You need to acquire a VB6 compiler, which is probably going to be a challenging task. You can try searching MSDN (if you have a subscription). Otherwise you can try auction sites or the like.
0
 
Éric MoreauSenior .Net ConsultantCommented:
Visual Studio .Net (version 2002 and later) cannot compile VB6 code.

If your project is trivial (really not complex) you may try the converter to bring to .Net but I never had really interesting results with it.
0
 
skbhagat35Author Commented:
Thanks guys, I know its outdated and nobody uses it today so what would be the best solution to VB6 codes I tried converting to my VS 2010 but it didn't convert, so I can only think re-write on VB.Net, any better suggestion on this, thanks
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Éric MoreauSenior .Net ConsultantCommented:
if you already tried the converter with no great success, you have 3 options:
-1 = re-write
-2 = keep it as is (find a VB6 compiler to recompile it)
-3 = give a try to http://www.artinsoft.com/
0
 
käµfm³d 👽Commented:
Many of the VB6 functions have been carried over into .NET, so a rewrite may not be completely terrible. However, depending on what your VB6 code is doing, it is probable that some of the code will not convert, and you will need to look for a .NET equivalent in such cases.
0
 
skbhagat35Author Commented:
This solution seems to be helpful
0
 
HooKooDooKuCommented:
If you're going to rewrite it, I don't see the point in rewriting it in VB.Net.  VB6 and VB.Net are two totally different languages (hence the reason you can't compile it in VS 2010).  It's called VB.Net because it shares some of the same basic syntax.  

As an example, in VB6, when you declare an array, you are declaring what is the largest index.  So an Array(10) has eleven elements: Array(0) to Array(10).  But in VB.Net, Arrays are now "C" like... in that you declare the number of elements.  So an Array(10) had ten elements: Array(0) to Array(9).

In other cases, entire functionallity of the language was removed... such as the ability to have control arrays.

So if you're going to rewrite it, rewrite it in a language you're experienced in ... C#.


But first, I would try to go around to colleages that have been around for a while and see if you can find someone that still has a copy of the Visual Studio 6.0 disks you could use to try to install Visual Studio 6.0. (Visual Studio went from sequential number to years when they went to .Net dropping Visual Basic.)  However, you will likely need either an XP machine or and XP Virtual Machine (such as is available with the upper tier versions of Windows 7) to install it on.
0
 
skbhagat35Author Commented:
Thanks, I did find the machine which has VS 6.0 but when i go into the VB part I get lost it comes out with form and other stuff, like winforms in VS2008 or later, as I have not worked with VB6 at all, I don't know how to play around it. so any suggestion regarding this will be helpful.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now