Creating a Console (DOS) C/ASM Application with Visual Studio .NET

1. Start Visual Studio .NET
     From Task Bar: "Start" / "All Programs" / "Microsoft Visual Studio .NET" /
                    "Microsoft Visual Studio .NET"

2. "File" / "New" / "Project"
     Project Types: "Visual C++ Project"
     Templates: "Win32 Project"
     Give the project a name and browse to a directory location
     Click "OK"
        A new directory with that name will be created in that location
        That directory will hold all the project files


3. In resulting "Win32 Application Wizard Window"
     Click "Application Settings"
        Application type: "Console application"
        Additional options: "Empty project"
     Click "Finish"

4. Make sure "Solution Explorer" pane is open; if not, "View" / "Solution Explorer"

5. Create a new C/C++ source file 
    "File" / "New"
      Categories: "Visual C++"
      Templates: "C++ File (cpp)"
         Type in the code and save 
            "File" / "Save source1 as", Type: "C Source File", and enter a file name

5a. (or copy an existing C/C++ source file to the new project directory)

6.  Add the file to the project:
      "Project" / "Add existing item", choose the C source file & click "Open"

7.  If the project is to include an assembly language module,
    copy the .asm file to the project directory and add it to the project
    (as in steps 5a and 6)

8.  If the project includes an assembly language module, add a custom build step:
      In Solution Explorer Right click on the asm file
      Choose "Custom Build Step" in "Configuration Properties"
      Enter the following "Command Line":
       ml -c -Zi "-Fl$(IntDir)\$(InputName).lst" "-Fo$(IntDir)\$(InputName).obj" "$(InputPath)"
      Click "OK"
      Repeat the above, entering the following "Outputs" line:
       $(IntDir)\$(InputName).obj
      Click "OK"

9.  If you wish to have an assembly/machine language listing of the code generated:
       In Solution Explorer right click on the project name
       Choose "C/C++" under "Configuration Properties"
       Click to right of "Assembler Output" and click the down arrow next to "No Listing"
       Click "Assembly, Machine Code and source (/FAcs)"
       Click "OK"

10. Build the project
       "Build" / "Build Solution"
    The assembled listing (.cod) of the .C file will be in project's Debug directory

11. If there are no errors, Run the program
       "Debug" / "Start" or "Debug"/ "Start Without Debugging"

12. Debugging -- In your C or ASM Code you may want to:
       set break points (right click in margin to left of statement)
       start/resume execution (F5)
       single step through a function or procedure (F11)
       single step over a function or procedure (F10)
       examine registers ("Debug" / "Window" / "Registers")
       examine memory locations ("Debug" / "Window" / "Memory" / "Memory 1")
           then enter pointer register name (EBX, EBP, ESI, EDI) in "Address" field