C++ :: Using DirectShow To Control Flow Of A Program

Jul 18, 2014

I am having trouble understanding what I need to do to halt the flow of a program until a video file finishes playing. So far I have accomplished getting the video to play, but the program continues while the video is playing rendering the content of the program on top of the video making it not seen.

My goal is to make the video play, then once it has finished the rest of the program should run.

So far I have this in the start up area of my code:

//Initialize components for DirectShow to stream a video at start-up
CoInitialize(NULL);
//creates filter graph manager

[Code].....

After this code runs once, the program proceeds immediately into the loop where my update and render functions for the program runs. Preferably, I want to stop just the render function while allowing the update to continue to check if the user presses a key to skip the video. What do I need to add to the code to do this?

View 1 Replies


ADVERTISEMENT

Visual C++ :: How To Implement HD Video Recording Using DirectShow

Jun 19, 2013

I am using DirectShow to Play / Pause / Stop and Capture Video files. But Capturing and playing of video files is simple. I want to Implement HD Video recording in my project.

how to Implement HD Video Capturing using DirectShow.?

Or Apart from DirectShow, is there any other method to Implement HD Video recording in MFC.

View 6 Replies View Related

Visual C++ :: How To Capture HD Video (no Noise / Interference) Using DirectX / DirectShow

Nov 21, 2012

I am working on a project in which we capture a video using DirectShow samples. I want to know whether it is possible to capture a video with No noise, No interference etc. in other words, we want to capture High Quality (HD) video using DirectShow.

Is there any sample defined in DirectShow using which we can capture HD video.

View 4 Replies View Related

C++ :: Flow Chart For Nested Loop

Jan 6, 2014

how to draw a flow chart for following nested loop?

