PostThreadMessage

ive got another error wich i cant understand why its happend:

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

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()


[1734 byte] By [DXT-FireTeam] at [2008-1-8]
# 1

If a method is used for event/message call, don't modify its parameters lists. Use the originals that the app-wizard gave to.

unituniverse at 2007-10-2 > top of Msdn Tech,Software Development for Windows Vista,Windows SDK...

Software Development for Windows Vista

Site Classified