Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strange character Pin
ruthlesspker2-Apr-09 21:33
ruthlesspker2-Apr-09 21:33 
GeneralRe: strange character Pin
krmed3-Apr-09 0:37
krmed3-Apr-09 0:37 
QuestionglDrawPixels help Pin
Member 33753342-Apr-09 12:39
Member 33753342-Apr-09 12:39 
AnswerRe: glDrawPixels help Pin
Cedric Moonen2-Apr-09 20:16
Cedric Moonen2-Apr-09 20:16 
GeneralRe: glDrawPixels help Pin
Member 33753343-Apr-09 3:05
Member 33753343-Apr-09 3:05 
QuestionNtfsDisable8dot3NameCreation does not take its effect for short path generation Pin
tom groezer2-Apr-09 10:13
tom groezer2-Apr-09 10:13 
AnswerRe: NtfsDisable8dot3NameCreation does not take its effect for short path generation Pin
tom groezer3-Apr-09 1:19
tom groezer3-Apr-09 1:19 
QuestionRaise thread safe event Pin
tadams11382-Apr-09 9:56
tadams11382-Apr-09 9:56 
I have a rountine in an ActiveX control that is called from another thread (made by some other DLL). I want to be able to raise an event ('Error' in this case which takes a long and a string as argument) which will be caught by the VB6 app which will contain this ActiveX control. Unless I'm mistaken, the reason my VB6 app keeps crashing is because I'm not performing any kind of thread safety. Can someone please let me know what I should be doing here (or if my assumption is wrong)?

void __stdcall MyActiveXCtrl::OnReplyAudio(LPVOID pData)
{
	if (CAN_PLAY_AUDIO)
	{
		ProcessAudio(pData);

		//this next line calls a DLL which will in turn call this rountine again
		if (!m_audioHardware->RequestAudio())  
			Error(23, _T("m_audioHardware->RequestAudio()=FALSE"));
	}
	else
		UnloadAudio();
}

AnswerRe: Raise thread safe event Pin
tadams11382-Apr-09 11:24
tadams11382-Apr-09 11:24 
AnswerRe: Raise thread safe event Pin
Roger Stoltz2-Apr-09 11:58
Roger Stoltz2-Apr-09 11:58 
QuestionHow To Import and use Com file in c++ Pin
snouto2-Apr-09 7:34
snouto2-Apr-09 7:34 
AnswerRe: How To Import and use Com file in c++ Pin
CPallini2-Apr-09 7:44
mveCPallini2-Apr-09 7:44 
JokeRe: How To Import and use Com file in c++ Pin
Stuart Dootson2-Apr-09 7:48
professionalStuart Dootson2-Apr-09 7:48 
JokeRe: How To Import and use Com file in c++ Pin
CPallini2-Apr-09 7:59
mveCPallini2-Apr-09 7:59 
AnswerRe: How To Import and use Com file in c++ Pin
Iain Clarke, Warrior Programmer2-Apr-09 8:16
Iain Clarke, Warrior Programmer2-Apr-09 8:16 
QuestionDeleting the Main Window Pin
BobInNJ2-Apr-09 6:10
BobInNJ2-Apr-09 6:10 
AnswerRe: Deleting the Main Window Pin
Stuart Dootson2-Apr-09 7:17
professionalStuart Dootson2-Apr-09 7:17 
AnswerRe: Deleting the Main Window Pin
Iain Clarke, Warrior Programmer2-Apr-09 8:19
Iain Clarke, Warrior Programmer2-Apr-09 8:19 
AnswerRe: Deleting the Main Window Pin
Stuart Dootson2-Apr-09 11:26
professionalStuart Dootson2-Apr-09 11:26 
QuestionRTD in MFC application Pin
trioum2-Apr-09 4:34
trioum2-Apr-09 4:34 
AnswerRe: RTD in MFC application Pin
led mike2-Apr-09 4:46
led mike2-Apr-09 4:46 
GeneralRe: RTD in MFC application Pin
trioum2-Apr-09 4:57
trioum2-Apr-09 4:57 
QuestionRe: RTD in MFC application Pin
led mike2-Apr-09 8:17
led mike2-Apr-09 8:17 
GeneralRe: RTD in MFC application Pin
CPallini2-Apr-09 9:33
mveCPallini2-Apr-09 9:33 
QuestionRe: RTD in MFC application Pin
David Crow2-Apr-09 5:20
David Crow2-Apr-09 5:20 

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.