The Memory window is used to display the Memory information at the beginning of an address. The default address is 0 × 00000000. You can choose View> Debug Windows> Memory or press Alt + 6 to open the Memory window, as shown in Figure 1.76. This example allows you to view the content of a specified address in the Memory window.
The Watch window can only view the content of fixed variable length, while the Memory window can display the content of continuous addresses. Enter an address in the Memory window, which can be found in the Watch window. The Watch window not only displays the variable content, but also provides the address of each variable. Enter this address to view the variable content in the Memory window, or drag a variable directly to the Memory window list, the address and value of the variable are displayed in the Memory list.
(1) create a dialog box-based application.
(2) Add the OutputResult method to the DebugProgramDlg. h header file.
(3) The OutputResult method implementation code is as follows:
Void CDebugProgramDlg: OutputResult ()
{
CString strResult;
IntIResult=0;
// Start adding code
Char *Str