摘要: 第一种方法: 利用API播放声音文件using System.Runtime.InteropServices; 在调用API时先引用[DllImport("winmm")]public static extern bool PlaySound(string szSound, IntPtr hMod, int i); //声明API:PlaySound调用:PlaySound(@"声音文件路径",I... 阅读全文
posted @ 2010-03-02 15:09 钢的锅 阅读(3725) 评论(1) 推荐(0) 编辑
摘要: using System;using System.IO;using System.Collections;public class Class1{public Class1(){ } static void Main(string[] args) { ArrayList names = new ArrayList(); string path = "D:\\csTest"; names.AddR... 阅读全文
posted @ 2010-03-01 14:51 钢的锅 阅读(141) 评论(0) 推荐(0) 编辑