| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 832 人关注过本帖
标题: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
快速回复:c#编写wp7程序,无法读取wav文件数据
数据加载中...
 
   



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

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