异常error C2447: missing function header (old-style formal list?)

错误error C2447: missing function header (old-style formal list?)
本帖最后由 VisualEleven 于 2014-03-11 11:11:43 编辑
#include "stdafx.h"
#include <windows.h>
#include <windowsx.h>
#include "resource.h"
#include "MainDlg.h"
BOOL WINAPI Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    switch(uMsg)
    {
        HANDLE_MSG(hWnd, WM_INITDIALOG, Main_OnInitDialog);
        HANDLE_MSG(hWnd, WM_COMMAND, Main_OnCommand);
HANDLE_MSG(hWnd,WM_CLOSE, Main_OnClose);
    }

    return FALSE;
}
void CALLBACK MyTimerProc(HWND hwnd,UINT message,UINT iTimerID,DWORD dwTime);
{
MessageBox(hwnd,TEXT("我被掉了"),TEXT(""),MB_OK);
}
BOOL Main_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)
{
    SetTimer(hwnd,0,1000,MyTimerProc);
return TRUE;
}

void Main_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
{
    switch(id)
    {
        case IDC_OK:
MessageBox(hwnd,TEXT(""),TEXT("问好"),MB_OK);
        break;
        default:
break;
    }
}

void Main_OnClose(HWND hwnd)
{
    EndDialog(hwnd, 0);
}

出现了这个错误error C2447: missing function header (old-style formal list?)
如何改?
这是一个Window界面程序
{
MessageBox(hwnd,TEXT("我被掉了"),TEXT(""),MB_OK);
}
错误箭头指向大括号前面
------解决方案--------------------
void CALLBACK MyTimerProc(HWND hwnd,UINT message,UINT iTimerID,DWORD dwTime);
多了';'