急!!课程设计mp3播放器 改正一个小错误

来源:百度知道 编辑:UC知道 时间:2024/06/23 02:43:32
这个程序是用MFC编的以下是其中一个cpp的头文件
#include "stdafx.h"
#include "afx.h"
#include "mp3Player6.h"
#include "mp3Player6Doc.h"
#include "mp3Player6View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
编译后出现错误
Compiling...
mp3Player6View.cpp
h:\mp3player6\mp3player6view.h(18) : error C2146: syntax error : missing ';' before identifier 'm_MciCtrl'
h:\mp3player6\mp3player6view.h(18) : error C2501: 'CMciControl' : missing storage-class or type specifiers
h:\mp3player6\mp3player6view.h(18) : error C2501: 'm_MciCtrl' : missing storage-class or type specifiers
h:\mp3player6\mp3player6view.cpp(140) : error C2065: 'm_MciCtrl' : undeclared identifier
h:\mp3player6\mp3player6view.cpp(140) : error C2228: left of '.Open' must have class/s

用百度hi我,代码我给你改

你应该先从mp3player6view.h文件中的'm_MciCtrl'看起了

stdafx.h, 这个文件里面有个宏包含的需要 调整一下,具体忘了怎么改了。
你在网络上搜索一下都可以的啦,好像我主页上也有记录,