-
April 5th, 2004, 10:58 AM
#1
Import vc6 to vc7 tool...
I search a tool for converting vc6 projects to vc7 projects
.dsp -> .vcproj
.dsw -> .sln
outside of the Visual Studio IDE
(it would have be too easy )
-
April 5th, 2004, 01:51 PM
#2
I believe you can specify some command line parameters for the actual .NET IDE to do the conversion. A while back I had to convert some 100 projects and I didn't want to do it by hand, so I searched around and looked at the command line params and batched it like that (I think anyway, it was a while ago!).
Give that a look and post back any more Qs or comments
-
April 8th, 2004, 05:21 AM
#3
I've found the help page
"Upgrading Visual C++ Projects to Visual Studio .NET in Batch Mode"
in the Visual Studio .Net 2003 Documentation but the script does not work
I have tried to remake it in C# but the same error occurs....
When i call the LoadProject of the VCProjectEngine, it throw a 'System.Runtime.InteropServices.COMException with HRESULT: 0x8005050B
here is my code :
static int Main(string[] args)
{
if (args.Length != 2)
{
Console.Write("Usage : Vc6ToVc7 oldproj.dsp newproj.vcproj\n");
return -1;
}
VCProjectEngine vcEngine = new VCProjectEngineObjectClass();;
if (!File.Exists(args[0]))
{
Console.WriteLine("Error [{0}] doesn't exist.\n", args[0]);
return -1;
}
VCProject vcProj = (VCProject)vcEngine.LoadProject(args[0]);
if (!File.Exists(vcProj.ProjectFile))
{
vcProj.ProjectFile = args[1];
Console.WriteLine("Converting [{0}] to [{1}].\n", args[0], args[1]);
vcProj.Save();
}
else
Console.WriteLine("Error [{0}] already exists.\n", vcProj.ProjectFile);
return 0;
}
Any idea ?
-
April 8th, 2004, 07:56 AM
#4
oups i've found my error, i just give a dsw for the first argument, and not a dsp...
Now i want to, import the dsw with all the dependencies to a sln ...
Any ideas ?
-
April 8th, 2004, 08:00 AM
#5
Nope, sorry, that one's beyond what I researched. :/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|