Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Run at startup using scheduled tasks [modified] Pin
hxhl956-Nov-09 11:52
hxhl956-Nov-09 11:52 
QuestionIs it possible of removing menues from a CDockablePane??? Pin
Dale Haessel5-Nov-09 11:33
Dale Haessel5-Nov-09 11:33 
AnswerRe: Is it possible of removing menues from a CDockablePane??? Pin
Randor 5-Nov-09 11:53
professional Randor 5-Nov-09 11:53 
GeneralRe: Is it possible of removing menues from a CDockablePane??? Pin
«_Superman_»5-Nov-09 11:56
professional«_Superman_»5-Nov-09 11:56 
JokeRe: Is it possible of removing menues from a CDockablePane??? Pin
Randor 5-Nov-09 12:05
professional Randor 5-Nov-09 12:05 
JokeRe: Is it possible of removing menues from a CDockablePane??? Pin
«_Superman_»5-Nov-09 12:06
professional«_Superman_»5-Nov-09 12:06 
AnswerRe: Is it possible of removing menues from a CDockablePane??? Pin
«_Superman_»5-Nov-09 11:54
professional«_Superman_»5-Nov-09 11:54 
QuestionSound programming issue. Pin
GLGunblade5-Nov-09 9:27
GLGunblade5-Nov-09 9:27 
I'm Using directsound for ogg file playback.
Also using the code I took from this website for it.
http://www.flipcode.com/archives/Ogg_Vorbis_Player_Class.shtml

It works well but I'm trying to play a 2nd music/sound file straight after the 1st finishes.

At the moment i believe the 2nd sound file plays a second just before the first finishes thus creating a rather bad mismash of a sound.

Can anyone tell me from looking at the code why this is?

The only idea I have is that it has to do with the update function and how it returns the boolean "bdone", but since I have trouble trying to understand the complex parts of code I have no idea how to fix it.

What i'm doing now is play first sound.
If the sound is finished playing (bdone=true).
play second sound.

if (flag==0)
	{
		oggPlayer1.Play();
		flag=1;
	}
	if ((oggPlayer1.IsPlaying() == false) && (flag==1))
	{	
		oggPlayer2.Play();
		oggPlayer1.Close();
		
		flag=2;
	}


names have been changed from original code but it's still pretty much the same.

Thanks for any help.
QuestionRe: Sound programming issue. Pin
David Crow5-Nov-09 9:40
David Crow5-Nov-09 9:40 
AnswerRe: Sound programming issue. Pin
GLGunblade5-Nov-09 12:02
GLGunblade5-Nov-09 12:02 
GeneralRe: Sound programming issue. Pin
David Crow6-Nov-09 3:19
David Crow6-Nov-09 3:19 
GeneralRe: Sound programming issue. [modified] Pin
GLGunblade6-Nov-09 7:24
GLGunblade6-Nov-09 7:24 
QuestionRe: Sound programming issue. Pin
David Crow6-Nov-09 16:26
David Crow6-Nov-09 16:26 
AnswerRe: Sound programming issue. Pin
GLGunblade7-Nov-09 16:38
GLGunblade7-Nov-09 16:38 
QuestionInjecting code in all explorer processes Pin
Ivo Beltchev5-Nov-09 6:01
Ivo Beltchev5-Nov-09 6:01 
AnswerRe: Injecting code in all explorer processes Pin
«_Superman_»5-Nov-09 7:11
professional«_Superman_»5-Nov-09 7:11 
GeneralRe: Injecting code in all explorer processes Pin
Ivo Beltchev5-Nov-09 7:45
Ivo Beltchev5-Nov-09 7:45 
Questiongraphics design in c,c++ Pin
aviparida5-Nov-09 5:38
aviparida5-Nov-09 5:38 
AnswerRe: graphics design in c,c++ Pin
Richard MacCutchan5-Nov-09 5:43
mveRichard MacCutchan5-Nov-09 5:43 
QuestionMainframe Vista shadow Pin
baerten5-Nov-09 4:53
baerten5-Nov-09 4:53 
AnswerRe: Mainframe Vista shadow Pin
Richard MacCutchan5-Nov-09 5:56
mveRichard MacCutchan5-Nov-09 5:56 
GeneralRe: Mainframe Vista shadow Pin
baerten5-Nov-09 22:02
baerten5-Nov-09 22:02 
Question[VC++ 6.0] Dialog Control (Not MFC) Pin
PimpDawg5-Nov-09 3:39
PimpDawg5-Nov-09 3:39 
AnswerRe: [VC++ 6.0] Dialog Control (Not MFC) Pin
David Crow5-Nov-09 4:55
David Crow5-Nov-09 4:55 
AnswerRe: [VC++ 6.0] Dialog Control (Not MFC) Pin
«_Superman_»5-Nov-09 5:40
professional«_Superman_»5-Nov-09 5:40 

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.