|
oh sorry, dialog based project, i read console project...
anyway, if you use MFC, check the value returned by the InitInstance() method of your project.
|
|
|
|
|
Is there no function or message which can be used for setting the exit code of an application?
|
|
|
|
|
|
Return whatever value you want from CWinApp:ExitInstance() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David,
thanks a lot. Exactly what I was looking for.
|
|
|
|
|
Hi guys,
writing a driver for a network interface, i'm faced with setting the QoS (Quality of Service) for each IP packet depending of the type of data being transmitted. now, we can transmit anything over the network: data, voice, video.. each of them must have its own QoS.
looking at data header from the data stream being passed to the driver could be a way but i'm wondering if it's really down that route, as there could be so many headers for different file formats.
any idea on how to determine the type of data being passed?
Thanks,
Fred
|
|
|
|
|
i am using the PlaySound function -Platform SDK: Windows Multimedia- to play .wav files, the problem is i need to know when this function finish playing the sound file and F.Y.I. when (fdwSound) parameter is set to SND_ASYNC "asynchronously", the function return immediately after beginning the sound.
also when (fdwSound) parameter is set to SND_SYNC "Synchronous", the function wait till it end the file playing and then return
i want to know :
1 - when the function finished playing the file if the (fdwSound)param. is SND_ASYNC
2 - OR how can i stop playing the file if the (fdwSound)param. is SND_SYNC
thnx alot 4 ur time and concern !!
it is good to be here
|
|
|
|
|
Well, you could use PlaySound from a secondary thread, running synchronously then posting a thread message when it completes.
Steve S
Developer for hire
|
|
|
|
|
that's not wat i want
i want if it si running synchronously ---> to be able to stop the file playing
OR if it is running asynchronously ---> to detremine when the file finish playing
that's it;)
i already able to know that the file finish playing when it is synchronously called cuz the function doesn't return untill it finish playing
|
|
|
|
|
|
You want to be able to play it synchronously, yet be able to stop it playing.
Can't do that, because PlaySound won't return until it's already finished.
You want to play it asynchronously, and get notified when it's stopped playing.
Can't do that, because PlaySound provides no notifications.
However, if you read what I wrote, you can get the behaviours that you want.
Spin another thread to call PlaySound synchronously. That thread can tell you when it's finished, and the effect on the other thread is that of playing it asynchronously.
If you want to stop it playing, you can call playsound with a purge option (as someone else has suggested) from the original thread, which will give you what you want.
Alternatively, you can try the MCI interface, or look at the waveOut* functions. However, using waveOut is a lot more complicated than using PlaySound with a second thread
There's a phrase which comes to mind: If you won't like the answer, don't ask the question...
Steve S
Developer for hire
|
|
|
|
|
singersinger wrote: OR how can i stop playing the file if the (fdwSound)param. is SND_SYNC
PlaySound(NULL, 0, SND_PURGE) might do the trick if called from another thread.
We're the regulators that de-regulate
We're the animators that de-animate
Fold with us! ¤ flickr
|
|
|
|
|
Hi,
I am new for using Dialogic Api.Can anyone say links for Discussion forums on Dailogic Api.
Thank you .
|
|
|
|
|
|
Thak you.
But r u sure about the link, am getting URL error
|
|
|
|
|
Do you have any error when you want to open it,I open it without problem?
|
|
|
|
|
I don't know why i got error last time.But now it opened.
Thank you.
|
|
|
|
|
|
Can you please say ,
Is there any website like codeproject for dialogic api.I want Dialogic api discussion forums.
Thank you.
|
|
|
|
|
This[^] website will be of help.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
|
Only google
|
|
|
|
|
Hmm, the first hit in google - Why is it that these people are capable of finding CodeProject, yet are unable to use google?
|
|
|
|
|
benjymous wrote: Why is it that these people are capable of finding CodeProject...
...and registering, and posting a message? As was told to the boy asking how many licks it took to get to the center of a Tootsie Pop, "The world may never know."
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi DavidCrow,
I know about Google and I searched for the site. I have already registered in codeproject.The most important thing is many of the viewers of codeproject might work with Dialogic api. They might know about the websites.
That's why I posted here.
In the past u also posted a reply for my question.
Thank you and what I am trying to say u is that 'i am not lazy'.
|
|
|
|