473,396 Members | 1,852 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,396 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 1211
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
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...
0
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,...

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.