vs2005 RC1 & Vs6 - Perhaps Severe Coexistence Problem?
I've been running Beta-II and VS6 successfully (Vs6 was there before vs2005). Later I installed RC1 and found it to be stable has run as expected.
Later I reinstalled XP-Pro and added VS2005 RC1. Yesterday I installed VS6 patched to SP6 and have had problems. I haven't had much of chance to examine how extensive the problems are.
I noticed that a pre-existing source file looked OK until I added a newline of code:
pLoc = Instr(instring, "<font size=-1>") - This fails where pLoc is an integer, and instring is declared to be a string. The error message is:
"Too many arguments to 'Public ReadOnly Default Property Chars(index As Integer) As Char'.
Newly written code referring to instr generates no errors IN NEW PROJECTS and appears to have no problems. It is new additions to this old code (written over the weekend) that is a problem.
The unmodifed old code runs fine in debug mode.
I have ....
I have removed vs2005 from my system and reinstalled it to no avail. Addition of new instr functions in old code is broken. I do not know how extensive this is o what other new functions in old code will be broken.
Imports for this code were:
Imports System
Imports System.Net
Imports System.Text
Imports System.IO
In order to provide some clarity, I'll run the risk of redundancy.
The installation order was:
New XP Pro installation with all patches - three weeks ago.
vs2005 at that time. Things have worked as expected for five weeks.
Installed VS6 yesterday - result: I can't add new instr functions to an existing program.
Here is a sample of the failing code:
While instring.Length <> 0
Dim ploc As Integer = Instr(instring, "green") ' <- New line generates error at design time
tmp = TrimFromBeginningBefore(instring, cElementEnding)
If tmp <> "" Then
If instring.Substring(3).Contains("
") Then
instring = instring.Replace(tmp, "")
Else
instring = ""
End If
Else
If instring.length > 0 And Not instring.contains(cLF) Then
tmp = instring
instring = ""
End If
End If
This program has instr calls all through it that appear to be functioning well. However, I can take a functioning line of code with an instr call and add it as if it is new and the compiler will reject it.
Of note: I can write new instr functions to other pre-existing vs2005 code this failure does not occur.
I have also tried one additional thing. I have:
1.) Created a new project
2.) Replaced the existing form1.* files with this code and added the module called module.vb and I have seen the same result. I cannot add new instr functions.
Any suggestions would really be appreciated. I do not know which is the best forum to report this in.
Renee

