I am having a problem creating filter graphs

How do you do,
I recently created a source filter using the Direct Show Streaming Model via CSource as the base class for the filter. My problem is I have been trying to construct as well as revise a filter graph using GraphEdit, but when I try to connect my output pin to another filter, it brings the following error. Please help.

GraphEdit
These filters cannot agree on a connection. Verify type compatibility of input pin and output pins.
No combination of intermediate filters could be found to make the connection. (Return code: 0x80040217)
Regards
