다음을 통해 공유


Declaring the Derived Class (Windows CE 5.0)

Send Feedback

The IMediaObjectImpl template is declared in the header with the following syntax.

template <class _DERIVED_, 
int NUMBEROFINPUTS, 
int NUMBEROFOUTPUTS>class IMediaObjectImpl : public IMediaObject

Parameters

  • *_*DERIVED_
    Derived class type.
  • NUMBEROFINPUTS
    Number of input streams.
  • NUMBEROFOUTPUTS
    Number of output streams.

Return Values

None.

Remarks

For example, to create a derived class named CMyDmoClass that supports one input stream and one output stream, you would declare it as follows.

class CMyDmoClass :
    public IMediaObjectImpl<CMyDmoClass, 1, 1>  // 1 input, 1 output

DMOs cannot dynamically create or destroy streams, so the stream numbers are constant.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Dmoimpl.h.

See Also

DMO Reference | DMO Base Class Reference | IMediaObjectImpl

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.