How to call CreateEvent() in Windows CE 3.0 ?
- From: "brianjorgage@xxxxxxxxx" <brianjorgage@xxxxxxxxx>
- Date: 24 Oct 2005 19:26:54 -0700
I am making a call to CreateEvent():
hEvent[0] = CreateEvent(NULL, TRUE, FALSE, NULL);
Simple enough. When this handle is passed to WaitForMultipleObjects()
it returns -1. GetLastError indicates an invalid handle.
So I backtrack and call GetLastError() after the call to CreateEvent().
When I pass this into FormatMessage it says: "This function is only
valid in Win32 mode".
What does this mean ? I am using embedded Visual C++ 4.0 IDE. Target
CPU is set to "Win32(WCE ARMV4) Release".
MSDN for CreateEvent() under Windows CE 3.0 says that I need to link to
Coredll.lib and nk.lib for CreateEvent(). I've added Coredll.lib to
the link tab of my project settings but I can't find nk.lib. MSDN
indicates that nk.lib is part of the kernel. So that means I don't
need to link to it ?
But I am still getting an invalid handle according to
WaitForMultipleObjects() and GetLastError() called after CreateEvent()
still indicates an invalid function.
Can anyone help me on this ?
Brian Jorgage
.
- Follow-Ups:
- Re: How to call CreateEvent() in Windows CE 3.0 ?
- From: Ulrich Eckhardt
- Re: How to call CreateEvent() in Windows CE 3.0 ?
- Prev by Date: Re: problem with suspend the system
- Next by Date: Re: Parallel Port as I/O
- Previous by thread: Re: problem with suspend the system
- Next by thread: Re: How to call CreateEvent() in Windows CE 3.0 ?
- Index(es):
Relevant Pages
|