日期:2014-05-17  浏览次数:20750 次

做C#视频求教
问一下我在这个哪里错了  改后台dll的调用都有,前面哪里错了为什么播放不了视频呢用的panal这个容器控件做的播放容器求大神们看看,帮修改一下
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Runtime.InteropServices;

namespace LMZ566666
{
    public partial class Form1 : Form
    {
        public int pWidth;
        public int pHeight;
        public int nPort = 0;
        public static IntPtr hWnd;
        public static IntPtr sFileName;
        public static IntPtr colorKey;
        public static IntPtr nPause;
        public static bool bOverlay;
        public static string nMsg;

        public Form1()
        {
            InitializeComponent();
        }
       
        private string m_strPlayFileName;
        private void button1_Click(object sender, EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                m_strPlayFileName = openFileDialog1.FileName;
                openFileDialog1.Filter = "Hikvision文件(*.mp4;*.264)|*.mp4;*.264|所有文件(*.*)|*.*";
                if (!string.IsNullOrEmpty(m_strPlayFileName))
                {
                    OpenFile();