Introduction

When I worked on another project, I got this method to implement motion detection.

I tried some other ways to do this motion detection. But I got frustrated when I used them. Because I don't really need any advanced algorithms to do this one, I thought a little and got a nice idea to do it. And you can also do it now.

Just about 5 lines in Visual C++ .NET code and a few lines in Flash Action Script.

Background + Prerequisites

You should have pre-installed the .NET version 1.1 and Flash player 6 or higher for testing this code. They are freely available at the links given below:

Using the Code

The first message comes when the application starts. The others come when it detects motion. The camera preview part and the motion detecting part are actually being done by the flash scripts. Finally the Visual C++ .NET application gets the motion via VC COM interface fscommand();

I have been trying to find a way to get the time duration of the FLV file (Youtube link in this case) loaded in the AxShockwaveFlash control, but have found nothing (anywhere) to point me in the right direction.

I use MS Visual Studio.NET 2005(C#). I can not add shockwave Flash object . When i added and drag it to window MS Visual Studio.NET 2005 will show message "Failed to import the ActiveX Control.Please ensure it is properly registered" I don't know this message.
Can you programming in c# and tell me about this project. Please help me

In here Visual C++ does not grab the image frames. All the motion detection is done by the Flash ActionScript. The new Camera class have the features to do it.
After detecting the motion it passes a trigger to VC++ to do some action.
I have mentione all the required information about the program.