|
|
DbMon that comes with the Platform SDK does that
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
exactly the program I was looking for. Tx
|
|
|
|
|
You're welcome
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
How to play a buffer? Can you elaborate a bit more?
|
|
|
|
|
Well,now i am doing a web streamming project. Client receives data from the server via UDP protocol and plays the data buffer(wave).
Now I have tried many methods,including MCI and DirectSound,but still haven't found a better solution.
With MCI,I use waveOutWrite() to play the data buffer.But waveOutWrite() will spend about 0.2 second to send the data block to the playing device and then return.This is deal to that there is about 0.2s interval
when playing the sound continually. I can't fix the problem. So now it is not smooth when playing the sound. (the sound buffer is about 800K).
DirectSound is usually used for game,and it base on focus.This is meant that when the program loses focus it can't play the sound in the background. Now I need it to play the sound whenever the program loses focus or not.
Now I am seeking a method to play the sound buffer(wave) without any delays.
My current method that plays the sound buffer go as follows:
when MCI(waveOutWrite()) finishs playing the current buffer,it singals the event. Thread receives this notification,then it fills in the buffer with new data.
And then use waveOutWrite() playing it again.
but waveOutWrite() has about 0.2s delay.
Now I want to find a better method without any delays.
Can anyone help me? You can contact me at this email address: xiaochengwx@163.com
Hoping your replies.
|
|
|
|
|
??
what kind of buffer?? sound?
if sound-> copy it to a sound buffer and play it!
Don't try it, just do it!
|
|
|
|
|
The functions you need are:
waveOutOpen()
waveOutPrepareHeader()
waveOutWrite()
waveOutClose()
|
|
|
|
|
But it seams that waveOutWrite() has about 0.2 second delay before it returns to main program.
|
|
|
|
|
Hello all
I'm need to write a click event for a Dialog. This Dialog subclasses CDialog. When I select properties for this Dialog the ID is shown as IDD_ABOUT. But when I use classwizard the to write a click event the OBJECT ID is not at all shown in the object id list.
Can any one help me in this?
Thanks for your help.
Hari.
|
|
|
|
|
Hi Hari,
if I understand you, then you have a "About-CDialog-class" and want to insert an event for a mouse-click.(?)
Open the classwizard and look for your "Class name" (a field also named in the wizard). Select your class and the same name is available in the listbox Object IDs.
Now you can insert/add an event-handler for e.g. WM_LBUTTONDOWN (left mouse button, in the right message-listbox).
I hope, this was the problem.
Regards
Frank
|
|
|
|
|
As in the dialog with PropertySheet to hide the PropertyPage headers.
I want, that tabs were switched by commands from the buttons which are placing in the same dialog, instead clicks by him headers.
For this purpose it is necessary to hide PropertyPage headers.
Any ideas, it is desirable with an example.
Best regards,
Eugene Pustovoyt
|
|
|
|
|
I don't understand what you are wanting. What are "PropertyPage headers?" Are you wanting to hide the tabs of a tabbed dialog?
|
|
|
|
|
Is it possible?
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
I tried it once but was unsuccessful. I created two classes: one from CListCtrl and the other from CListView. Maybe if I had dinked around with it for a few more hours, I could have made it work.
|
|
|
|
|
Just guessing, but since both inherit from CWnd, there are going to be some messages that will be sent to you twice and one is for the CListView and the other is for the CListCtrl. Not too sure if you will be able to differentiate what has to be done.
If you don't mind me asking, what might you be trying to accomplish?
Chris Meech
"what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002.
"And when you need to hire a programmer to do mostly VB programming, it's not good enough to hire a VB programmer, because they will get completely stuck in tar every time the VB abstraction leaks." Joel on Software Nov 11, 2002.
|
|
|
|
|
It's a CE SDI app that displays multiple views. Two of the views are not associated with the doc, and they both contain a list control (derived from CListCtrl), but the views are not derived from CListView. I'm having problems getting the list control to show up in the view.
Most of the code is being ported from a desktop (MDI) version of the same app.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
Here's a suggestion, but I have no familiarity with MFC on the CE development platform. Could each of the views be dialog based and the CListCtrl members of the dialogs?
Chris Meech
"what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002.
"And when you need to hire a programmer to do mostly VB programming, it's not good enough to hire a VB programmer, because they will get completely stuck in tar every time the VB abstraction leaks." Joel on Software Nov 11, 2002.
|
|
|
|
|
I was trying to avoid that, but it would probably work.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
Wouldn't that defaut the purpose of using a CListView? Keeping in mind that both classes are encapsulations of the Windows SysListView32 window class with the main difference being that the CListView has ties to the doc/view architecture, I would think that you would be losing what you're going after by simply using a CListCtrl on a dialog.
Cheers,
Tom Archer
Inside C#, Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
|
|
|
|
|
I don't need the doc/view interface for this view. It simply shows a list of files in a specific folder.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
I'm confused here. The list view *is* the list control. A common misconception is that the list view contains an embedded list control. It doesn't. Both are CWnd that encapsulate the SysListView32 window. When you say the listview doesn't show up, what exactly are you seeing. Are you sure your view is in the correct mode (e.g., LVS_REPORT)?
Cheers,
Tom Archer
Inside C#, Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
|
|
|
|
|
I'm seeing an empty view. The listctrl is set to report mode, but i don't see the list control header.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
I gotta tell you. The only things I can think of are the basics like did you insert the column headers (InsertColumn) and such. Other than that, I've never heard of such a problem. Also, are you setting the report view in the view's PreCreateWindow?
Cheers,
Tom Archer
Inside C#, Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
|
|
|
|