Click here to Skip to main content
15,908,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with RegQueryValueEx Pin
SRKSHOME22-Dec-08 22:37
SRKSHOME22-Dec-08 22:37 
GeneralRe: Problem with RegQueryValueEx Pin
CPallini22-Dec-08 23:28
mveCPallini22-Dec-08 23:28 
AnswerRe: Problem with RegQueryValueEx Pin
Graham Bradshaw22-Dec-08 23:12
Graham Bradshaw22-Dec-08 23:12 
Questionmemset? Pin
dec8222-Dec-08 20:17
dec8222-Dec-08 20:17 
AnswerRe: memset? Pin
Paul M Watt22-Dec-08 20:46
mentorPaul M Watt22-Dec-08 20:46 
AnswerRe: memset? Pin
CPallini22-Dec-08 21:09
mveCPallini22-Dec-08 21:09 
AnswerRe: memset? Pin
toxcct22-Dec-08 21:37
toxcct22-Dec-08 21:37 
QuestionException in Multithreading.............. Pin
shaina223122-Dec-08 19:52
shaina223122-Dec-08 19:52 
while using Threads against Multimedia timer when stoping threads in function i got Following Exception

First-chance exception in Nova.exe(NTDLL.DLL):0xC00000008:Invalid Handle
the code in method is
void Cvep::stoprecThread()
{
	KillTimer(4);
	KillTimer(5);
	CSingleLock lock1(&c_s0);
	lock1.Lock();
	// Unlock
	recflag=0;
	lock1.Unlock();
	PatternsFinish();

	ResumeThread(hand[1]);
	ResumeThread(hand[0]);
	
//////////////////////////////
//  Wait for the main thread 
	
	DWORD lpExitCode0;
	DWORD lpExitCode1;
	::GetExitCodeThread(hand[0], &lpExitCode0);
	::GetExitCodeThread(hand[1], &lpExitCode1);

 	if(STILL_ACTIVE == lpExitCode1 )
	{
	//	TerminateThread(hand[1],GetExitCodeThread(hand[1], &lpExitCode1));
			WaitForSingleObject(hand[1], INFINITE);
	}
	if(STILL_ACTIVE == lpExitCode0 )
	{
	//	TerminateThread(hand[0],GetExitCodeThread(hand[0], &lpExitCode0));
		WaitForSingleObject(hand[0], INFINITE);
	}
	
	CloseHandle(hand[1]);
	CloseHandle(hand[0]);
}

plz help how to resolve this
QuestionRe: Exception in Multithreading.............. Pin
CPallini22-Dec-08 21:07
mveCPallini22-Dec-08 21:07 
QuestionFSCTL_GET_VOLUME_BITMAP Pin
john563222-Dec-08 19:10
john563222-Dec-08 19:10 
QuestionDrag and Drop between tree controls (Very Urgent........) Pin
AnithaSubramani22-Dec-08 18:32
AnithaSubramani22-Dec-08 18:32 
AnswerRe: Drag and Drop between tree controls (Very Urgent........) Pin
Hamid_RT22-Dec-08 19:09
Hamid_RT22-Dec-08 19:09 
QuestionProgramming time for algorithm? Anyone help me................. Pin
thuyphuongid22-Dec-08 16:46
thuyphuongid22-Dec-08 16:46 
AnswerRe: Programming time for algorithm? Anyone help me................. Pin
L. Madhavan22-Dec-08 19:41
L. Madhavan22-Dec-08 19:41 
Question[VC++6.0]Unhandled exception in **.exe, 0xc0000005:Access Vialation Pin
kaviniswell22-Dec-08 16:30
kaviniswell22-Dec-08 16:30 
AnswerRe: [VC++6.0]Unhandled exception in **.exe, 0xc0000005:Access Vialation Pin
Garth J Lancaster22-Dec-08 18:00
professionalGarth J Lancaster22-Dec-08 18:00 
GeneralRe: [VC++6.0]Unhandled exception in **.exe, 0xc0000005:Access Vialation Pin
kaviniswell22-Dec-08 18:18
kaviniswell22-Dec-08 18:18 
GeneralRe: [VC++6.0]Unhandled exception in **.exe, 0xc0000005:Access Vialation Pin
Garth J Lancaster22-Dec-08 18:27
professionalGarth J Lancaster22-Dec-08 18:27 
GeneralRe: [VC++6.0]Unhandled exception in **.exe, 0xc0000005:Access Vialation Pin
kaviniswell22-Dec-08 18:37
kaviniswell22-Dec-08 18:37 
QuestionCallback Intro Pin
codemunkeh22-Dec-08 15:45
codemunkeh22-Dec-08 15:45 
AnswerRe: Callback Intro Pin
CPallini23-Dec-08 3:05
mveCPallini23-Dec-08 3:05 
QuestionSetWindowSubclass is killing my app! Pin
KellyR22-Dec-08 14:17
KellyR22-Dec-08 14:17 
AnswerRe: SetWindowSubclass is killing my app! Pin
Naveen22-Dec-08 18:57
Naveen22-Dec-08 18:57 
GeneralRe: SetWindowSubclass is killing my app! Pin
KellyR22-Dec-08 19:19
KellyR22-Dec-08 19:19 
GeneralRe: SetWindowSubclass is killing my app! Pin
Mark Salsbery23-Dec-08 5:50
Mark Salsbery23-Dec-08 5:50 

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.