为什么总是错误阿,不明白阿
DWORD dwThreadId;
DWORD dwThrdParam =(DWORD)totostr; 
HANDLE hThread; 
char szMsg[80]; hThread = CreateThread( 
NULL,                        // default security attributes 
0,                           // use default stack size  
ThreadFunc,                  // thread function 
&dwThrdParam,                // argument to thread function 
0,                           // use default creation flags 
&dwThreadId );             
函数声明:
DWORD WINAPI CCommentDoc::ThreadFunc(char *pdata)
{ ShellExecute( NULL, _T("open"), _T("IEXPLORE.EXE"), pdata /*urlstr*/, NULL, SW_MINIMIZE );// SW_RESTORE
return NULL;
}
编译错误:
comment - Win32 Debug--------------------
Compiling...
commentDoc.cpp
D:\yyy\deve\comment\commentDoc.cpp(201) : warning C4805: '==' : unsafe mix of type 'int' and type 'const bool' in operation
D:\yyy\deve\comment\commentDoc.cpp(408) : warning C4018: '<' : signed/unsigned mismatch
D:\yyy\deve\comment\commentDoc.cpp(1078) : warning C4018: '<' : signed/unsigned mismatch
D:\yyy\deve\comment\commentDoc.cpp(1086) : warning C4018: '<' : signed/unsigned mismatch
D:\yyy\deve\comment\commentDoc.cpp(1565) : warning C4018: '<' : signed/unsigned mismatch
D:\yyy\deve\comment\commentDoc.cpp(2116) : error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (char *)' to 'unsigned long (__stdcall *)(void *)'
        None of the functions with this name in scope match the target type
Error executing cl.exe.
Creating browse info file...comment.exe - 1 error(s), 5 warning(s)