Thank you very much; your message was very helpful. I can now send message from Win32PreferencesWindow.cpp and pick up the message from any classes that has AcceptEvent. Since SoundCardPMO doesn’t have AcceptEvent I cannot pick up the message from there.
SoundCardPMO seem to have its own message sending facility, but I cannot seem to be able to use this from Win32PreferencesWindow.cpp. How do I go about getting some vital information from Win32PreferencesWindow.cpp to SoundCardPMO. I seem to have two options: 1) Accept the message from one of the AcceptEvent methods and then from their get it to SoundCardPMO. 2) Try to work out how to use the message sending facility in SoundCardPMO outside, i.e. from Win32PreferencesWindow.cpp Can someone please let me know which one would be the better option and how would I go about doing this. Thank you very much for your help. James >From: "Mark B. Elrod" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Message sending >Date: Fri, 03 May 2002 01:09:01 -0700 > >Right now things are pretty inefficient and all messages are sent to all >plugins. We always had plans to allow plugins to "subscribe" to >different types of messages... just never happened. That said, my memory >is a little rusty but here is what you should need to do. > >1. Define a new event that inherits from Event. You can see examples of >this in base\include\eventdata.h >2. Next you need to add a case in Player::ServiceEvent() >(base\src\player.cpp) that forwards the event via the SendEventToUI() >functioan call... just append it to the long list of other events. >3. In your PMO you should look for your new event in your event loop. >Search for PeekEvent() and GetEvent() in the current PMO for where it is >checking the queue. > >Hope this helps. > >elrod > >James Ryan wrote: > > > Hi guys, > > > > I would really appreciate some help regarding the matter bellow. > > > > I would like to notify the class SoundCardPMO that something has > > changed in the PreferenceWindow (i.e. Win32PreferenceWindow class). > > > > I am aware that there is an eventdata header file which has classes > > that inherits from event. > > > > How do I go about using this facility. Any help in this matter would > > be really appreciated. > > > > The main two things I would like to know are how do I send the message > > and once the message is sent how do I from SoundCardPMO detect that a > > message has been sent. > > > > Thank you very much. > > > > James > > > > _________________________________________________________________ > > MSN Photos is the easiest way to share and print your photos: > > http://photos.msn.com/support/worldwide.aspx > > > > _______________________________________________ > > [EMAIL PROTECTED] > > http://www.freeamp.org/mailman/listinfo/freeamp-dev > > > > >_______________________________________________ >[EMAIL PROTECTED] >http://www.freeamp.org/mailman/listinfo/freeamp-dev _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com _______________________________________________ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev