The example programs for Chapters 3 through 6 are Windows programs. They must be run from within the Microsoft Windows environment.
Note:
You cannot use the Run or Debug menu commands in PWB with a Windows program. To run your Windows program, switch to the Windows Program Manager. To debug a Windows program, switch to the Program Manager and execute the CodeView debugger from there.
·To run your program in Windows:
1.From the Windows Program Manager File menu, choose the Run command.
The Run dialog box appears.
2.Type the path and program name just as you would from the DOS command line.
For example, to run the HELLO program (assuming that HELLO.EXE is in the C700\MFC\SAMPLES\HELLO directory), type
C:\C700\MFC\SAMPLES\HELLO\HELLO.EXE
If you prefer, you can use the New command from the Program Manager's File menu to assign an icon to your program and tell Windows where to locate the executable file. Then you can run the program by double-clicking its icon. For information on this process, see your Microsoft Windows documentation.