473,769 Members | 7,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving a project from 2003 to 2005

Just getting started with VB2005 and unsure how best to move active
VB2003 projects into the VB2005 environment.

Nornally I've versioned my VB2003 projects at specific development
points by starting a new (blank) project and using Add Existing Item
to import all the files from the previous project version before
saving in a new folder location belonging to the new project.

But on doing this in the VB2005 environment I find I've got a couple
of 'multiple definitions with identical signatures' errors in code
belonging to the form designer itself. Presumably some aspects of the
way the 2003 form designer worked are now deprecated or otherwise
unworkable in the 2005 designer.

Any suggestions as to how to fix these errors please?

JGD
Feb 12 '06 #1
8 2138
Anyone, please?

JGD
Feb 13 '06 #2
John,

Are you sure it are "Errors". In VB2005 is now added "Warnings", I cannot
say they mean nothing, however it is not more than it say, warnings and they
are given on many places a VB programmer would not even think on to do it
and in the idea of some of us even to often from a kind of C# thinking (See
the long thread now active about passing the "").

I assume that you are talking about window forms projects.

I hope this gives an idea.

Cor
Feb 13 '06 #3
On Mon, 13 Feb 2006 10:21:32 +0100, "Cor Ligthert [MVP]"
<no************ @planet.nl> wrote:
John,

Are you sure it are "Errors". In VB2005 is now added "Warnings", I cannot
say they mean nothing, however it is not more than it say, warnings and they
are given on many places a VB programmer would not even think on to do it
and in the idea of some of us even to often from a kind of C# thinking (See
the long thread now active about passing the "").

I assume that you are talking about window forms projects.


Thanks. Yes this is a Windows Form project. And yes these are
definitely 'errors' - there are many other 'warnings' (it's a
reasonably large project). But the warnings I can understand for the
most part and deal with if necessary. The errors are stopping me
compiling the project under 2005.

I've found the Convert Project option, which seems to run -
unsurprisingly - if you open the 2003 project from its original
location in 2005. But AFAICS the code files (ie the .vb files) remain
unchanged.

I guess what I'm confused about is that the automatically-generated
form code, which is what is generating my errors, isn't changed in the
..vb files, yet something external to them is clearing the errors in a
converted 2005 environment. But until I understand this issue then I'm
not comfortable continuing to work in 2005 because I don't know how -
reliably - to make a new version of my project.

JGD
Feb 13 '06 #4
John,

Can you give us an example in code? Beside that anoying 'multiple
definitions with identical signatures' I hope that it will be fixed in SP1.
In those cases as with the dialog.result, you have to give the full path.

System.Windows. Forms.DialogRes ult.OK

Cor
"John Dann" <ne**@prodata.c o.uk> schreef in bericht
news:ov******** *************** *********@4ax.c om...
On Mon, 13 Feb 2006 10:21:32 +0100, "Cor Ligthert [MVP]"
<no************ @planet.nl> wrote:
John,

Are you sure it are "Errors". In VB2005 is now added "Warnings", I cannot
say they mean nothing, however it is not more than it say, warnings and
they
are given on many places a VB programmer would not even think on to do it
and in the idea of some of us even to often from a kind of C# thinking
(See
the long thread now active about passing the "").

I assume that you are talking about window forms projects.


Thanks. Yes this is a Windows Form project. And yes these are
definitely 'errors' - there are many other 'warnings' (it's a
reasonably large project). But the warnings I can understand for the
most part and deal with if necessary. The errors are stopping me
compiling the project under 2005.

I've found the Convert Project option, which seems to run -
unsurprisingly - if you open the 2003 project from its original
location in 2005. But AFAICS the code files (ie the .vb files) remain
unchanged.

I guess what I'm confused about is that the automatically-generated
form code, which is what is generating my errors, isn't changed in the
.vb files, yet something external to them is clearing the errors in a
converted 2005 environment. But until I understand this issue then I'm
not comfortable continuing to work in 2005 because I don't know how -
reliably - to make a new version of my project.

JGD

Feb 13 '06 #5
On Mon, 13 Feb 2006 12:57:43 +0100, "Cor Ligthert [MVP]"
<no************ @planet.nl> wrote:
Can you give us an example in code?


Well if necessary I will, but it's not so much a specific error that
I'm concerned about, more that I don't understand or know how to do
something that's important to me. Can I go back to my original
question?

In the past under VB2003 I've always found it useful to version my
programs. In other words, when I've achieved a development milestone
with a given code version, to freeze that code and begin a new
development stage with a new copy of the code from the previous stage.

To do this, I start a new empty (eg WinForms) project with an
incremented name and with the files saved in a new folder location, eg
MyProject8xx, and with that project open then use 'Add Existing Item'
to import all the .vb files (and only the .vb files) from the previous
version.

