Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Textbooks for advanced MDI database projects Pin
Neville Franks20-Sep-02 11:13
Neville Franks20-Sep-02 11:13 
QuestionHow to find/get a remote cd/dvd-rom by interne?t Pin
chen19-Sep-02 22:39
chen19-Sep-02 22:39 
AnswerRe: How to find/get a remote cd/dvd-rom by interne?t Pin
Mike Nordell20-Sep-02 4:53
Mike Nordell20-Sep-02 4:53 
General.NET and MFC ! Pin
Hadi Rezaee19-Sep-02 21:56
Hadi Rezaee19-Sep-02 21:56 
GeneralRe: .NET and MFC ! Pin
Nish Nishant19-Sep-02 22:11
sitebuilderNish Nishant19-Sep-02 22:11 
GeneralRe: .NET and MFC ! Pin
Stephane Rodriguez.19-Sep-02 23:13
Stephane Rodriguez.19-Sep-02 23:13 
GeneralRe: .NET and MFC ! Pin
Hadi Rezaee19-Sep-02 23:19
Hadi Rezaee19-Sep-02 23:19 
GeneralThread problem ! Pin
Hadi Rezaee19-Sep-02 21:53
Hadi Rezaee19-Sep-02 21:53 
Hello there ...
What's wrong in below code ?

void CTestthreadDlg::OnStart()
{
DWORD dwThreadID, dwThreadParam = 1;

hThread = ::CreateThread( NULL, 0, ThreadFunc, &dwThreadParam, 0, &dwThreadID );
}


DWORD WINAPI CTestthreadDlg::ThreadFunc(LPVOID lpParam)
{
m_List.AddString( "I wanna die, die for you ... Cause i know you are my only one" ); // Poke tongue | ;-P
return 0;
}


Compiler show me this error:

E:\Microsoft Visual Studio\MyProjects\testthread\testthreadDlg.cpp(102) : error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall *)(void *)'
None of the functions with this name in scope match the target type

My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html

Hadi Rezaie
GeneralRe: Thread problem ! Pin
Nish Nishant19-Sep-02 22:16
sitebuilderNish Nishant19-Sep-02 22:16 
GeneralRe: Thread problem ! Pin
Hadi Rezaee19-Sep-02 22:34
Hadi Rezaee19-Sep-02 22:34 
GeneralRe: Thread problem ! Pin
Nish Nishant19-Sep-02 22:42
sitebuilderNish Nishant19-Sep-02 22:42 
GeneralRe: Thread problem ! Pin
Hadi Rezaee19-Sep-02 22:45
Hadi Rezaee19-Sep-02 22:45 
GeneralRe: Thread problem ! Pin
Hans Ruck19-Sep-02 22:14
Hans Ruck19-Sep-02 22:14 
GeneralRe: Thread problem ! Pin
Arjan Schouten19-Sep-02 22:14
Arjan Schouten19-Sep-02 22:14 
GeneralRe: Thread problem ! Pin
Hadi Rezaee19-Sep-02 22:32
Hadi Rezaee19-Sep-02 22:32 
GeneralRe: Thread problem ! Pin
Hadi Rezaee19-Sep-02 22:35
Hadi Rezaee19-Sep-02 22:35 
GeneralRe: Thread problem ! Pin
Arjan Schouten19-Sep-02 22:44
Arjan Schouten19-Sep-02 22:44 
GeneralRe: Thread problem ! Pin
Hadi Rezaee19-Sep-02 22:47
Hadi Rezaee19-Sep-02 22:47 
GeneralMFC DLLs and Ms Visual Studio Installer Pin
Mirko M.19-Sep-02 21:29
sussMirko M.19-Sep-02 21:29 
GeneralRe: MFC DLLs and Ms Visual Studio Installer Pin
Steve S19-Sep-02 21:50
Steve S19-Sep-02 21:50 
GeneralRe: MFC DLLs and Ms Visual Studio Installer Pin
Mirko M.19-Sep-02 22:08
sussMirko M.19-Sep-02 22:08 
GeneralRe: MFC DLLs and Ms Visual Studio Installer Pin
Steve S19-Sep-02 22:17
Steve S19-Sep-02 22:17 
GeneralRe: MFC DLLs and Ms Visual Studio Installer Pin
Mirko M.19-Sep-02 22:44
sussMirko M.19-Sep-02 22:44 
GeneralRe: MFC DLLs and Ms Visual Studio Installer Pin
Stephane Rodriguez.19-Sep-02 23:07
Stephane Rodriguez.19-Sep-02 23:07 
GeneralRe: MFC DLLs and Ms Visual Studio Installer Pin
Mirko M.19-Sep-02 23:29
sussMirko M.19-Sep-02 23:29 

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.