View Single Post
Old 14th February 2011, 06:27   #17
DrO
 
Join Date: Sep 2003
Posts: 27,876
you cannot use this example for a dsp plug-in, not without removing most of what is adds as it heavily relies upon subclassing Winamp which DSP's do not lend themselves to work with (as they are able to be dynamically unloaded and so breaks the subclass chain leading to what you're seeing).

the SendMessage(..) call to the embedwnd api in init(..) is where the window is created which is then doing the CreateWindowEx(..) inside of winamp.exe itself. as long as you have a valid HWND (as is obtained) then there shouldn't be a problem doing anything else - excluding not using this example as a DSP / VIS plug-in (or any plug-in type which allows for dynamic unloading).

-daz
DrO is offline   Reply With Quote