Hi Please do take a look at http://groups.google.com/group/comp.lang.c++/browse_thread/thread/8957bbc264802af9# and let me know what you dshow folks think... Vivek
On Fri, 27 Jun 2008 00:18:14 -0700 (PDT), rep_movsd wrote: > Please do take a look at > http://groups.google.com/group/comp.lang.c++/browse_thread/thread/8957bbc264802af9# > > and let me know what you dshow folks think... I don't like the caps in the variable names either but that can be changed :) I don't like the globals. Why do they need to be global? -- Please read this before replying: 1. Dshow & posting help: http://tmhare.mvps.org/help.htm 2. Trim & respond inline (please don't top post or snip everything) 3. Benefit others: follow up if you are helped or you found a solution
> > I don't like the globals. Why do they need to be global? > Actually, they arent globals at all... The DECLARE_FlLTER macros just set up some empty templated types. The FILTER macro creates a temporary object, who by virtue of being named the same as a declared filter identifier will point to the same filter. The temporary object wraps itself round the actual filter COM object that is owned by the graph. You can put the DECLARE_FlLTER macros in a header and use the identifiers in any source file, they will refer to the actual filters in a graph VIvek