Click here to get back home

IGraphbuilder::RenderFile fails with error code VFW_E_CANNOT_RENDER for .mp3 files

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
IGraphbuilder::RenderFile fails with error code VFW_E_CANNOT_RENDER for .mp3 files visalavats 06-18-2008
Posted by visalavats on June 18, 2008, 3:44 pm
Please log in for more thread options
Hi all,

I am developing a player for Windows mobile 5.0 for pocket pc.
Whenever i try to play a .mp3 file the function Renderfile fails with
error code VFW_E_CANNOT_RENDER, same code works for .wav files
and .avi files.
below is the code snippet.

hr = CoInitialize(NULL);

hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
                                                        IID_IGraphBuilder, (void **) &pGraph);

hr = pGraph->QueryInterface(IID_IMediaControl, (void **) &pControl);
hr = pGraph->QueryInterface(IID_IMediaEvent, (void **) &pEvent);
hr = pGraph->QueryInterface(IID_IBasicAudio, (void **)
&pAudioVolumeControl);

hr = pGraph->RenderFile(L"\Program Files\Hari.mp3" , NULL);
hr fails here..........................

Please help me. I guess many of you surely know about this problem.

Thanks
Vishal

Similar ThreadsPosted
IGraphBuilder RenderFile October 17, 2006, 3:06 am
VFW_E_NOT_FOUND error on RenderFile April 3, 2006, 9:55 pm
RenderFile() error on smartphone June 14, 2006, 9:34 am
Separate .NET EXEs installing a WH_KEYBOARD_LL keyboard hook on Windows Mobile 5 Smartphone - second hook fails with win32 error code 31 A device attached to the system is not functioning. August 24, 2006, 6:15 pm
App install fails: what does this error mean in setup.log? August 9, 2005, 8:44 am
Code Signing, Cab Files and OpenNETCF component July 20, 2005, 6:29 pm
SmsSendMessage returning error code 120 April 3, 2007, 3:08 am
Error loading sample code September 6, 2007, 4:16 pm
Examining Execution Speed of JITted Code with CF 2.0 Sample Code June 5, 2008, 10:06 am
problem in loading dll when C files are replaced by .asm files August 11, 2007, 3:59 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap