i'm trying build a timer inside of class:
Code:
class subimages
{
    public: int ActualSubimage;
    public: int MilliSecondsTimer;
    public: int TotalSubimages;
    public: ImageInfo *SubImages;
    public: bool TransparentImages;
    private: bool blnAnimation;    
    private: MMRESULT timerID;


    private: void CALLBACK TimerFunction(UINT wTimerID, UINT msg,
    DWORD dwUser, DWORD dw1, DWORD dw2)
             {
    
            if (ActualSubimage == TotalSubimages)
                ActualSubimage = 0;
            else
                ActualSubimage = ActualSubimage + 1;
            
    ;
    }

    public: void AnimationStart()
    {
        blnAnimation = true;
        timerID =timeSetEvent(MilliSecondsTimer , 0, TimerFunction, (DWORD)this, TIME_PERIODIC);;    
    }

    public: void AnimationStop()
    {
        blnAnimation = false;
        timeKillEvent(timerID);
    }
.......................
but i get these error:
"--------------------Configuration: Sprite2 - Win32 Debug--------------------
Compiling...
Test Sprite2.cpp
c:\users\joaquim\documents\visual c 98\sprite2\sprite2.h(55) : error C2664: 'timeSetEvent' : cannot convert parameter 3 from 'void (unsigned int,unsigned int,unsigned long,unsigned long,unsigned long)' to 'void (__stdcall *)(unsigned int,unsigned in
t,unsigned long,unsigned long,unsigned long)'
None of the functions with this name in scope match the target type
Error executing cl.exe.

Sprite2.exe - 1 error(s), 0 warning(s)"
(i'm using VC++6)
i don't understand why the error(the documents that i read are limited)
can anyone advice me?