[email protected]
密码:123456
源文件在里面.

解决方案 »

  1.   

    不好意思,主要VC这玩意不太懂,我只有打包放里面了BEGIN_MESSAGE_MAP(CID3App, CWinApp)
    ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
    END_MESSAGE_MAP()
    错误信息:Compiling...
    ID3.cpp
    d:\microsoft visual studio\vc98\mfc\include\afxv_w32.h(119) : warning C4005: '_WIN32_WINDOWS' : macro redefinition
            d:\id3\id3\targetver.h(20) : see previous definition of '_WIN32_WINDOWS'
    NOTE: WINVER has been defined as 0x0500 or greater which enables
    Windows NT 5.0 and Windows 98 features. When these headers were released,
    Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
    For this release when WINVER is defined as 0x0500 or greater, you can only
    build beta or test applications.  To build a retail application,
    set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
    to see if retail Windows NT 5.0 or Windows 98 headers are available.
    See the SDK release notes for more information.
    d:\id3\id3\id3.cpp(16) : error C2059: syntax error : '&&'
    d:\id3\id3\id3.cpp(16) : error C2143: syntax error : missing ';' before '}'
    d:\id3\id3\id3.cpp(16) : error C2143: syntax error : missing ';' before '}'
    d:\id3\id3\id3.cpp(17) : error C2143: syntax error : missing ';' before '{'
    d:\id3\id3\id3.cpp(17) : error C2447: missing function header (old-style formal list?)
    d:\id3\id3\id3.cpp(17) : error C2143: syntax error : missing ';' before '}'
    执行 cl.exe 时出错.ID3.obj - 1 error(s), 0 warning(s)
      

  2.   


    // ID3.cpp : 定义应用程序的类行为。
    //#include "stdafx.h"
    #include "ID3.h"
    #include "ID3Dlg.h"#ifdef _DEBUG
    #define new DEBUG_NEW
    #endif
    // CID3AppBEGIN_MESSAGE_MAP(CID3App, CWinApp)
    ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
    END_MESSAGE_MAP()
    // CID3App 构造CID3App::CID3App()
    {
    // TODO: 在此处添加构造代码,
    // 将所有重要的初始化放置在 InitInstance 中
    }
    // 唯一的一个 CID3App 对象CID3App theApp;
    // CID3App 初始化BOOL CID3App::InitInstance()
    {
    // 如果一个运行在 Windows XP 上的应用程序清单指定要
    // 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
    //则需要 InitCommonControlsEx()。否则,将无法创建窗口。
    INITCOMMONCONTROLSEX InitCtrls;
    InitCtrls.dwSize = sizeof(InitCtrls);
    // 将它设置为包括所有要在应用程序中使用的
    // 公共控件类。
    InitCtrls.dwICC = ICC_WIN95_CLASSES;
    InitCommonControlsEx(&InitCtrls); CWinApp::InitInstance(); AfxEnableControlContainer(); // 标准初始化
    // 如果未使用这些功能并希望减小
    // 最终可执行文件的大小,则应移除下列
    // 不需要的特定初始化例程
    // 更改用于存储设置的注册表项
    // TODO: 应适当修改该字符串,
    // 例如修改为公司或组织名
    SetRegistryKey(_T("应用程序向导生成的本地应用程序")); CID3Dlg dlg;
    m_pMainWnd = &dlg;
    INT_PTR nResponse = dlg.DoModal();
    if (nResponse == IDOK)
    {
    // TODO: 在此放置处理何时用
    //  “确定”来关闭对话框的代码
    }
    else if (nResponse == IDCANCEL)
    {
    // TODO: 在此放置处理何时用
    //  “取消”来关闭对话框的代码
    } // 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
    //  而不是启动应用程序的消息泵。
    return FALSE;
    }