I have some icons that I place in a new CImageList in the OnCreate in CMainFrame. I the set several set them as icons to several of my buttons. In the destructor for CMainFrame, I DeleteImageList() and then delete the CImageList. When I close the program, Boundschecker tell me that I have resource leaks and tells me that I have to delete the icons that I set to the buttons so in OnClose for CMainFrame I tried to delete the icons like this for each button:
btn = (CButton*)m_wndMyCTRLBar.GetDlgItem( IDC_BUTTON1);
Boundschecker still says that I have the resource leaks. Am I suppose to delete them from another event or am I deleting them incorrectly. Please help end my confusion.
How did you get the HICON handles for the bitmaps? Did you get them by a LoadIcon ? If so, Boundschecker may be wrong cause the resource handles came from the already loaded resource file and don't need
Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++.
The reason I built this class is to ease the pain of using XML files with C++, since there is…
The undo support, implementing a stack.
Continuing from the eigth article about sudoku.
We need a mechanism to keep track of the digits entered so as to implement an undo mechanism. This should be a ‘Last In First Out’ collec…