I have C code that was compiled on Windows NT with Microsoft Visual Studio 6.0. I am migrating this code to a new machine using Windows XP. What IDE is suitable for this? I don't think MS Visual 6.0 has been designed for XP... Can I just use Visual Studio C++ to compile C code and keep the same functionality?
You can download Microsoft Visual C++ Express Edition for free. That's pretty much what everyone uses on Windows.
You can still use Visual Studio 6 with Windows XP.
You could also download Visual Studio C++ Express
Downloading and installing MinGW could be an option as well as long as the C is compatible.
Yes, you can use any Visual Studio that you have installed or will install on your Windows XP. The code should compile just fine, however there might be some compiler warnings if you are using "unsafe" versions of some C functions.
I've had good results with LCC-Win32:
http://www.cs.virginia.edu/~lcc-win32/
It's free and only occupies 50 MB of disk space.
MSVC 6 works fine on XP. I highly recommend applying Service Pack 6 though.
MSVC++ 2008 Express may be the answer; however this free version of VC++ does not support MFC out of the box; you may be able to get it to work with MFC libraries from VC++ 6 (but not the 'visual' design tools). It will however build Win32 API code, and can be used for .NET/Windows Forms applications with 'visual' development capabilities.
If you need MFC, then you may be better off sticking with v6.0 which works in XP (get the latest service pack), or a paid-for edition of Visual Studio.
From your wording, I'm guessing you already have a later version of Visual Studio than VC6, so yes - you should be able to open any project/solution and proceed, with a couple of caveats:
- Make sure to do this to a copy of your project (probably a copy of the whole source tree, actually), as VS will prompt you to make a 1-way conversion of the old VC6 project to the new format. Once this is done, you can't open it again in VC6.
- You may find compile or link errors when you try to build the project. Most likely these will be due to changes in the C++ language or libraries used between the two versions, but if the code was reasonably well crafted, this shouldn't be too hard to fix.
But, as others have said, yes - VC6 still works fine on XP. The only drawback is you may not be able to get access to newer C++ language features, or Windows SDK features directly.
Best of luck!
You can use pelles, it's a c ide for windows. It´s compiler is based on lcc.