Use 'C' in VS .NET 2003?
-
Hi guys, I'm taking a class for which all my material must be written in C, not C++ or C#. Does anyone know if theres an expansion/download for visual studio that allows one to do this? I can get basic C to compile if i create a Visual C++ project > Win32 > Empty Project, and then rename a text file to the .c extension, but the DOS prompt won't wait on functions like scanf() that require user input. I really don't want to develop in vi on our campus Sun machines, so any input is much appreciated. Thanks, Justin
-
Hi guys, I'm taking a class for which all my material must be written in C, not C++ or C#. Does anyone know if theres an expansion/download for visual studio that allows one to do this? I can get basic C to compile if i create a Visual C++ project > Win32 > Empty Project, and then rename a text file to the .c extension, but the DOS prompt won't wait on functions like scanf() that require user input. I really don't want to develop in vi on our campus Sun machines, so any input is much appreciated. Thanks, Justin
Justin, I never got it to work right with just changing the file names, I use the command line options: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/\_core\_.2f.tc.2c\_2f.tp.asp
-
Hi guys, I'm taking a class for which all my material must be written in C, not C++ or C#. Does anyone know if theres an expansion/download for visual studio that allows one to do this? I can get basic C to compile if i create a Visual C++ project > Win32 > Empty Project, and then rename a text file to the .c extension, but the DOS prompt won't wait on functions like scanf() that require user input. I really don't want to develop in vi on our campus Sun machines, so any input is much appreciated. Thanks, Justin
You should be able to write "plain C" applications with VS.NET. Give your files a ".C" extension and it should work OK. What errors do you get?
store your internet favourites online - www.my-faves.co.uk