From where you are calling method UpdateFootPrintsForVisitor from your code?
Is the m_lstGetFootPrints object is valid at that time?
Just try ::IsWindow(m_lstGetFootPrints.m_hWnd) to make sure that the control is created and ready to work.
I am developing a dialog application. In my dialog i have a tabcontrol which is having two tab pages. I have shortcut like Alt+x for my dialog. If the focus is in propertypage these shortcuts are not working. What should i do to enable those?
GetMessage and PeekMessage are used to get a message from message queue while PostMessage is used to post a message.
The major difference between GetMessage and PeekMessage is that GetMessage doesn't return until it finds a message to retrieve from the
Message Queue and PeekMessage() returns immediately weather there are any messages or not.
While PostMessage is used to post a message to window and it returns immediately without waiting for the response.
I am trying to launch a dialog in modal-less mode but am getting error:
Bool CDialog::Create cannot convert from int to LPCTSTR but the tutorials says to do it this way. Any help appreciated. Here my prog:
THIS IS A MFC DLL
// Ai.cpp : Defines the initialization routines for the DLL.
// Microsoft Visual C++ generated include file.
// Used by Ai.rc
#define IDP_SOCKETS_INIT_FAILED 101
#define IDD_CONFIGURE_DIALOG 1000
#define IDC_TXMESSAGE 1000
#define IDD_TRACEINFO 1001
// Next default values for new objects
#define _APS_NEXT_RESOURCE_VALUE 1002
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 1000
Sorry my English is not very good. You mean there is no way to check whether insert a new element or overwriting existing element if we use  operator?
If the argument key value is not found, then it is inserted along with the default value of the data type.
operator may be used to insert elements into a map m using m[_Key] = DataValue; where DataValue is the value of the mapped_type of the element with a key value of _Key.
When using operator to insert elements, the returned reference does not indicate whether an insertion is changing a pre-existing element or creating a new one. The member functions find and insert can be used to determine whether an element with a specified key is already present before an insertion.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
When using mapvariable[somekey] = somevalue to insert into a map variable, how to check whether there is conflicting key value in the map in an elegant way?
You can use map::find() to check whether the key is already present in map. Well, the  operator will overwrite the existing entry if the key already exists.
OT: Be a little careful while using  operator with map, especially while reading from map. For instance, if you try to get a key-value which is not in map, it create a new entry and return the default value. For instance,
// An empty map.
// If you lookup a for a key which is not present,// it will create empty entry and return. It won't// throw any error.
CString LookupKey = _T("key"); // Key which is not present.
CString Value = TempMap[LookupKey];