在stdafx.h添加
#include <MMSystem.h>
// CG: The following line was added by the Windows Multimedia component.
#pragma comment(lib, "winmm.lib")
// CG: The following line was added by the Windows Multimedia component.
#pragma comment(lib, "winmm.lib")//打开
mciSendString("Set cdaudio door open wait",NULL,0,NULL);
//关闭
mciSendString("Set cdaudio door closed wait",NULL,0,NULL);
#include <MMSystem.h>
// CG: The following line was added by the Windows Multimedia component.
#pragma comment(lib, "winmm.lib")
// CG: The following line was added by the Windows Multimedia component.
#pragma comment(lib, "winmm.lib")//打开
mciSendString("Set cdaudio door open wait",NULL,0,NULL);
//关闭
mciSendString("Set cdaudio door closed wait",NULL,0,NULL);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货