problem with STL Vector
-
I am declaring a vector variable vectorm_RemoteInfo; If try to use this another class(CIWAPT5Socket) it's giving invalid indirection.why?? Here is the class code i am referring ((CIWAPT5Dlg*)m_Dlg)->pSocket = new CIWAPT5Socket(m_Dlg); if(Accept(*((CIWAPT5Dlg*)m_Dlg)->pSocket)) { LocalServerInfo *m_info; *((CIWAPT5Dlg*)m_Dlg)->m_RemoteInfo->push_back(m_info); MessageBox(NULL,"Connection Accepted","IWAPT5 Server",MB_OK; }
-
I am declaring a vector variable vectorm_RemoteInfo; If try to use this another class(CIWAPT5Socket) it's giving invalid indirection.why?? Here is the class code i am referring ((CIWAPT5Dlg*)m_Dlg)->pSocket = new CIWAPT5Socket(m_Dlg); if(Accept(*((CIWAPT5Dlg*)m_Dlg)->pSocket)) { LocalServerInfo *m_info; *((CIWAPT5Dlg*)m_Dlg)->m_RemoteInfo->push_back(m_info); MessageBox(NULL,"Connection Accepted","IWAPT5 Server",MB_OK; }