473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

(DirectShow) AVI player using CFrameWnd class ???


Hello Everybody,

I have created an AVI Player using DirectShow. This player is working
fine. I have also created a View Window (with class name CViewWnd)
using CFrameWnd class. This view window is used in an application which
plays its own customised files (of some other extensions) on this view
window. Now:

1. I have to play the AVI file on this view window (i.e. integrate my
AVIPlayer as a plugin to the original application). To achieve this
I am passing CViewWnd instance to AVIPlayer (so that I will get the
cordinates and size of original view window and my AVI player
window will overlap the view window. AVI window will be of same
size and dimension as of view window). But it gives error (read
point 2 below).

2. Can I pass the instance of my View Window class in AVI Player. If so
how? Here condition is that AVI player needs to be a seperate entity
i.e. it does not understand my view window class, neither I can
include the view window header in AVI player. If I pass view window
as parameter to my AVIPlayer (as HWND *CViewWnd), it gives following
error: ((Can not convert parameter from 'class CViewWnd' to 'struct
HWND'. Types pointed are unrelated. Conversion requires
reinterpret_cast, C-style cast or function-style cats.)).

Pls tell me, how my AVIPlayer can understand this CViewWnd class.

Following statement in my AVIPlayer uses the CViewWnd:

pVideoWindow->put_Owner((OAHWND)pViewWnd);

Here 'pVideoWindow' is DirectShow interface and 'pViewWnd' is
CViewWnd instance.

1. My original application AVI Player as AVIPlayer is a plugin to the
application. So original application does not understand DirectShow.

2. AVI Player does not understand my original application.

So we have to use some MFC standard data type to be passed into my
AVI Player.

Thanx in advance for the help.

Regards,

Saurabh Agarwal,

New Delhi, India

(sa*****@joinme.com)

(sa******@momentum-tech.com)
--
Posted via http://dbforums.com
Jul 19 '05 #1
1 4278
agrsaurabh wrote:
Hello Everybody,

I have created an AVI Player using DirectShow. This player is working
fine. I have also created a View Window (with class name CViewWnd)
using CFrameWnd class. This view window is used in an application which
plays its own customised files (of some other extensions) on this view
window. Now: [snip]
Thanx in advance for the help.

Regards,

Saurabh Agarwal,

New Delhi, India

(sa*****@joinme.com)

(sa******@momentum-tech.com)
--
Posted via http://dbforums.com


I believe you have posted to the wrong newsgroup.
You want a Microsoft Visual C++ or Microsoft Windows
newsgroup. You issue is more with the platform and
specific API than the C++ language.

See the FAQ and welcome.txt below for more information.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 19 '05 #2

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

Similar topics

4
by: Tamir Khason | last post by:
Question: I have some custom video card with custom driver, which does not support DirectShow. How it possible (if it is) implement program using it within .NET enviroment? TNX -- Tamir...
0
by: Nick Z. | last post by:
I need to use DirectShow and it is just a pain in the butt with C#. (since the managed version of dx doesnt have directshow) I'm thinking of different ways of getting DirectShow functionality. I...
0
by: sengkok | last post by:
hi, i am using the directshow in C# to built a karaoke system,but i am facing a problem with the audio play in the video file (DAT format), some of the video file , i can control the music and...
8
by: John E Katich | last post by:
When attempt to use the Event Wizard I get the following error message: "Add/Remove of the function impossible, because the parent class code is read only" The Project was convert from VC 6.0....
7
by: Dave | last post by:
Hi, can I use directshow in c#??? dose Microsoft still support direct show sdk or there is a new technology today??? what is the best way to draw on playing video and how can I do that??? ...
2
riptide2049
by: riptide2049 | last post by:
I really have a problem here. I have a code that is suppost to take the href of a link from the right class;value of a link maked toreturn false. the value is a Media file the file is sent to...
4
by: ink | last post by:
Hi All, I am trying to build an image capture user control using DirectShow to be used in an existing C# application. It needs to have a view finder/ preview window and be able to take...
4
by: Sayanan Sivaraman | last post by:
Hey all, So I've written a simple video player using directshow/COM in VC++, and I'm in the process of translating it to python. For example, when the avi starts playing, I have a call...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.