Click here to Skip to main content
15,910,797 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: GDI+ and DPX file format Pin
Alan Balkany29-Sep-08 7:11
Alan Balkany29-Sep-08 7:11 
GeneralRe: GDI+ and DPX file format Pin
Sonhospa29-Sep-08 7:48
Sonhospa29-Sep-08 7:48 
QuestionAVI Duration Pin
dwg198629-Sep-08 0:50
dwg198629-Sep-08 0:50 
AnswerRe: AVI Duration Pin
Tim Craig29-Sep-08 9:55
Tim Craig29-Sep-08 9:55 
AnswerRe: AVI Duration Pin
Mark Salsbery29-Sep-08 10:24
Mark Salsbery29-Sep-08 10:24 
GeneralRe: AVI Duration Pin
dwg198630-Sep-08 0:50
dwg198630-Sep-08 0:50 
GeneralRe: AVI Duration Pin
Mark Salsbery30-Sep-08 4:54
Mark Salsbery30-Sep-08 4:54 
GeneralRe: AVI Duration Pin
dwg198630-Sep-08 7:13
dwg198630-Sep-08 7:13 
Thanks for your reply. The code fails at runtime in the underlined line of code below:

using System;
using System;
using System.Windows.Forms;
using Microsoft.DirectX;
using Microsoft.DirectX.AudioVideoPlayback;

public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Test()
        {
            double dDuration = 0;
            try
            {
                Video video = Video.FromFile("C:\\Test.avi");

                dDuration = (video.Duration / 60);
            }
            catch (DirectXException dxEx)
            {
                MessageBox.Show(dxEx.Message);
            }
        }
    }


The underlined line of code is where the DirectXException described in my original question is thrown.

Thanks again,

Daniel
GeneralRe: AVI Duration Pin
Mark Salsbery30-Sep-08 9:26
Mark Salsbery30-Sep-08 9:26 
GeneralRe: AVI Duration Pin
Mark Salsbery30-Sep-08 9:43
Mark Salsbery30-Sep-08 9:43 
GeneralRe: AVI Duration Pin
dwg198630-Sep-08 10:08
dwg198630-Sep-08 10:08 
GeneralRe: AVI Duration Pin
Mark Salsbery30-Sep-08 16:12
Mark Salsbery30-Sep-08 16:12 
GeneralRe: AVI Duration Pin
dwg19861-Oct-08 7:42
dwg19861-Oct-08 7:42 
GeneralRe: AVI Duration Pin
Mark Salsbery1-Oct-08 8:13
Mark Salsbery1-Oct-08 8:13 
QuestionGDI+ how can I add transparent to image that doesn''t had one? [modified] Pin
xanagan66626-Sep-08 1:07
xanagan66626-Sep-08 1:07 
AnswerRe: GDI+ how can I add transparent to image that doesn''t had one? Pin
Mark Salsbery27-Sep-08 9:28
Mark Salsbery27-Sep-08 9:28 
GeneralRe: GDI+ how can I add transparent to image that doesn''t had one? Pin
xanagan66628-Sep-08 15:03
xanagan66628-Sep-08 15:03 
QuestionThe same in VB? Pin
Sonhospa29-Sep-08 6:12
Sonhospa29-Sep-08 6:12 
Questionscreencapture partly black Pin
jVersteegen25-Sep-08 1:50
jVersteegen25-Sep-08 1:50 
AnswerRe: screencapture partly black Pin
Mark Salsbery27-Sep-08 9:35
Mark Salsbery27-Sep-08 9:35 
GeneralRe: screencapture partly black Pin
joost.versteegen2-Oct-08 20:49
joost.versteegen2-Oct-08 20:49 
GeneralRe: screencapture partly black Pin
Mark Salsbery3-Oct-08 4:43
Mark Salsbery3-Oct-08 4:43 
GeneralRe: screencapture partly black Pin
joost.versteegen3-Oct-08 4:49
joost.versteegen3-Oct-08 4:49 
GeneralRe: screencapture partly black Pin
Mark Salsbery3-Oct-08 4:51
Mark Salsbery3-Oct-08 4:51 
QuestionRotation and zoom in/out of Cube Pin
aurosikhadas24-Sep-08 22:07
aurosikhadas24-Sep-08 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.