473,387 Members | 1,882 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,387 software developers and data experts.

Converting VB application to VB.net

Hi all,

I have a project that was created in Visual Studio 6 using VB. Is it
possible to open this project in Visual Studio .NET and automatically
convert it into .NET, or do I have to manually convert it a bit at a
time? I did have a go at opening it up in VS.NET, but it didn't
recognise the libraries. Maybe I just need to tell it where to look,
but I couldn't work out how.

Cheers,
Sarah

Nov 21 '05 #1
9 1207
CT
You can find the Visual Basic Upgrade Wizard by clicking File | Open |
Convert.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, AND MSF
http://www.apress.com/book/bookDisplay.html?bID=105
Communities - http://community.integratedsolutions.dk

<sa**********@uk.millwardbrown.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi all,

I have a project that was created in Visual Studio 6 using VB. Is it
possible to open this project in Visual Studio .NET and automatically
convert it into .NET, or do I have to manually convert it a bit at a
time? I did have a go at opening it up in VS.NET, but it didn't
recognise the libraries. Maybe I just need to tell it where to look,
but I couldn't work out how.

Cheers,
Sarah

Nov 21 '05 #2
Thanks for your prompt reply!

I wasn't using an upgrade wizard, I just created a blank project,
copied the files across and included them in the project, but I
couldn't get it to recognise the folders and directory structure. I'm
not very familiar with VB, and haven't used the .NET studio recently
except for C# web projects! This is a windows application, so I'm a
bit lost.

The errors I was getting is that is couldn't find the .h libary files.

Cheers,
Sarah

Nov 21 '05 #3
sa**********@uk.millwardbrown.com schrieb:
Hi all,

I have a project that was created in Visual Studio 6 using VB. Is it
possible to open this project in Visual Studio .NET and automatically
convert it into .NET, or do I have to manually convert it a bit at a
time? I did have a go at opening it up in VS.NET, but it didn't
recognise the libraries. Maybe I just need to tell it where to look,
but I couldn't work out how.


What does "not recognize" mean? Which errors do you get?

First, you must make sure that the project is compilable in VB6 on the same
machine. If it's not event that, the wizard is also not able to upgrade it
due to missing information.

I think you know that using the upgrade wizard is only the first part of the
work. VB.Net is based on a completely new system and some/many basics
changed. Still the language syntax is pretty similar. Depending on the size
and structure of your VB6 project, you might have to do a lot of additional
manual work. Sometimes it's even better to redesign and rewrite the project
in VB.Net because there are different/better approaches now.

Armin
Nov 21 '05 #4
<sa**********@uk.millwardbrown.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I have a project that was created in Visual Studio 6 using VB.
Is it possible to open this project in Visual Studio .NET and
automatically convert it into .NET, or do I have to manually convert
it a bit at a time?


No; it won't upgrade VB "proper" code for you (despite the existence
and/or claims of the so-called "Upgrade Wizard") and, even if it did,
what came out the "other end" of the process would run like a dog,
having to work around the simply *massive* differences in the two
architectures.

Even worse, unless you're prepared to venture out into the
Mysterious Land of InterOp, you can't even *rewrite* the
application "a bit at a time" (and yes; I really /did/ mean "rewrite");
you have to do the /whole/ application, all in one go.

HTH (but doubt it, sorry),
Phill W.
Nov 21 '05 #5
To use the Upgrade Wizard, open the ORIGINAL VB6 project in VS .NET --
don't copy the code.

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
Nov 21 '05 #6
sa**********@uk.millwardbrown.com schrieb:
Thanks for your prompt reply!

I wasn't using an upgrade wizard, I just created a blank project,
copied the files across and included them in the project, but I
couldn't get it to recognise the folders and directory structure. I'm
not very familiar with VB, and haven't used the .NET studio recently
except for C# web projects! This is a windows application, so I'm a
bit lost.

The errors I was getting is that is couldn't find the .h libary files.


*.h files are header files for C, not VB.Net. This one is a VB.Net newsgroup.
Armin
Nov 21 '05 #7
>You can find the Visual Basic Upgrade Wizard by clicking File | Open | Convert.

Ooh, I missed this reply before.

That's just what I need to get started, thanks!

The code is mostly calculations in classes, so will probably run okay
just using the converter for now.

Nov 21 '05 #8
Oops, getting the error mixed up with another project somewhere. It's
definately a VB project I'm trying to convert! No need to go back and
check out the error that I actually did get now I've found the
converter, my method was fatally flawed anyway!

Nov 21 '05 #9
sa**********@uk.millwardbrown.com schrieb:
You can find the Visual Basic Upgrade Wizard by clicking File | Open | Convert.

Ooh, I missed this reply before.

That's just what I need to get started, thanks!

The code is mostly calculations in classes, so will probably run okay
just using the converter for now.


Try to enable Option Strict. This helped me find some faults that haven't
been discovered in the VB6 project (and then could be corrected there). :-)
Armin
Nov 21 '05 #10

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

Similar topics

4
by: mustafa | last post by:
Dear sir , I have built my application in visual basic 6.0 and crystal Report8.5 , Now i migrated my application to VB.net using the upgrade wizard.My visual basic form is upgraded to vb.net...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
3
by: Derek Martin | last post by:
Hi there, kind of a dumb question, but it falls in line with not understanding (go figure) every nuance about .Net. Is it relatively straight forward to convert a VB.Net built app to an ASP.Net...
3
by: Mary | last post by:
Hi, Does anyone know of any software out there that would convert an application written in VBScript to either VB.NET or C#/C++ quite quickly for me, or will I have to re-write the application...
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
2
by: shenanwei | last post by:
DB2 V8.2 on AIX, type II index is created. I see this from deadlock event monitor. 5) Deadlocked Connection ... Participant no.: 2 Lock wait start time: 09/18/2006 23:04:09.911774 .........
1
by: SLC via DBMonster.com | last post by:
Hello I'm a newbie to this and I need help, please My question is, we currently have a IDMS db and will be converting to DB2. What are the things I should do? The IDMS has not been documented very...
6
by: ll | last post by:
Hi, I'm currently working with a 'classic ASP' intranet site which uses a SQL server and am looking for possible ways to market it as an application for certain medical fields. Where would be a...
1
by: =?Utf-8?B?SG93YXJkIFBpbnNsZXk=?= | last post by:
I'm trying to convert a Web Site to the Web Application project model and I'm running into compile errors that do not seem to be covered by the guidance I found at "Converting a Web Site Project to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.