Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Registry Viewing Problem Pin
Hamid_RT6-Mar-07 0:09
Hamid_RT6-Mar-07 0:09 
AnswerRe: Registry Viewing Problem Pin
David Crow6-Mar-07 3:01
David Crow6-Mar-07 3:01 
Questionhow to run my exe continuously in background Pin
James_Programmer5-Mar-07 23:45
James_Programmer5-Mar-07 23:45 
AnswerRe: how to run my exe continuously in background Pin
_AnsHUMAN_ 5-Mar-07 23:51
_AnsHUMAN_ 5-Mar-07 23:51 
GeneralRe: how to run my exe continuously in background Pin
James_Programmer6-Mar-07 0:22
James_Programmer6-Mar-07 0:22 
GeneralRe: how to run my exe continuously in background Pin
James R. Twine6-Mar-07 1:21
James R. Twine6-Mar-07 1:21 
GeneralRe: how to run my exe continuously in background Pin
James_Programmer6-Mar-07 1:37
James_Programmer6-Mar-07 1:37 
QuestionThead Error Pin
Programm3r5-Mar-07 23:18
Programm3r5-Mar-07 23:18 
Hi all,

What am I doing wrong?

// Header File
class TCP32CLIENT
{
public:

	TCP32CLIENT_API void MsgBoxThreadProc(void *var);
};

//CPP File
void TCP32CLIENT::MsgBoxThreadProc(void *var)
{
 ...
}

bool TCP32CLIENT::setApplicationParameters()
{
		int val = 1;
		HANDLE handle;
		handle = (HANDLE) _beginthread( &TCP32CLIENT::MsgBoxThreadProc,0,&val);
		WaitForSingleObject(handle,7000);
...
}


Error: Error 6 error C2664: '_beginthread' : cannot convert parameter 1 from 'void (__thiscall TCP32CLIENT::* )(void *)' to 'void (__cdecl *)(void *)' c:\documents and settings\baileyr\my documents\tcpip project\tcp32client\tcp32client.cpp 166

Even if I do this:
...
handle = (HANDLE) _beginthread( MsgBoxThreadProc,0,&val);
...

I receive the following error:
Error 6 error C3867: 'TCP32CLIENT::MsgBoxThreadProc': function call missing argument list; use '&TCP32CLIENT::MsgBoxThreadProc' to create a pointer to member c:\documents and settings\baileyr\my documents\tcpip project\tcp32client\tcp32client.cpp 166

Many Thanx
Regards,


The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

My Blog: ^_^

AnswerRe: Thead Error Pin
Cedric Moonen5-Mar-07 23:24
Cedric Moonen5-Mar-07 23:24 
GeneralRe: Thead Error Pin
Programm3r6-Mar-07 0:15
Programm3r6-Mar-07 0:15 
AnswerRe: Thead Error Pin
David Crow6-Mar-07 3:04
David Crow6-Mar-07 3:04 
QuestionNot Responding Message Pin
James_Programmer5-Mar-07 22:27
James_Programmer5-Mar-07 22:27 
AnswerRe: Not Responding Message Pin
Cedric Moonen5-Mar-07 22:39
Cedric Moonen5-Mar-07 22:39 
GeneralRe: Not Responding Message Pin
James_Programmer5-Mar-07 22:46
James_Programmer5-Mar-07 22:46 
GeneralRe: Not Responding Message Pin
Cedric Moonen5-Mar-07 22:54
Cedric Moonen5-Mar-07 22:54 
AnswerRe: Not Responding Message Pin
James_Programmer5-Mar-07 23:32
James_Programmer5-Mar-07 23:32 
GeneralRe: Not Responding Message Pin
David Crow6-Mar-07 3:06
David Crow6-Mar-07 3:06 
GeneralRe: Not Responding Message Pin
James_Programmer6-Mar-07 19:06
James_Programmer6-Mar-07 19:06 
GeneralRe: Not Responding Message Pin
David Crow7-Mar-07 2:40
David Crow7-Mar-07 2:40 
GeneralRe: Not Responding Message Pin
James R. Twine6-Mar-07 0:57
James R. Twine6-Mar-07 0:57 
GeneralRe: Not Responding Message Pin
James_Programmer6-Mar-07 1:19
James_Programmer6-Mar-07 1:19 
GeneralRe: Not Responding Message Pin
James R. Twine6-Mar-07 1:27
James R. Twine6-Mar-07 1:27 
GeneralRe: Not Responding Message Pin
James_Programmer6-Mar-07 1:39
James_Programmer6-Mar-07 1:39 
Questionview problem Pin
sheetal_065-Mar-07 22:24
sheetal_065-Mar-07 22:24 
AnswerRe: view problem Pin
Cedric Moonen5-Mar-07 22:30
Cedric Moonen5-Mar-07 22:30 

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.