精華區beta Programming 關於我們 聯絡資訊
==> 在 iceman.bbs@bbs.cs.nthu.edu.tw (冰人) 的文章中提到: > 如何在 BCB 上播放語音檔(*.wav or otherwise) > (p.s. 我曾使用過 PlaySound() -> 無效 > 及 > MediaPlayer -> 出現錯誤訊息 > 『???.exe raised expection class > EMCDeviceError with message > 'MMSYSTEM348 無法讀取這個檔案。 > 請確定檔案沒有被刪除或者檢查磁碟 > 或網路連線。'』 ) > 請回信至我的信箱!Thank You very much ! #include <mmsystem.h> 使用sndPlaySound函數即可 -- ※ Origin: 清華電機 ◆ From: thccy14.oz.nthu.edu.tw > -------------------------------------------------------------------------- < 發信人: iceman.bbs@bbs.cs.nthu.edu.tw (冰人), 看板: Programming 標 題: Re: 請教一個 BCB 的問題 發信站: 清華資訊(楓橋驛站) (Tue Dec 15 20:51:11 1998) 轉信站: Ptt!news.ntu!ctu-gate!news.nctu!newsfeed.nthu!news.cs.nthu!maple ※ 引述《bigakira@hello.com.tw (南台灣豆花)》之銘言: > 補充一點 > 在unit.cpp 中 開頭要 #include <mmsystem.h> > 並且需將該聲音檔複製到你的unit.cpp的目錄中哦 > 更重要的是sndPlaySound()函數的規格 > sndPlaySound("????.wav",NULL); //==>說明如下 > // ???代表你要用的檔名 NULL 表示空集合 ==>另有其他的功能選擇 > 這樣你就萬無一失了 > 南台灣豆花 > bigakira@hello.com.tw > 200磅 撰寫於文章 <3S5BTf$jLJ@bbs.ee.nthu.edu.tw>... > >#include <mmsystem.h> > >使用sndPlaySound函數即可 > >-- 謝謝各位的解惑! Thank You very much ! -- ※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: speech05.ee.nthu.edu.tw