Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MMTimer & timeSetEvent function ...

32 views
Skip to first unread message

Stefano Magni

unread,
Jul 29, 2011, 4:54:56 AM7/29/11
to
Hello everyone,
I created a simple program in VS2008 => Visual C + + => Smart Device
=> MFC Smart Device Application.
I have included in the project MMTimer.lib.
In my code I wrote:

timeSetEvent(1000, 0, TimerProcedure, (DWORD)(this), TIME_ONESHOT);
..
..
..

void CALLBACK CTESTDoc::TimerProcedure(UINT uID, UINT uMsg, DWORD
dwUser, DWORD dw1, DWORD dw2)
{
}

When I run the application crashes and the timer does not work. Why?
In the EVC + + to work properly.
thanks in advance.

0 new messages