/////////////////////////////////////////////////////////////// // TryCompilingCcode.c // // - Small test to see how Visual Studio.Net deals // // with The C Programming Lanuague // // // // Language: Visual Studio C // // Platform: Dell Dimension 8100, Windows 2000, SP2 // // Application: Demo for Tushita Sinha // // Author: Jim Fawcett, CST 2-187, Syracuse Univ // // (315) 443-3948, jfawcett@twcny.rr.com // /////////////////////////////////////////////////////////////// /* Steps to Create this Project: 1 - created a C++ console application with VS wizard 2 - deleted all the files and added a new item, selecting a .cpp file (no .c option) then renaming it's extension to .c 3 - create the contents shown below 4 - Select the Compile as C Code option in project properties: C/C++: Advanced: Compile As 5 - Select the Not Using Precompiled Headers in project properties: C/C++: Precompiled Headers: Create/Use Precompiled Header 6 - For testing enter some arguments in project properties: Debugging: Command Arguments Note: In steps 4, 5, and 6, you get to properties by right clicking on project name in solution view. */ #include int main(int argc, char* argv[]) { int index; printf("\nHello from C\n"); printf("\n My Command Line Arguments are:"); for(index=0; index