|
|
我学vc不久
hwnd = MCIWndCreate(NULL, NULL,WS_POPUP|WS_VISIBLE|
MCIWNDF_NOPLAYBAR|MCIWNDF_NOMENU,
"c:\\1.mid");
MCIWndPlay(hwnd);
在学到播放背景音乐时 出现编译问题
C:\Documents and Settings\liquid\桌面\gf\gfDlg.cpp(174) : error C2065: 'MCIWndCreate' : undeclared identifier
C:\Documents and Settings\liquid\桌面\gf\gfDlg.cpp(175) : error C2065: 'MCIWNDF_NOPLAYBAR' : undeclared identifier
C:\Documents and Settings\liquid\桌面\gf\gfDlg.cpp(175) : error C2065: 'MCIWNDF_NOMENU' : undeclared identifier
C:\Documents and Settings\liquid\桌面\gf\gfDlg.cpp(176) : error C2440: '=' : cannot convert from 'int' to 'struct HWND__ *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\liquid\桌面\gf\gfDlg.cpp(177) : error C2065: 'MCIWndPlay' : undeclared identifier
Generating Code...
Error executing cl.exe.
gf.exe - 5 error(s), 0 warning(s)
请问是不是还要加什么库文件啊?
还有个小问题 当程序需要大量循环工作时容易时程序出现假死状态请问如何做到vb的doevents效果? |
|