标题:c#编写wp7程序,无法读取wav文件数据
取消只看楼主
sunpussy
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2008-5-9
 问题点数:0 回复次数:0 
c#编写wp7程序,无法读取wav文件数据
代码如下
using System;
using System.Collections.Generic;
using System.Linq;
using
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using
using System.Text;
namespace one
{
    public partial class MainPage : PhoneApplicationPage
    { // Constructor
        public MainPage()
        {
            InitializeComponent();
           
            Test();
            ……………………
         }

        public void Test()
        {
            string path = @"路径";
            FileInfo fi = new FileInfo(strpath);
             fs = fi.OpenRead();
            byte[] bInfo = new byte[44];
            fs.Read(bInfo, 0, 44);
            ……………………
        }
}
运行时,fs为null,提示错误Attempt to access the method failed: (System.String),本人初学啊,菜鸟一枚,请高手支招,谢谢啦
搜索更多相关主题的帖子: 数据 one public 
2011-04-01 14:20



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-335391-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.097611 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved