473,385 Members | 1,893 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,385 software developers and data experts.

Working with win32 window

I came accross a code (some prepared program) that plays a certain video on
any button click selected window on the PC. When it stops playing the video,
the original window diplays again its original view.
My mission is to preserve the last farme of the video (or some close view of
it) and have it as a static diaply instead of the original diaply.
Is that possible and how?

Regards

Rami
Jun 27 '08 #1
1 1210
On Thu, 15 May 2008 03:02:10 -0700, Rami <ra**@giron.comwrote:
I came accross a code (some prepared program) that plays a certain video
on
any button click selected window on the PC. When it stops playing the
video,
the original window diplays again its original view.
My mission is to preserve the last farme of the video (or some close
view of
it) and have it as a static diaply instead of the original diaply.
Is that possible and how?
Surely it's possible. But I don't think it would be possible to try to do
this using only .NET/C# functionality. This is doubly true if you are
using some external process to display the video where that external
process doesn't provide an API for you to receive frames from the video
directly.

You're not very specific about any of the problem. However, if you're
dealing with a normal video data file, you can use DirectShow to grab any
specific frame from the video, including the last one (I think it's the
IMediaDet interface that's useful for that, but don't hold me to that :)
). You can use DirectShow from a C# program via interop (p/invoke).
There is even an open source project meant to help with this. Use Google
to search for "directshow .net". It'll be one of the first hits, if not
the very first.

You may in fact find that once you're using DirectShow, it's easier to
just implement whatever video display functionality you want using that,
rather than "some prepared program".

Pete
Jun 27 '08 #2

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

Similar topics

3
by: Michael Flanagan | last post by:
Of course "echo" is working, but I've got a case where php doesn't seem to be sending out the result of an "echo." I'm probably doing something wrong, but I can't see it. I've got the following...
2
by: RL | last post by:
Hello Perl gurus, 1. I have a web page where I can push a button (dospawn.html). 2. This button calls a CGI script (spawnboss.cgi) 3. spawnboss.cgi calls a forking perl script (forkme.pl) 4....
7
by: Mikael Östberg | last post by:
Hello all! I have been working on a project for some time now and yesterday, my debugger stopped working. It is a class library which I run from a Win32 test app, so no IIS involved at this...
8
by: Tony Johansson | last post by:
Hello! I just wonder what the difference is between a native win32-app and MFC. What I know is that you can use Win32 API in both cases. I think an MFC application is connected with a GUI...
1
by: Marek Krzeminski | last post by:
I followed the instructions in the following link (http://support.microsoft.com/kb/325093/EN-US/) to fix my ASP server and it now works HOWEVER, when I try to use Visual Studio to compile any...
0
by: Apnea | last post by:
Hi all I am working on a C# application that is launched as a child within a 3rd party application (not .net) my problem is that when i use the any control on the form that inherits from...
2
by: B. | last post by:
I have a C# winform with accelerator key associated with some menus. If my exe is in unmanaged C++ and the winform is invoked through interop, the accelerator key not working. If I create a new...
0
by: jbenezech | last post by:
Hi all , I have a perl/java app running under Win32. The application consists of a perl service (Win32::Daemon) and of java classes. The perl service calls every xx hours java classes to perform...
3
by: Firecore | last post by:
Does anyone know how to use this? I was browsing a few tutorials on the net, and I saw one that shows how to display stuff on the screen. I added a few events. This is my code: #include...
7
by: newguy194 | last post by:
Why am I unable to produce a button with this Win32 program? All I have been able to produce is the empty window. #include <windows.h> // Declare WndProcedure LRESULT CALLBACK...
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: 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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.