antwar 0 Report post Posted March 8, 2007 ade sesape yg tahu camane nak import bunyi(sound) dalam code?skang aku tgh develop client sever chatting system. So klo bole aku nak wat cam YM la bole BUZZ!!so aku terpikir bole x dalam C ni import bunyi2 yg simple..klo bole i)header ape yg diperlukan?ii)camane nak gune dalam code?tunjuk ajar korang amat diperlukan Quote Share this post Link to post Share on other sites
ApOgEE 1 Report post Posted March 9, 2007 kalo nak mainkan bunyi#include <windows.h> int main() { PlaySound("c:\\laguko.wav", GetModuleHandle(0), SND_FILENAME); }pastikan ko link kan projek ko dengan winmm.lib dan pastikan juga ada fail c:\laguko.wav (bleh tukar ikut suka ) Quote Share this post Link to post Share on other sites