CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Posts
    4

    Question 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 )

  2. #2
    Join Date
    Apr 2002
    Location
    PA, USA
    Posts
    1,658
    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
    =--=--=--=--=--=--=--=--=--=--=--=--=--=
    Please rate this post to show your appreciation for those that helped you.

    Before You Post A Question, Please Read This: How & When To Ask Your Question
    =--=--=--=--=--=--=--=--=--=--=--=--=--=

    -eli
    http://www.toad-software.com
    http://www.dailymission.com - Do It Daily

  3. #3
    Join Date
    Mar 2004
    Posts
    4
    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 ?

  4. #4
    Join Date
    Mar 2004
    Posts
    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 ?

  5. #5
    Join Date
    Apr 2002
    Location
    PA, USA
    Posts
    1,658
    Nope, sorry, that one's beyond what I researched. :/
    =--=--=--=--=--=--=--=--=--=--=--=--=--=
    Please rate this post to show your appreciation for those that helped you.

    Before You Post A Question, Please Read This: How & When To Ask Your Question
    =--=--=--=--=--=--=--=--=--=--=--=--=--=

    -eli
    http://www.toad-software.com
    http://www.dailymission.com - Do It Daily

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured