Those are the memory dump statistics that you asked for. You really only need the _CrtSetDbgFlag() call in your CWinApp-derived class constructor and it will do the leak detection for you. Also remember to define new as DEBUG_NEW for debug builds in all source modules.
i have created CTreeCtrl tree view,this is having list of children (parent child relationship) like normal windows explorer tree view.if i add any new item into the any of root node it will add as a last item of that root node.my problem is once i add new item to the root node,how to set focus to the added item also how to make it visible.
1.parent is already expanded, add new item to the parent.
2.parent is in collapsed state, add new item to the parent.
In 1st case i am not able to make visible to the newly added item...
please help me...
I'm working on a project in which the parent frame is CMDIFrameWnd and it spawns different child windows of CMDIChildWnd object for different purposes. The child windows are created based on need such as
1. one for displaying messages
2. one for displaying monitored data
3. plotting graphs etc
When the application is run, when we switch over all the views for some time, the application suddenly crashes.
Why is this happening. Kindly help if anybody knows.
how to convert an CString ASCII to decimal number? For example, an "A" alphabet in ASCII table is 65 in decimal number, how can i convert the alphabet to an integer as 65. I get data from serial port MSCOMM
Assuming you are reading each byte one at a time, then the values are already integers. A byte containing the character 'A' is the same as the value 65 decimal. There is no conversion necessary, just accept the data as integer, not string.