PostThreadMessage
Code Snippet
error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall MyThread::* )(void)' to 'void (__thiscall CWinThread::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
c:\documents and settings\administrator\my documents\visual studio 2005\projects\ddos\ddos\mythread.cpp(59) : error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall MyThread::* )(void)' to 'void (__thiscall CWinThread::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
None of the functions with this name in scope match the target type
c:\documents and settings\administrator\my documents\visual studio 2005\projects\ddos\ddos\mythread.cpp(59) : error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall MyThread::* )(void)' to 'void (__thiscall CWinThread::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
Function:
Code Snippet
Socket SocketM[32767];
LRESULT MyThread::RunCreate()
{
int i = 0;
for (i=0;i<=32766;i++)
{
SocketM[i].Create();
::SendMessage(hWnd,WM_CREATE_INC,NULL,NULL);
}
return TRUE;
}
LRESULT MyThread::RunConnect()
{
int i = 0;
for (i=0;i<=32766;i++)
{
SocketM[i].Connect(L"0.0.0.0", 00);
}
return TRUE;
}
Message Map:
Code Snippet
BEGIN_MESSAGE_MAP(MyThread, CWinThread)ON_THREAD_MESSAGE(RUN_CREATE,RunCreate)ON_THREAD_MESSAGE(RUN_CONNECT,RunConnect)END_MESSAGE_MAP()

