• Microsoft Developer Network
  • ▶Highlights
  • ▶Technical Articles
  • ▶Sample Code
  • ▶Resource and Strategy
  • ▶Knowledge Base and Bug Lists
  • ▶Books and Magazine Articles
  • ▼Product Documentation
    • ▶C/C++ 7.0
    • ▶Macro Assembler 6.0
    • ▶Multimedia Development Kit
    • ▶OLE 1.0 Programmer's Reference
    • ▶Win32 SDK for Windows NT
    • ▶Windows 3.1 DDK
    • ▼Windows 3.1 SDK
      • ▶Getting Started
      • ▼Guide to Programming
        • Title Page
        • ▶Introduction
        • ▶PART 1 Programming in the Windows Environment
        • ▼PART 2 Programming Windows Applications
          • PART 2 Programming Windows Applications
          • ▶Chapter 3 Output to a Window
          • ▶Chapter 4 Keyboard and Mouse Input
          • ▶Chapter 5 Icons
          • ▶Chapter 6 Cursors
          • ▶Chapter 7 Menus
          • ▶Chapter 8 Controls
          • ▶Chapter 9 Dialog Boxes
          • ▼Chapter 10 File Input and Output
            • Chapter 10 File Input and Output
            • 10.1 Overview
            • 10.2 Rules for Handling Files in Windows
            • 10.3 Creating a File
            • 10.4 Opening an Existing File
            • 10.5 Reading From and Writing To a File
            • 10.6 Reopening a File
            • 10.7 Prompting for a File
            • 10.8 Checking the Status of an Open File
            • ▼10.9 Sample Application: EditFile
              • 10.9 Sample Application: EditFile
              • 10.9.1 Adding a Definition to the Header File
              • 10.9.2 Adding a SaveAs Dialog Box
              • 10.9.3 Adding Include Statements
              • 10.9.4 Adding New Variables
              • 10.9.5 Replacing the WM_COMMAND Case
              • 10.9.6 Adding WM_QUERYENDSESSION and WM_CLOSE Cases
              • 10.9.7 Modifying the OpenDlg Dialog Box Procedure
              • 10.9.8 Adding a SaveAsDlg Dialog Box Procedure
              • 10.9.9 Adding Helper Functions
              • 10.9.10 Exporting the SaveAsDlg Dialog Box Procedure
              • 10.9.11 Adding Space to the Heap
              • 10.9.12 Compiling and Linking
              • 10.10 Related Topics
          • ▶Chapter 11 Bitmaps
          • ▶Chapter 12 Printing
          • ▶Chapter 13 Clipboard
        • ▶PART 3 Advanced Programming Topics
      • ▶Programming Tools
      • ▶Programmer's Reference Volume 1: Overview
      • ▶Programmer's Reference Volume 2: Functions
      • ▶Programmer's Reference Volume 3: Messages, Structures, and Macros
      • ▶Programmer's Reference Volume 4: Resources
    • ▶QuickC for Windows
  • ▶Unsupported Tools & Utilities