当程序走完后,就执行“playsound.exe”,用声音提示操作者又得干活了。 playsound.exe 是一个外部可执行文件,只要能使音箱发声就可以了。 有VC的也可以这样来做playsound.exe : #include "stdafx.h" #include #include #pragma comment(lib,"Winmm.lib") int main(int argc, char* argv[]) { PlaySound("end.wav",NULL,SND_FILENAME); return 0; } 呵呵,一个很小小小小小小的技巧,希望对大家有用。
登陆后才能评论
海克斯康制造智能
热线电话(工作时间8:30-17:30)