On Fri, 23 Apr 1999, Siupo wrote:
> I want to poll the serial port when there is nothing to do, I have set a
> nilEvent handle in the MainFormHandleEvent, however, I check out that the
> nilEvent never go in !! what happen !!?
>
> E r i c
try posting your code to let us see what you are trying to do?
you should be doing something like:
---
do {
EvtGetEvent(&event, 0);
if (!SysHandleEvent(&event))
if (!MenuHandleEvent(0, &event, &error))
FrmDispatchEvent(&event);
if (event.eType == nilEvent) {
// do your stuff
}
} while (event.eType != appStopEvent);
---
maybe you are trying to compare "event" to "nilEvent"? you need
to explicitly reference the field "eType".
cheers.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11