Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Splitter Control Pin
anhtuanbhld124-May-06 22:40
anhtuanbhld124-May-06 22:40 
GeneralRe: Splitter Control Pin
anhtuanbhld124-May-06 22:41
anhtuanbhld124-May-06 22:41 
GeneralRe: Splitter Control Pin
anhtuanbhld124-May-06 22:45
anhtuanbhld124-May-06 22:45 
GeneralRe: Splitter Control Pin
NiceNaidu24-May-06 22:51
NiceNaidu24-May-06 22:51 
GeneralRe: Splitter Control Pin
anhtuanbhld124-May-06 22:57
anhtuanbhld124-May-06 22:57 
Questionm_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 22:02
followait24-May-06 22:02 
QuestionRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Nibu babu thomas24-May-06 22:09
Nibu babu thomas24-May-06 22:09 
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 22:39
followait24-May-06 22:39 
the error is at:

iterator insert(iterator _P, const _Ty& _X = _Ty())
{_Nodeptr _S = _P._Mynode();
--> _Acc::_Prev(_S) = _Buynode(_S, _Acc::_Prev(_S));
_S = _Acc::_Prev(_S);
_Acc::_Next(_Acc::_Prev(_S)) = _S;
allocator.construct(&_Acc::_Value(_S), _X);
++_Size;
return (iterator(_S)); }




I declare it in a class

class PerIOData : public OVERLAPPED
{
public:

int m_Operation;
SOCKET m_Socket;
WSABUF *m_pBuf;
int m_BufNum;
int m_NextStart; std::list<wsabuf*> m_ListBuf;
};
use like this, in a thread:
PerIOData *p=new PerIOData
...
p->m_pBuf=new WSABUF;
p->m_pBuf->len=128;
p->m_pBuf->buf=new char[128];

when data is received through IOCP:
p->m_ListBuf.push_back(p->m_pBuf);
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 23:52
followait24-May-06 23:52 
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Sarath C24-May-06 22:15
Sarath C24-May-06 22:15 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 22:34
followait24-May-06 22:34 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 23:51
followait24-May-06 23:51 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Hamid_RT25-May-06 0:01
Hamid_RT25-May-06 0:01 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait25-May-06 5:06
followait25-May-06 5:06 
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Eytukan24-May-06 22:19
Eytukan24-May-06 22:19 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 22:38
followait24-May-06 22:38 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Eytukan24-May-06 23:09
Eytukan24-May-06 23:09 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Sarath C24-May-06 22:42
Sarath C24-May-06 22:42 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 23:52
followait24-May-06 23:52 
AnswerRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Hamid_RT24-May-06 22:21
Hamid_RT24-May-06 22:21 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
followait24-May-06 22:37
followait24-May-06 22:37 
GeneralRe: m_ListBuf.push_back(pWsabuf); Why can't it work? [modified] Pin
Hamid_RT24-May-06 23:52
Hamid_RT24-May-06 23:52 
QuestionRunning an exe file. Pin
Suganya.D24-May-06 21:46
Suganya.D24-May-06 21:46 
AnswerRe: Running an exe file. Pin
Hamid_RT24-May-06 21:54
Hamid_RT24-May-06 21:54 
AnswerRe: Running an exe file. Pin
Sarath C24-May-06 22:00
Sarath C24-May-06 22:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.