for(int r=1;r<=5;r++){
for(int c=1;c<=r;++c){
cout<<c;
}
cout<<endl;

View 1 Replies View Related

C++ :: Code Flow (loops And Arrays)

Feb 13, 2013

I am having problems understanding where this code is wrong as I believe that I am not receiving the correct outputs. I have truncated the code to the most pertinent.

The algorithm asks that every value in array1 be divided by array2

and if that value is less than the ratio * array3 (percentage filter) then output.

I have no problem with the code with the exception of abs(ratio*array3[m]

Assuming that the ratio = 1 then all values get outputted, I want the array1 (first value) to have the first value in array3 assigned to it, the second value in array1 to have the second value in array3 to be assigned.

So:

array1 (1.0) with array3 (0.05)
array1 (2.0) with array3 (0.06)
etc.
or
array1 (1.0) with array3 (0.05)
array1 (3.0) with array3 (0.07)

Code:
array1[5] = {1.0, 2.0, 3.0, 4.0, 5.0};
array2[5] = {1.0, 2.0, 3.0, 4.0, 5.0};
array3[5] = {0.05, 0.06, 0.07, 0.08, 0.09};
ratio = abc/def;
for(int m=0; m<5; m++) {

[code]...

View 2 Replies View Related

C++ :: Writing Pseudo Code And Flow Charts

Apr 15, 2013

I have finished writing the code for the following program. I have concerns with the pseudo-code that I have written and the flow chart seems really complicated. I dont know how to build it. Here is the question:

An Internet service provider has three different subscription packages for its customers:
Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour.
Package B: For $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour.
Package C: For $19.95 per month unlimited access is provided.

Write a program that calculates a customer s monthly bill. It should ask which package the customer has purchased and how many hours were used. It should then display the total amount due.

Input Validation: Be sure the user only selects package A, B, or C. Also, the number of hours used in a month cannot exceed 744

Here is my program:
#include <iostream>
using namespace std;
int main() {
char package;
int hours;

[code]....

What should be my pseudocode and flowchart ? Can i copy and paste my pseudocode here ?

View 2 Replies View Related

C/C++ :: Flow Meter - Count Certain Quantity Of Fluid Then Light Up Corresponding LED

May 6, 2014

I am attempting to write some code for a flow meter and LEDs using my Arduino. I need the flow meter to count a certain quantity of fluid, then light up an LED which corresponds to that quantity. I found this code on the internet and it was exactly what I needed but when I opened up the serial monitor to see if it worked it didn't. I have finally fixed the issue with it not counting anything at all, but it is still acting as if it was measuring the rate. how it counts and keeps track of how much fluid in total has passed through the flow meter ?

volatile int NbTopsFan; //variable to accumulate the number of pulses
float Calc = 0; //the volume flowed since measurement started, liters
void pulse() //This is the function that the interupt calls
int hallsensor = 2; //The pin location of the sensor

const int led1Pin = 3; //pin for LED corresponding to volume1
const int led2Pin = 4; //pin for LED corresponding to volume2

[Code] .....

View 13 Replies View Related

C++ :: Any Way To Have Program Control Go Some Two Paths At Once?

May 6, 2014

is there any way to have the program control go some two paths at once? For example: if my program has two functions, one that does some simple calculation that requires nothing from outside it to set the variables and another that displays text for the user to read then enter something. Is there any way to have both run at the same time?

simpleFnc()
{int a = 1;
int b = 2 ;
int c = a+b ;

[code]....

There is no connection of simplefnc to anywhere else in the program so is there any way to get it to run at the same time the other function is running?

View 4 Replies View Related

C# :: Change Form Control Properties From User Control

May 24, 2014

I have researched quite extensively, experimented, and still cannot seem to change the properties of a control on an active winform from a user control.

So I have a user control which populates each dynamically added tab page in a tab control.

I have a textbox in the user control which I would like to type in, capture the text_change event, and change the text of the label in the winform.

View 14 Replies View Related

C# :: Bind DatePicker Control To DataGrid Control (column)?

Apr 25, 2014

How do I bind a DATE column in a DataGridView Control to a DatePicker control (using C#)? I already have the DataGridView control bound to a database stored procedure which takes a DATE value as a parameter and selects joining table based on the results.

View 7 Replies View Related

C++ :: How To Use While Loop To Control Sudden Termination Program

Jan 4, 2013

how to use while loop to control sudden termination program of win32 console application ?

View 1 Replies View Related

C++ :: Program And Simulate 2 Floor Lift Control System?

Apr 28, 2014

I need to program and simulate a 2 floor lift control system. How to do that ? I need to design its program only.

View 1 Replies View Related

C++ :: Control Structures - Program That Will Prompt And Read 5 Numbers

Oct 21, 2013

How to write a program that will prompt and read 5 numbers. Then the program should print numbers that are larger than 80.

View 1 Replies View Related

C++ :: Traffic Control Program - Output Data At Specific Time

Oct 24, 2013

I was given an assignment to create a simple program for traffic control. How should i output data at a specific time, for e.g a driver approaches an intersection, the yellow light will flash indicating that he needs to slow down and then the red light to stop before taking a route. is there any function i can use to output red light a few seconds after yellow light.

View 10 Replies View Related

C :: Robotics And LED Control

Aug 4, 2014

i've taken a couple courses in C Programming and all of the assignments were pretty basic. I've been looking into some of the awesome things that people have been doing with the Raspberry Pi and noticed that some of them are using the C language to control robotic arms and LEDs. I skim the code for some of these projects and notice they are using header files and code that i have never seen, nor are they in the books that i have. for example:

#include <fcntl.h>
#include <sys/mman.h>

View 2 Replies View Related

C++ :: Control Usb Ports?

Mar 5, 2013

how to control usb ports in visual studio C++?

View 1 Replies View Related

C++ :: Control Array Value Retrieval

Aug 23, 2013

I am using MFC (and a newbie here) and I want to retrieve values of my control array.

How can I possibly do that? This is my ControlArray

Code:
m_EditArray[0]=GetDlgItem(IDC_EDIT1);
m_EditArray[1]=GetDlgItem(IDC_EDIT2);
m_EditArray[2]=GetDlgItem(IDC_EDIT3);
m_EditArray[3]=GetDlgItem(IDC_EDIT4);
m_EditArray[4]=GetDlgItem(IDC_EDIT5);
m_EditArray[5]=GetDlgItem(IDC_EDIT6);

View 2 Replies View Related

C# :: WPF Freeze Control During Update

Jun 11, 2012

is there a way to tell WPF that I'm going to do a lengthy update on a control (TextBlock), and that it shouldn't redraw it until I tell it I'm done? I'm adding a large number of items to the Inlines property, and it has to redraw the entire control every time I add an item, which takes a very long time - about 1 second for every 100 items. I know some other frameworks allow freezing of certain controls, but I haven't been able to find anything in the documentation or on google. I've tried collapsing the TextBlock, and then making it visible again after the update, but it did not improve the performance at all.

View 6 Replies View Related

C :: Use SIGNALS To Control Threads

Nov 11, 2013

I've to use SIGNALS to control threads. Here's my code without the use of signals as I'm no good at that

Code:

#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
}

[code]....

View 4 Replies View Related

C++ :: How To Add Files To Tree Control

Jan 28, 2013

How do I add files to a tree control. I have all the directory and sub directorys ..need the files to

Heres the code

CFileFind fd ;
if ( path.Right ( 1 ) != "" )
path += "" ;
path += "*.*" ;
BOOL found ;
found = fd.FindFile ( path ) ;

[Code] .....

View 1 Replies View Related

C++ :: How To Control Iterator Of Multimap

Feb 22, 2013

I am running some simulation, in which i need to control the iterator of a multimap, like

multimap<double, int> mapp;
......

int n=6;
for(int i=0; i<5; i++) {
for(auto it = mapp.begin()+i*n; it!=mapp.begin()+(i+1)*n; it++) {
......

However this way of controlling is not possible for multimap. Why and how the make it work? Do I need to overload the operator +?

View 14 Replies View Related

C++ :: Cannot Control Table Alignment

Nov 29, 2013

I want the function to display all accounts deposit list to work properly, what i mean is that the table coming has its contents here and there . I want to align them properly. program in comment.

View 11 Replies View Related

C# :: How To Use Image Control Viewing

Aug 19, 2014

how I could use a Image control where I can upload an image to a folder(done that) and then take that image right after uploading it (in the same line of code) view it on the image control...

View 5 Replies View Related

C# :: Custom Control Properties?

Sep 23, 2014

I have been trying to make a custom control(list box with more features). I know how to setup custom properties, but how do I make it so that the property can be edited in a separate window ?

I think I figured out how to show the form itself, and I don't know how to make the [...] button like :

There's not much Custom Control tutorials out there, and that's really the problem here.

View 1 Replies View Related

C# :: Tabs Can't Remove From Tab Control

Mar 1, 2014

i used a tab control to open form when user clicks on button of required form.. now the problem is that if form open once it can b again open using its button... how can i stop this re open problem?

View 10 Replies View Related

C++ :: Copy Control Of Binary Tree

May 17, 2013

I have implemented a copy control version of binary tree.. As I am a Beginner. I think i have made my mistake.

Code:
#include <iostream>
#include <string>
class TreeNode{
TreeNode(const std::string &val):value(val),count(new int(1)){}
TreeNode(const TreeNode& rhs):value(rhs.value),count(count),left(rhs.left),right(rhs.right){++*count; }

[Code] ......

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved