--- Module: CJMenu.cpp DestroyMenu(); CJMenu.cpp(223): error 1506: (Warning -- Call to virtual function 'CCJMenu::DestroyMenu(void)' within a constructor or destructor) } CJMenu.cpp(224): error 1740: (Info -- pointer member 'CCJMenu::checkmaps' (line 343, file ..\Include\CJMenu.h) not directly freed or zero'ed by destructor -- Effective C++ #6) } CJMenu.cpp(257): error 1740: (Info -- pointer member 'CCJMenuData::pContext' (line 95, file ..\Include\CJMenu.h) not directly freed or zero'ed by destructor -- Effective C++ #6) UINT state = lpDIS->itemState; CJMenu.cpp(413): error 578: (Warning -- Declaration of symbol 'state' hides symbol 'state' (line 371)) RECT offset = *rectt; CJMenu.cpp(597): error 1037: (Error -- ambiguous reference to conversion function; candidates: 'CRect::operator tagRECT *(void) (line 267, file C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h), and CRect::operator const tagRECT *(void) const (line 268, file C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h)') UINT state = lpDIS->itemState; CJMenu.cpp(732): error 578: (Warning -- Declaration of symbol 'state' hides symbol 'state' (line 664)) bitmap->Draw(pDC,disabled_offset,ptImage,ILD_TRANSPARENT); CJMenu.cpp(813): error 613: (Warning -- Possible use of null pointer 'bitmap' in left argument to operator '->' [Reference: file CJMenu.cpp: lines 718, 742]) RECT offset = *rectt; CJMenu.cpp(920): error 1037: (Error -- ambiguous reference to conversion function; candidates: 'CRect::operator tagRECT *(void) (line 267, file C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h), and CRect::operator const tagRECT *(void) const (line 268, file C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h)') During Specific Walk: File CJMenu.cpp line 356: DrawItem_WinXP(!=0) CJMenu.cpp(813): error 613: (Warning -- Possible use of null pointer 'bitmap' in left argument to operator '->' [Reference: file CJMenu.cpp: lines 718, 742]) During Specific Walk: File CJMenu.cpp line 489: GetBitmapFromImageList(?, [1]? | 0?, -1?, ?) CJMenu.cpp(951): error 613: (Warning -- Possible use of null pointer 'imglist' in left argument to operator '->' [Reference: file CJMenu.cpp: lines 400, 489]) During Specific Walk: File CJMenu.cpp line 817: GetBitmapFromImageList(?, [1]? | 0?, -1? | 0?, ?) CJMenu.cpp(951): error 613: (Warning -- Possible use of null pointer 'imglist' in left argument to operator '->' [Reference: file CJMenu.cpp: lines 718, 742, 817]) size.cx += 3*(size.cx/wcslen(lpstrText)); CJMenu.cpp(1041): error 573: (Warning -- Signed-unsigned mix with divide) return(returnflag); CJMenu.cpp(1115): error 429: (Warning -- Custodial pointer 'mdata' (line 1089) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1070: AppendODMenuW(0?, ?, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1089) has not been freed or returned) return(CMenu::AppendMenu(nFlags, nID, (LPCTSTR)mdata)); CJMenu.cpp(1157): error 429: (Warning -- Custodial pointer 'mdata' (line 1140) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1122: AppendODMenuW(0?, ?, ?, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1140) has not been freed or returned) return(returnflag); CJMenu.cpp(1221): error 429: (Warning -- Custodial pointer 'mdata' (line 1197) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1164: InsertODMenuW(?, 0?, ?, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1197) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1175: InsertODMenuW(?, ?, !=0, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1197) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1164: InsertODMenuW(?, 0?, ?, ?, ?) File CJMenu.cpp line 1175: InsertODMenuW(?, 0?, !=0, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1197) has not been freed or returned) return(CMenu::InsertMenu(nPosition,nFlags,nID,(LPCTSTR)mdata)); CJMenu.cpp(1270): error 429: (Warning -- Custodial pointer 'mdata' (line 1254) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1228: InsertODMenuW(?, 0?, ?, ?, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1254) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1238: InsertODMenuW(?, ?, !=0, ?, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1254) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1228: InsertODMenuW(?, 0?, ?, ?, ?, ?) File CJMenu.cpp line 1238: InsertODMenuW(?, 0?, !=0, ?, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1254) has not been freed or returned) return (CMenu::ModifyMenu(nID,mdata->nFlags,nID,(LPCTSTR)mdata)); CJMenu.cpp(1323): error 429: (Warning -- Custodial pointer 'mdata' (line 1282) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1276: ModifyODMenuW(0?, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1282) has not been freed or returned) return (CMenu::ModifyMenu(nID,mdata->nFlags,nID,(LPCTSTR)mdata)); CJMenu.cpp(1369): error 429: (Warning -- Custodial pointer 'mdata' (line 1335) has not been freed or returned) During Specific Walk: File CJMenu.cpp line 1329: ModifyODMenuW(0?, ?, ?, ?) CJMenu.cpp(): error 429: (Warning -- Custodial pointer 'mdata' (line 1335) has not been freed or returned) return ModifyODMenuW(A2W(lpstrText),A2W(OptionText),nIconNormal);//SK: see MFC Tech Note 059 CJMenu.cpp(1423): error 564: (Warning -- variable '_convert' depends on order of evaluation) CJMenu.cpp(1423): error 564: (Warning -- variable '_lpa' depends on order of evaluation) szCaption=new wchar_t[wcslen((wchar_t *)pTp)+1]; CJMenu.cpp(1756): error 826: (Info -- Suspicious pointer-to-pointer conversion (area too small)) wcscpy(szCaption,(wchar_t *)pTp); CJMenu.cpp(1757): error 826: (Info -- Suspicious pointer-to-pointer conversion (area too small)) pTp=&pTp[(wcslen((wchar_t *)pTp)+1)*sizeof(wchar_t)];//modified SK CJMenu.cpp(1758): error 826: (Info -- Suspicious pointer-to-pointer conversion (area too small)) LPCTSTR lpstrText = (LPCTSTR)(newstring); CJMenu.cpp(1908): error 578: (Warning -- Declaration of symbol 'lpstrText' hides symbol 'lpstrText' (line 1904)) } CJMenu.cpp(2478): error 429: (Warning -- Custodial pointer 'pData' (line 2451) has not been freed or returned) --- Wrap-up for Module: CJMenu.cpp CJMenu.cpp(2152): error 754: (Info -- local structure member 'bmiHeader' (line 2152, file CJMenu.cpp) not referenced) CJMenu.cpp(2153): error 754: (Info -- local structure member 'bmiColors' (line 2153, file CJMenu.cpp) not referenced) --- Global Wrap-up error 900: (Note -- Successful completion, 37 messages produced)