vielkacarolina1239
asked on
Upgrading window application in vs 2003 to vs 2005.
Hi, I need to upgrade a window application in visual studio 2003 to visual studio 2005, I tried the conversion wizard but there are still many other libraries that need to be fixed. This is one of the error I am getting: 'FileSystemObject' is ambiguous in the namespace 'Scripting'.
Please assist when possible.
Thanks
Please assist when possible.
Thanks
Why are you using FSO in a .Net project?...use the System.IO namespace. VB.Net 2005 specifically has an entire "My.Computer.FileSystem" namespace for working with files as well.
ASKER
I am converting somebody else project.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you show us which line causes the "'FileSystemObject' is ambiguous in the namespace 'Scripting'" error?
ASKER
this line:
iReadFile = fso.OpenTextFile(sINIInput File, Scripting.IOMode.ForReadin g, False, Scripting.Tristate.Tristat eUseDefaul t)
iReadFile = fso.OpenTextFile(sINIInput
So what is "fso" declared as? Can we see the OpenTextFile() function?
ASKER
There is not an implementation for OpenTextFile(), I believe is built in, the fso file declaration is as follow
Dim fso As Scripting.FileSystemObject
Dim fso As Scripting.FileSystemObject
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys this solved the problem.