PC Review


Reply
Thread Tools Rate Thread

Compile errors when upgrading to VS.NET 2003

 
 
Ray Wampler
Guest
Posts: n/a
 
      29th Aug 2003
According to the information on the Microsoft web site, code written in
VB.NET 2002 can simply be recompiled using VS.NET 2003. However, I have
found that code which compiles cleanly in VS.Net 2002 gets new compile
errors in VS 2003.

It appears that there are new scope rules in VB.NET 2003. I get "Name not
declared" errors on public functions in public modules. The errors are
fixed by wrapping the module in a name space and then adding an "imports"
for the name space in other modules that reference the public functions.

I've searched the MSDN KB, but could find no reference to language changes
between VB.Net 2002 and 2003. Does anyone have a list of language changes
or differences in compiler switches to would help someone wanting to upgrade
from VS.Net 2002 to VS.Net 2003?

Thanks,

Ray Wampler
Technical Director, 81x.com


 
Reply With Quote
 
 
 
 
Adam Braden
Guest
Posts: n/a
 
      4th Sep 2003
Can you post the repro code? In a simple app I wasn't able to repro what
you described.

--
Thanks,
Adam Braden, VB Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "PresterJohn" <(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.languages.vb
| References: <(E-Mail Removed)>
| Subject: Re: Compile errors when upgrading to VS.NET 2003
| Lines: 29
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <yKd4b.310899$YN5.213365@sccrnsc01>
| NNTP-Posting-Host: 12.228.154.243
| X-Complaints-To: (E-Mail Removed)
| X-Trace: sccrnsc01 1062299678 12.228.154.243 (Sun, 31 Aug 2003 03:14:38
GMT)
| NNTP-Posting-Date: Sun, 31 Aug 2003 03:14:38 GMT
| Organization: Comcast Online
| Date: Sun, 31 Aug 2003 03:14:38 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix.com!newsfeed.cwix.co
m!prodigy.com!in.100proofnews.com!in.100proofnews.com!cycny01.gnilink.net!cy
clone1.gnilink.net!wn14feed!wn13feed!wn11feed!worldnet.att.net!204.127.198.2
03!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:132742
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| http://www.gotdotnet.com/team/change...1/default.aspx
|
|
| "Ray Wampler" <(E-Mail Removed)> wrote in message
| news:(E-Mail Removed)...
| > According to the information on the Microsoft web site, code written in
| > VB.NET 2002 can simply be recompiled using VS.NET 2003. However, I have
| > found that code which compiles cleanly in VS.Net 2002 gets new compile
| > errors in VS 2003.
| >
| > It appears that there are new scope rules in VB.NET 2003. I get "Name
not
| > declared" errors on public functions in public modules. The errors are
| > fixed by wrapping the module in a name space and then adding an
"imports"
| > for the name space in other modules that reference the public functions.
| >
| > I've searched the MSDN KB, but could find no reference to language
changes
| > between VB.Net 2002 and 2003. Does anyone have a list of language
changes
| > or differences in compiler switches to would help someone wanting to
| upgrade
| > from VS.Net 2002 to VS.Net 2003?
| >
| > Thanks,
| >
| > Ray Wampler
| > Technical Director, 81x.com
| >
| >
|
|
|

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP errors 1010,1014 and 1016 after upgrading windows server 2003 =?Utf-8?B?Tml0aW4=?= Microsoft Windows 2000 Networking 3 12th Dec 2005 01:06 PM
Compile errors in Access 2003 =?Utf-8?B?RW5uZXg=?= Microsoft Access VBA Modules 1 6th Feb 2005 12:13 PM
Compile errors in VS.Net 2003 - VB.Net solution Ravi Chaudhary Microsoft VB .NET 1 3rd Sep 2004 10:59 PM
Compile errors in VS.Net 2003 Ravi Chaudhary Microsoft Dot NET 1 1st Sep 2004 06:03 AM
Excel and Word 2003 VB compile errors ChasR Microsoft Excel Crashes 2 31st Dec 2003 11:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 PM.