Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RenderFile Problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi.,
I am new to directshow.
The RenderFile() function returns a (0x80040216) error message for the following method:
hr = graph->RenderFile (filename,NULL);

It works fine if I hard code the path like
hr = graph->RenderFile (L"c:\\vmsencoding1\\movies\\stage\\10404.mpg", 0);

I tried to declare filename as LPOLESTR ,LPCWSTR ,wchar_t*,
_TCHAR* and tried various castings too withourt any development.

Awaiting for a reply as this is a bit Urgent.
srini
 
Reference the PlayWnd sample.

The PlayMovieInWindow() function shows how to hand the filename.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top