Click here to Skip to main content
16,017,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TerminateThread hangs Pin
Mark Salsbery24-Nov-07 10:28
Mark Salsbery24-Nov-07 10:28 
GeneralRe: TerminateThread hangs Pin
maciu202024-Nov-07 22:27
maciu202024-Nov-07 22:27 
QuestionCan VC realize the localizable dialog ? Pin
BegtostudyBoy23-Nov-07 14:04
BegtostudyBoy23-Nov-07 14:04 
AnswerRe: Can VC realize the localizable dialog ? Pin
Nelek25-Nov-07 21:26
protectorNelek25-Nov-07 21:26 
GeneralRe: Can VC realize the localizable dialog ? Pin
BegtostudyBoy25-Nov-07 22:00
BegtostudyBoy25-Nov-07 22:00 
QuestionI have put PlaySound() in the View - and it dosent play any thing until at rest Pin
simon alec smith23-Nov-07 12:53
simon alec smith23-Nov-07 12:53 
QuestionRe: I have put PlaySound() in the View - and it dosent play any thing until at rest Pin
Mark Salsbery23-Nov-07 15:28
Mark Salsbery23-Nov-07 15:28 
AnswerRe: I have put PlaySound() in the View - and it dosent play any thing until at rest Pin
simon alec smith24-Nov-07 4:00
simon alec smith24-Nov-07 4:00 
I am trying to create a game in mfc

in the OnDraw, I am calling ---- PlaySound("c:\\sound.wav",0,SND_FILENAME | SND_ASYNC); -----

the OnIdle is called when there is no mouse or keyboard activity
and with in onidle the invalidate is called for ondraw

--- AfxGetMainWnd()->Invalidate(false); ---

so the draw is called a number of times,

I know that the playsound is called a number of times, sofor I would expect
odd behavior, so I have set the onidle return value to 0, so it is only called after keyboard or mouse interuption has ended as aposed of the call to be continuse

as I mentioned the sound only plays when there is no keyboard or mouse acticvity

what I am after Is a soloution, or a structered method to go about this,
I have looked around on the internet, an d things seem very complcated

this playsound is all I can go about

if you can refer me to any relevant articles, it would very much be a appreciated



simon
GeneralRe: I have put PlaySound() in the View - and it dosent play any thing until at rest Pin
Mark Salsbery24-Nov-07 7:12
Mark Salsbery24-Nov-07 7:12 
QuestionMFC ON_COMMAND problem Pin
FredrickNorge23-Nov-07 10:19
FredrickNorge23-Nov-07 10:19 
QuestionRe: MFC ON_COMMAND problem Pin
Mark Salsbery23-Nov-07 10:23
Mark Salsbery23-Nov-07 10:23 
AnswerRe: MFC ON_COMMAND problem Pin
FredrickNorge23-Nov-07 10:27
FredrickNorge23-Nov-07 10:27 
GeneralRe: MFC ON_COMMAND problem Pin
Mark Salsbery23-Nov-07 10:32
Mark Salsbery23-Nov-07 10:32 
GeneralRe: MFC ON_COMMAND problem Pin
FredrickNorge23-Nov-07 10:46
FredrickNorge23-Nov-07 10:46 
GeneralRe: MFC ON_COMMAND problem Pin
Mark Salsbery23-Nov-07 11:00
Mark Salsbery23-Nov-07 11:00 
GeneralRe: MFC ON_COMMAND problem Pin
FredrickNorge23-Nov-07 11:41
FredrickNorge23-Nov-07 11:41 
QuestionVTBL Pin
IWannaTalk23-Nov-07 9:43
IWannaTalk23-Nov-07 9:43 
AnswerRe: VTBL Pin
DoomedOne23-Nov-07 9:57
DoomedOne23-Nov-07 9:57 
GeneralRe: VTBL Pin
IWannaTalk23-Nov-07 10:08
IWannaTalk23-Nov-07 10:08 
AnswerRe: VTBL Pin
Mark Salsbery23-Nov-07 10:06
Mark Salsbery23-Nov-07 10:06 
GeneralRe: VTBL Pin
IWannaTalk23-Nov-07 10:11
IWannaTalk23-Nov-07 10:11 
QuestionRe: VTBL Pin
Mark Salsbery23-Nov-07 10:15
Mark Salsbery23-Nov-07 10:15 
AnswerRe: VTBL Pin
IWannaTalk23-Nov-07 10:19
IWannaTalk23-Nov-07 10:19 
GeneralRe: VTBL Pin
ThatsAlok23-Nov-07 18:14
ThatsAlok23-Nov-07 18:14 
Questionconvert ascii to csv Pin
japena0323-Nov-07 9:31
japena0323-Nov-07 9:31 

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.