fehler bei CreateThread() !!!
-
guten tag!
ich habe ein problem, ich habe eine WinMain-Anwendung und möchte
eine funktion als thread starten. es kommt folgender fehler:E:\c#\A Projekte\BTro\BTro_Client_2\main.cpp(716) : error C2440: 'type cast' : cannot convert from '' to 'unsigned long (__stdcall *)(void *)' None of the functions with this name in scope match the target typemein code:
CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)send_file_to_server,NULL,0,0);meine funktion ist eigentlich
void send_file_to_server() { ... }bei
unsigned long __stdcall send_file_to_server() { ... }kommt aber auch der fehler!
danke euch schonmal!
-
DWORD WINAPI ThreadProc(LPVOID lpParameter);