You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indicates the target of the dump output. Possible values, which can be combined using the bitwise-OR (**`|`**) operator, are as follows:
560
560
561
561
- AFX_STACK_DUMP_TARGET_TRACE Sends output by means of the [TRACE](#trace) macro. The TRACE macro generates output in debug builds only; it generates no output in release builds. Also, TRACE can be redirected to other targets besides the debugger.
@@ -625,13 +625,13 @@ To use this function successfully:
625
625
626
626
Enables and disables the memory leak dump in the AFX_DEBUG_STATE destructor.
627
627
628
-
```
628
+
```cpp
629
629
BOOL AFXAPI AfxEnableMemoryLeakDump(BOOL bDump);
630
630
```
631
631
632
632
### Parameters
633
633
634
-
*bDump*<br/>
634
+
*bDump*\
635
635
[in] TRUE indicates the memory leak dump is enabled; FALSE indicates the memory leak dump is disabled.
636
636
637
637
### Return Value
@@ -655,13 +655,13 @@ If your application loads another library before the MFC library, some memory al
655
655
656
656
Diagnostic memory tracking is normally enabled in the Debug version of MFC.
657
657
658
-
```
658
+
```cpp
659
659
BOOL AfxEnableMemoryTracking(BOOL bTrack);
660
660
```
661
661
662
662
### Parameters
663
663
664
-
*bTrack*<br/>
664
+
*bTrack*\
665
665
Setting this value to TRUE turns on memory tracking; FALSE turns it off.
666
666
667
667
### Return Value
@@ -689,7 +689,7 @@ For more information on `AfxEnableMemoryTracking`, see [Debugging MFC Applicatio
689
689
690
690
Tests a memory address to make sure it represents a currently active memory block that was allocated by the diagnostic version of **`new`**.
691
691
692
-
```
692
+
```cpp
693
693
BOOL AfxIsMemoryBlock(
694
694
const void* p,
695
695
UINT nBytes,
@@ -698,13 +698,13 @@ BOOL AfxIsMemoryBlock(
698
698
699
699
### Parameters
700
700
701
-
*p*<br/>
701
+
*p*\
702
702
Points to the block of memory to be tested.
703
703
704
-
*nBytes*<br/>
704
+
*nBytes*\
705
705
Contains the length of the memory block in bytes.
706
706
707
-
*plRequestNumber*<br/>
707
+
*plRequestNumber*\
708
708
Points to a **`long`** integer that will be filled in with the memory block's allocation sequence number, or zero if it does not represent a currently active memory block.
709
709
710
710
### Return Value
@@ -727,7 +727,7 @@ It also checks the specified size against the original allocated size. If the fu
727
727
728
728
Tests any memory address to ensure that it is contained entirely within the program's memory space.
729
729
730
-
```
730
+
```cpp
731
731
BOOL AfxIsValidAddress(
732
732
const void* lp,
733
733
UINT nBytes,
@@ -736,13 +736,13 @@ BOOL AfxIsValidAddress(
736
736
737
737
### Parameters
738
738
739
-
*lp*<br/>
739
+
*lp*\
740
740
Points to the memory address to be tested.
741
741
742
-
*nBytes*<br/>
742
+
*nBytes*\
743
743
Contains the number of bytes of memory to be tested.
744
744
745
-
*bReadWrite*<br/>
745
+
*bReadWrite*\
746
746
Specifies whether the memory is both for reading and writing (TRUE) or just reading (FALSE).
747
747
748
748
### Return Value
@@ -767,18 +767,18 @@ The address is not restricted to blocks allocated by **`new`**.
767
767
768
768
Use this function to determine whether a pointer to a string is valid.
769
769
770
-
```
771
-
BOOL AfxIsValidString(
770
+
```cpp
771
+
BOOL AfxIsValidString(
772
772
LPCSTR lpsz,
773
773
int nLength = -1);
774
774
```
775
775
776
776
### Parameters
777
777
778
-
*lpsz*<br/>
778
+
*lpsz*\
779
779
The pointer to test.
780
780
781
-
*nLength*<br/>
781
+
*nLength*\
782
782
Specifies the length of the string to be tested, in bytes. A value of -1 indicates that the string will be null-terminated.
783
783
784
784
### Return Value
@@ -799,13 +799,13 @@ In non-debug builds, nonzero if *lpsz* is not NULL; otherwise 0.
799
799
800
800
Sets a hook that enables calling of the specified function before each memory block is allocated.
TRUE if the allocation is for a `CObject`-derived object; otherwise FALSE.
826
826
827
-
*lRequestNumber*<br/>
827
+
*lRequestNumber*\
828
828
The memory allocation's sequence number.
829
829
830
830
Note that the AFXAPI calling convention implies that the callee must remove the parameters from the stack.
@@ -846,10 +846,10 @@ AFXAPI AfxDoForAllClasses(
846
846
847
847
### Parameters
848
848
849
-
*pfn*<br/>
849
+
*pfn*\
850
850
Points to an iteration function to be called for each class. The function arguments are a pointer to a `CRuntimeClass` object and a void pointer to extra data that the caller supplies to the function.
851
851
852
-
*pContext*<br/>
852
+
*pContext*\
853
853
Points to optional data that the caller can supply to the iteration function. This pointer can be NULL.
854
854
855
855
### Remarks
@@ -881,10 +881,10 @@ void AfxDoForAllObjects(
881
881
882
882
### Parameters
883
883
884
-
*pfn*<br/>
884
+
*pfn*\
885
885
Points to an iteration function to execute for each object. The function arguments are a pointer to a `CObject` and a void pointer to extra data that the caller supplies to the function.
886
886
887
-
*pContext*<br/>
887
+
*pContext*\
888
888
Points to optional data that the caller can supply to the iteration function. This pointer can be NULL.
889
889
890
890
### Remarks
@@ -902,5 +902,5 @@ Stack, global, or embedded objects are not enumerated. The pointer passed to `Af
902
902
903
903
## See also
904
904
905
-
[Macros and Globals](mfc-macros-and-globals.md)<br/>
0 commit comments