Pointers... again... f-n noobs...
From: TheEngine (zmengine_at_shaw.ca)
Date: 03/26/04
- Next message: jeffc: "Re: n00b question"
- Previous message: jeffc: "Re: n00b question"
- Next in thread: B. v Ingen Schenau: "Re: Pointers... again... f-n noobs..."
- Reply: B. v Ingen Schenau: "Re: Pointers... again... f-n noobs..."
- Reply: Jarmo: "Re: Pointers... again... f-n noobs..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Mar 2004 17:32:06 GMT
I'm a bit lost trying to setup a multimedia timer using the Win32 API - I'm
pretty sure I'm not using the parameters correctly (timeSetEvent and
TestProc callback). Can anyone tell me how I can I do this?
UINT uTimerID = 0;
void CALLBACK TestProc(UINT, UINT, DWORD, DWORD, DWORD);
typedef struct Test {
int a;
int b;
} Test;
// Called before the Win32 message loop begins
uTimerID = timeSetEvent(100, 10, (LPTIMECALLBACK)TestProc, (DWORD)&tTimer,
TIME_PERIODIC);
// The Timer Proc
void CALLBACK TestProc(UINT wTimerID, UINT msg, DWORD dwUser, DWORD dw1,
DWORD dw2) {
Test *tTimerData = (Test *)dw1;
cout << tTimerData.a; // also tried with tTimerData '->'
didn't work
}
Can anyone tell me what's wrong here?
- Next message: jeffc: "Re: n00b question"
- Previous message: jeffc: "Re: n00b question"
- Next in thread: B. v Ingen Schenau: "Re: Pointers... again... f-n noobs..."
- Reply: B. v Ingen Schenau: "Re: Pointers... again... f-n noobs..."
- Reply: Jarmo: "Re: Pointers... again... f-n noobs..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|