This has worked fine in the past within VB2003. But in trying it under
VB2005 I get these various errors apaprently associated with the Form
Designer-generated code. This is true whether or not I try to import
the .vb files from an 'old' VB2003 folder or one that's been opened
under VB2005 and notionally converted.

It seems that there is something external to the .vb files that needs
importing too. (This seems a bit of a backward step or at least
inelegant in that the complete code for the converted file is no
longer contained within eg a form's .vb code. But be that as it
may...)

Is there a better way of versioning my projects under VB2005?

JGD
Feb 13 '06 #6
John,

You can copy complete folders to create those milestones. Is that what you
ask (I assume you are not using SourceSave). I do that for 2003 and for
2005.

Cor
Feb 13 '06 #7
No not using SourceSave, And yes folder copying is one option for the
milestone versions. But:

I did like the idea of importing individual .vb files because it meant
that by importing only those specific files I could clear out at
every stage any classes or forms that I had started but then thought
better of and subsequently discarded but not deleted. This 'cleaning'
process isn't quite as simple to apply with folder copies.

What is the minimum file/folder set that I can copy? Maybe I could
copy all of the files in the top level of the project folder but none
of the subfolders, ie \bin and the like. Yes I may need to reference
external dll's again but I don't mind that - it helps me to stop a
project going stale with references that are no longer needed. And a
recompile isn't a big deal.

And I need to increment the project name for the new version, but
maybe that's easy even after a folder copy. I'll need to check into
that.

JGD

On Mon, 13 Feb 2006 13:45:49 +0100, "Cor Ligthert [MVP]"
<no************ @planet.nl> wrote:
John,

You can copy complete folders to create those milestones. Is that what you
ask (I assume you are not using SourceSave). I do that for 2003 and for
2005.

Cor


Feb 13 '06 #8
John,

A not converted VBNet form class has at least three files

The form.vb, the form.designer.v b and the form.resx

The same is with a generated dataset which has even more.

However there are more file types now. I would keep it with copying it
complete to a compressed folder.

Just my idea.

Cor
Feb 13 '06 #9

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

Similar topics

18
2368
by: steve.anon | last post by:
Hi I'm a Java developer moving to windows only applications. Of course the first thing I thought was "well at least, without the VM now I can write desktop applications that run real fast". So I was happily heading to refresh my C++ memory and learn MFC when I ran into this on Wikipedia: ".... applications written in Managed C++ have automatic garbage collection and will run via the .NET virtual machine, just as applications written...
5
1309
by: Ken Dopierala Jr. | last post by:
Hi, I'm in the middle of a project cycle using VS.Net 2002. I'd like to purchase VS.Net 2003 and make the jump to it but first I want to know how much of a hassle it is loading my VS.Net 2002 project in 2003. The project isn't under source control so that should make it easier. But if I need to make a lot of modifications to the code so it'll run on 2003 I might just wait a few months till the next project. Thanks for sharing any...
0
1708
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire solution uses the following technologies - Windows Server 2003 Windows Mobile 2003 Windows XP Professional SP2 Windows 2000 Professional SP4 SQL Server 2000
7
1202
by: NH | last post by:
Hi, I have a VS 2003 asp.net 1.1 project hosted on a windows 2003 server. I want to move it to asp.net 2.0 and VS 2005. Do I need to install VS 2005 on the server first and then on my development PC and then upgrade the app from my development PC? Thanks
2
3595
by: Adam Hartshorne | last post by:
I have just upgraded to Visual Studio 2005 and have loaded in a project i have been working on, and the code compiles ok but fails to link correctly, as shown below. Any suggestions about what is wrong would be much appreciated, 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class...
3
1329
by: Chris S | last post by:
We are moving from ASP.Net 1.1 to ASP.Net 2.0. As we do not have the luxury of spending weeks trying out different techniques, I'd like to rely on some tried and true methods, but need some feedback so we don't stray too far from best practices. ASP.Net User Controls (ascx files) Our team is very comfortable with the use of ASP.Net User Controls which do
4
1376
by: =?Utf-8?B?R1Q=?= | last post by:
I have a Form which has a great number of events. I thought I would organize the project by moving some of the code into multiple '.cs' files (since the Form.cs was getting huge). When I move them, it seems that Visual Studio can no longer find them when I open a Button object (for example) and double click on the previously created event. On top of this, Visual Studio creates a new event that is blank. I know the program can 'see' my moved...
3
1560
by: Claire | last post by:
Im transferring a visual studio 2003 project to Visual Studio 2005. The solution includes a windows installation project. With 2003 creating the setup got complicated with the crystal reports part and I had to include several merge projects plus obtain a license key. Is it the same with 2005? Im recreating the setup from the bottom. I dont think I found any merge files in 2005 directories. Should I point setup at the old ones? thanks...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.