02-27-2003, 08:27 AM
For some reason, I keep getting this error when my IdleTimer is inside my Application class:
function call '[Aspire].NewEventLoopTimerUPP(void)' does not match NewEventLoopTimerUPP(pascal void(*)(OpaqueEventLoopTimerRef *, void*))'
Now basically it's telling me that the IdleTimer I'm supplying to NewEventLoopTimerUPP is wrong... but I see nothing wrong with it. It is declared in my class Aspire(the application class) as:
class Aspire
{
public:
.....
pascal void GameIdleTimer(EventLoopTimerRef inTimer, void* userData);
..........
};
It is used in the function Aspire::Setup like this:
EventLoopTimerUPP sTimerUPP = NewEventLoopTimerUPP (GameIdleTimer);
ANy idea what is going on?
function call '[Aspire].NewEventLoopTimerUPP(void)' does not match NewEventLoopTimerUPP(pascal void(*)(OpaqueEventLoopTimerRef *, void*))'
Now basically it's telling me that the IdleTimer I'm supplying to NewEventLoopTimerUPP is wrong... but I see nothing wrong with it. It is declared in my class Aspire(the application class) as:
class Aspire
{
public:
.....
pascal void GameIdleTimer(EventLoopTimerRef inTimer, void* userData);
..........
};
It is used in the function Aspire::Setup like this:
EventLoopTimerUPP sTimerUPP = NewEventLoopTimerUPP (GameIdleTimer);
ANy idea what is going on?