Click here to Skip to main content
15,921,660 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using MCIWndPutSource Pin
goodoljosh198020-May-08 4:13
goodoljosh198020-May-08 4:13 
GeneralRe: Using MCIWndPutSource Pin
Rajkumar R20-May-08 4:21
Rajkumar R20-May-08 4:21 
QuestionProblem in getting WM_KILLFOCUS Pin
ashtwin20-May-08 2:25
ashtwin20-May-08 2:25 
AnswerRe: Problem in getting WM_KILLFOCUS Pin
Rajkumar R20-May-08 2:39
Rajkumar R20-May-08 2:39 
GeneralRe: Problem in getting WM_KILLFOCUS Pin
ashtwin20-May-08 16:16
ashtwin20-May-08 16:16 
AnswerRe: Problem in getting WM_KILLFOCUS Pin
Rajkumar R20-May-08 21:41
Rajkumar R20-May-08 21:41 
GeneralRe: Problem in getting WM_KILLFOCUS Pin
ashtwin21-May-08 19:00
ashtwin21-May-08 19:00 
QuestionGetting rid of this error... Pin
pl_kode20-May-08 2:14
pl_kode20-May-08 2:14 
I am doin the following...
class ThreadTest 
{
public:
	ThreadTest();
	void end();
	DWORD WINAPI Write_data(LPVOID);
	DWORD ThreadID;
	void run();
private:
	HANDLE hThread;
	bool keepRunning;
};

ThreadTest::ThreadTest() 
{
	keepRunning = true;
}


void ThreadTest::run() 
{
	hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE) Write_data,NULL,0,&ThreadID);
}

void ThreadTest::end() 
{
	keepRunning = false;
}

DWORD WINAPI ThreadTest::Write_data(LPVOID lpParam) 
{ 
	while(keepRunning) 
	{
		printf("I'm a thread running");
		Sleep(1000);
	}
	return 0; 
} 


void main() 
{
	ThreadTest *t = new ThreadTest();
	t->run();
	Sleep(10000);
	t->end();
}


On compiling I get...
error C2440: 'type cast' : cannot convert from '' to 'unsigned long (__stdcall *)(void *)'
None of the functions with this name in scope match the target type

Please help me out with this....THANKS
AnswerRe: Getting rid of this error... Pin
Cedric Moonen20-May-08 2:22
Cedric Moonen20-May-08 2:22 
AnswerRe: Getting rid of this error... Pin
Cedric Moonen20-May-08 2:28
Cedric Moonen20-May-08 2:28 
QuestionConnect database when start with window Pin
capint20-May-08 1:52
capint20-May-08 1:52 
AnswerRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 1:56
professionalRajesh R Subramanian20-May-08 1:56 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:02
capint20-May-08 2:02 
QuestionRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:08
professionalRajesh R Subramanian20-May-08 2:08 
AnswerRe: Connect database when start with window Pin
capint20-May-08 2:13
capint20-May-08 2:13 
AnswerRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:18
professionalRajesh R Subramanian20-May-08 2:18 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:21
capint20-May-08 2:21 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:38
professionalRajesh R Subramanian20-May-08 2:38 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:30
Cedric Moonen20-May-08 2:30 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:35
professionalRajesh R Subramanian20-May-08 2:35 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:37
Cedric Moonen20-May-08 2:37 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:39
professionalRajesh R Subramanian20-May-08 2:39 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:43
Cedric Moonen20-May-08 2:43 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:48
professionalRajesh R Subramanian20-May-08 2:48 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:39
capint20-May-08 2:39 

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.