473,569 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Playback video file in VC++ .NET

Hello.
I want to play video and audio file in VC++ .NET.
I have Installed DirecX8.1 SDK and also I have specified
the header file path for project.

I have found this sample from .NET help that play video
file ,

//--------------------------------------------------------
#include <dshow.h>
void main(void)
{
IGraphBuilder *pGraph;
IMediaControl *pMediaControl;
IMediaEvent *pEvent;
CoInitialize(NU LL);

// Create the filter graph manager and query for
interfaces.
CoCreateInstanc e(CLSID_FilterG raph, NULL,
CLSCTX_INPROC_S ERVER,
IID_IGraphBuild er, (void **)&pGraph);
pGraph->QueryInterface (IID_IMediaCont rol, (void **)
&pMediaControl) ;
pGraph->QueryInterface (IID_IMediaEven t, (void **)&pEvent);

// Build the graph. IMPORTANT: Change string to a file on
your system.
pGraph->RenderFile(L"C :\\Example.avi" , NULL);

// Run the graph.
pMediaControl->Run();

// Wait for completion.
long evCode;
pEvent->WaitForComplet ion(INFINITE, &evCode);

// Clean up.
pMediaControl->Release();
pEvent->Release();
pGraph->Release();
CoUninitialize( );
}
//-------------------------------------------------------

But when I want to Build this program I give following
error :

error LNK2020: unresolved token (0A000016) IID_IMediaEvent
error LNK2020: unresolved token (0A000018)
CLSID_FilterGra ph
and so on .
How I can solve this problem.
My E-mail : my************@ yahoo.com
Nov 16 '05 #1
0 2232

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
332
by: Jacob | last post by:
I'm desperately in need of some direction here... I'm trying to write some software that would play back a series of images as a movie. I'm fairly new to C and I can't seem to find any resources on this. What I'm looking for is a brief tutorial (or VERY well document code) that will open a series of images, buffer them properly in memory,...
0
1550
by: dicky2283 | last post by:
windows development community please help me im deepak roy , doing my final year undergrad in computer science.... im doing a project - Motion detection and Tracking in vc++( video for windows). The project combines image acquisition, manipulation techniques with other image processing techniques and neural network approaches. im using...
2
9636
by: K.H. | last post by:
Hi Does anyone know how I can grab a video stream from an IP-address? There's a video web server for live image transmission in the Internet. Data transfer is accomplished via TCP/IP. The web cam that I am using is integrated into a network with fixed IP address. The streaming software is already there, so I have to go to this IP-address to...
8
3616
by: Nehmo | last post by:
When a page has a JavaScript "link" to a video, like http://www.msnbc.msn.com/id/10478942/ . How do you get the URL of the actual video? Isn't it in the source somewhere? -- )|:__ Nehmo __:|(
1
1693
by: Paolo | last post by:
Hi all! I'm new to Linux but I have a complex task (at least it seems so to me!): I created a small multicast protocol in C++ and now I need an application for testing. I have to create an application that sends and receive video streams, and diplays the videoo too on the screen. In the protocol API I have two methods, StreamWrite and...
2
7877
by: hzgt9b | last post by:
Using VS2003, VB.NET, BACKGROUND I have a window forms based application that will be distributed and executed directly from CD media. The app contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowse) control. The TreeView is populated with nodes that when clicked play an audio clip that is stored on the CD and navigate the...
3
14521
by: lukemack | last post by:
Hi, Can anyone recommend a class/script which handles video file uploads, preferably with Flash integration? I'm looking to have a video upload / library section in my cake app. I considered the youtube api but they dont have upload functionality in the api (yet). The following links suggest what i want to do should be possible:
0
1676
by: dugfresh36 | last post by:
I am trying to control the playback of a tutorial I am building in Flash 8 Basic. I want the user to be able to go through the tutorial in two ways: 1) by manually clicking forward and back buttons; and, 2) by clicking a "PLAY" button and having the tutorial drive itself. It's this second method that is killing me. Here's what I'm trying to...
5
3346
by: sonu | last post by:
hey good morning ...... how to convert a video file in .flv format in php for linux hosting......is there any package whis provide this facility . Can i use ffmpeg for linux hosting project.......... plz help me.. thanks & regards Prabhat
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.