Click here to Skip to main content
15,860,972 members
Articles / Desktop Programming / MFC

Resource ID Organiser Add-In for Visual C++ 5.0/6.0/.NET

Rate me:
Please Sign up or sign in to vote.
4.98/5 (71 votes)
10 Jan 2005CPOL25 min read 527.5K   12.1K   201  
An application/add-in to organise and renumber resource symbol IDs
--- Module:   ResOrgApp.cpp
};
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJBrowseEdit.h(78): error 612: (Warning -- Expected a declarator)
    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJMenu.h(416): error 1740: (Info -- pointer member 'CCJMenuMemDC::m_pOldBitmap' (line 426) not directly freed or zero'ed by destructor -- Effective C++ #6)
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJMenu.h(416): error 1740: (Info -- pointer member 'CCJMenuMemDC::m_pDC' (line 427) not directly freed or zero'ed by destructor -- Effective C++ #6)
    HICON            m_hIcon;            // handle to button icon.
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJExplorerBar.h(88): error 1516: (Warning -- Data member hides inherited member 'CCJControlBar::m_hIcon' (line 292, file C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJControlBar.h))
    enum STATE { NORMAL = 1, RAISED = 2, PRESSED = 3 };
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJFlatComboBox.h(150): error 578: (Warning -- Declaration of symbol 'RAISED' hides symbol 'RAISED' (line 203, file C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJControlBar.h))
    { ASSERT(::IsWindow(m_hWnd)); return (BOOL) ::SendMessage(m_hWnd, TB_MAPACCELERATOR, (WPARAM)chAccel, (LPARAM)pIDBtn); }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJToolBarCtrl.h(216): error 571: (Warning -- Suspicious cast)
DWORD   AFXAPI _GetComCtlVersion();
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJToolBar.h(88): error 1717: (Info -- empty prototype for function declaration, assumed '(void)')
    { ASSERT(::IsWindow(m_hWnd)); return (BOOL)SendMessageC(TB_MAPACCELERATOR, (WPARAM)ch, (LPARAM)&nID); }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJToolBar.h(491): error 571: (Warning -- Suspicious cast)
};
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJMenuBar.h(75): error 612: (Warning -- Expected a declarator)
    static DWORD    dwDockBarMap[4][2];    // array used for docking masks
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJFrameWnd.h(149): error 1516: (Warning -- Data member hides inherited member 'CFrameWnd::dwDockBarMap' (line 3226, file C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
    { return m_selStart != 0xffffffff; }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJHexEdit.h(148): error 650: (Warning -- Constant out of range for operator '!=')
                    COLORREF crHoverColor = -1);
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJHyperLink.h(57): error 570: (Warning -- Loss of sign (initialization) (int to unsigned long))
    static DWORD dwDockBarMap[4][2];    // array used for docking masks
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJMDIChildWnd.h(109): error 1516: (Warning -- Data member hides inherited member 'CFrameWnd::dwDockBarMap' (line 3226, file C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
    static DWORD    dwDockBarMap[4][2];    // array used for docking masks
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJMDIFrameWnd.h(171): error 1516: (Warning -- Data member hides inherited member 'CFrameWnd::dwDockBarMap' (line 3226, file C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h))
};
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJMemFile.h(136): error 1721: (Info -- operator =() for class 'CCJMemFile' is not assignment operator)
};
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJSortClass.h(44): error 612: (Warning -- Expected a declarator)
        UINT nIndex=-1, 
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJTabCtrlBar.h(227): error 570: (Warning -- Loss of sign (initialization) (int to unsigned int))
                            UINT nIndex =-1);    // index of tab to add
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\CJLibrary\Include\CJTabCtrlBar.h(236): error 570: (Warning -- Loss of sign (initialization) (int to unsigned int))
    void            SetFgColor(COLORREF newOnColor, COLORREF newOffColor = -1);
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(82): error 570: (Warning -- Loss of sign (initialization) (int to unsigned long))
    void            SetBkColor(COLORREF newOnColor, COLORREF newOffColor = -1);
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(83): error 570: (Warning -- Loss of sign (initialization) (int to unsigned long))
    void SetFgColor(int ix, COLORREF on, COLORREF off = -1)    { _XPI(ix).SetFgColor(on, off);    Invalidate(FALSE);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(154): error 570: (Warning -- Loss of sign (initialization) (int to unsigned long))
    void SetBkColor(int ix, COLORREF on, COLORREF off = -1)    { _XPI(ix).SetBkColor(on, off);    Invalidate(FALSE);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(155): error 570: (Warning -- Loss of sign (initialization) (int to unsigned long))
    void SetFgColor(int ix, COLORREF on, COLORREF off = -1)    { _XPI(ix).SetFgColor(on, off);    Invalidate(FALSE);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(154): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    void SetBkColor(int ix, COLORREF on, COLORREF off = -1)    { _XPI(ix).SetBkColor(on, off);    Invalidate(FALSE);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(155): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    void SetBitmap(int ix, LPCSTR on, LPCSTR off = "")        { _XPI(ix).SetBitmap(on, off);    Invalidate(FALSE);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(156): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    void SetText(int ix, LPCSTR on, LPCSTR off = "")        { _XPI(ix).SetText(on, off);    Invalidate(FALSE);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(157): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    void SetNumber(int ix, int on, int off = 0)                { _XPI(ix).SetNumber(on, off);    Invalidate(FALSE);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(159): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    int  Increment(int ix, bool on = true)                    { int ret = _XPI(ix).Increment(on);    Invalidate(FALSE); return ret; }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(172): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    int  Decrement(int ix, bool on = true)                    { int ret = _XPI(ix).Decrement(on);    Invalidate(FALSE); return ret; }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(173): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    COLORREF    GetFgColor(int ix, bool on = true)            { return _XPI(ix).GetFgColor(on);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(181): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    COLORREF    GetBkColor(int ix, bool on = true)            { return _XPI(ix).GetBkColor(on);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(182): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    CString        GetBitmap(int ix, bool on = true)            { return _XPI(ix).GetBitmap(on);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(183): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    CString        GetText(int ix, bool on = true)                { return _XPI(ix).GetText(on);        }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(184): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
    int            GetNumber(int ix, bool on = true)            { return _XPI(ix).GetNumber(on);    }
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGStatusBar.h(185): error 578: (Warning -- Declaration of symbol 'on' hides symbol 'CNGStatusBar::on' (line 211))
            CDocument*                m_pDoc;
C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\ResOrgCore\ResourceSymbolFilePropertyPage.h(112): error 1516: (Warning -- Data member hides inherited member 'CNGPropertyPage::m_pDoc' (line 157, file C:\Documents and Settings\Anna\My Documents\Code\MyProjects\AddIns\ResOrg\NGLibrary\NGDialog.h))
#...                                 = 0
    STDMETHOD(RemoveBreakpointAtLine)(THIS_ VARIANT sel, VARIANT_BOOL FAR* bool) PURE;
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ObjModel\dbgauto.h(271): error 49: (Error -- Expected a type)
Automatically linking with  BXFileDialog.lib 
    if (DoCloseAllWindowsQuery() && m_pProjectsDoc->OnOpenDocument(sPathName) )
ResOrgApp.cpp(733): error 613: (Warning -- Possible use of null pointer 'CResOrgApp::m_pProjectsDoc' in left argument to operator '->' [Reference: file ResOrgApp.cpp: line 361])
        m_pProjectsDoc->UpdateAllViews(NULL, SHOW_WORKSPACE);
ResOrgApp.cpp(740): error 613: (Warning -- Possible use of null pointer 'CResOrgApp::m_pProjectsDoc' in left argument to operator '->' [Reference: file ResOrgApp.cpp: line 361])
        m_pProjectsDoc->UpdateAllViews(NULL, CLEAR_WORKSPACE);
ResOrgApp.cpp(759): error 613: (Warning -- Possible use of null pointer 'CResOrgApp::m_pProjectsDoc' in left argument to operator '->' [Reference: file ResOrgApp.cpp: line 361])
        m_pProjectsDoc->DeleteContents();
ResOrgApp.cpp(760): error 613: (Warning -- Possible use of null pointer 'CResOrgApp::m_pProjectsDoc' in left argument to operator '->' [Reference: file ResOrgApp.cpp: line 361])
    pCmdUI->Enable( m_pProjectsDoc->IsWorkspaceOpen() );
ResOrgApp.cpp(837): error 613: (Warning -- Possible use of null pointer 'CResOrgApp::m_pProjectsDoc' in left argument to operator '->' [Reference: file ResOrgApp.cpp: line 361])

--- Global Wrap-up

 error 900: (Note -- Successful completion, 41 messages produced)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Riverblade Limited
United Kingdom United Kingdom
I haven't always written software for a living. When I graduated from Surrey University in 1989, it was with an Electronic Engineering degree, but unfortunately that never really gave me the opportunity to do anything particularly interesting (with the possible exception of designing Darth Vader's Codpiece * for the UK Army in 1990).
    * Also known as the Standard Army Bootswitch. But that's another story...
Since the opportunity arose to lead a software team developing C++ software for Avionic Test Systems in 1996, I've not looked back. More recently I've been involved in the development of subsea acoustic navigation systems, digital TV broadcast systems, port security/tracking systems, and most recently software development tools with my own company, Riverblade Ltd.

One of my personal specialities is IDE plug-in development. ResOrg was my first attempt at a plug-in, but my day to day work is with Visual Lint, an interactive code analysis tool environment with works within the Visual Studio and Eclipse IDEs or on build servers.

I love lots of things, but particularly music, photography and anything connected with history or engineering. I despise ignorant, intolerant and obstructive people - and it shows...I can be a bolshy cow if you wind me up the wrong way...Laugh | :laugh:

I'm currently based 15 minutes walk from the beach in Bournemouth on the south coast of England. Since I moved here I've grown to love the place - even if it is full of grockles in Summer!

Comments and Discussions