解决方案 »

  1.   

    在出现该错误的.cpp中加入
    #include "stdafx.h" 试试
      

  2.   

    在这儿报错
    _CRTIMP void __cdecl _CrtMemDumpStatistics(
            const _CrtMemState * state
            )
    {
            int use;        if (state == NULL)
                return;        for (use = 0; use < _MAX_BLOCKS; use++)
            {
                _RPT3(_CRT_WARN, "%ld bytes in %ld %hs Blocks.\n",
                    state->lSizes[use], state->lCounts[use], szBlockUseName[use]);
            }        _RPT1(_CRT_WARN, "Largest number used: %ld bytes.\n", state->lHighWaterCount);
            _RPT1(_CRT_WARN, "Total allocations: %ld bytes.\n", state->lTotalCount);
    }
    #endif  /* _DEBUG */#endif  /* _DEBUG */
      

  3.   

    DBGHEAP.SBR文件作用是
    cannot open file '.\Debug\DBGHEAP.SBR': No such file or directory