Your code is much neater than mine!
Richard Anderson <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Nice to see that you do it similar to me heres my code > > > typedef enum { /* User defined > events */ > userReadPort = firstUserEvent, > userValidMsg > } user_eventsEnum; > > > EventType user_event; /* Post our own event to the > queue */ > user_event.eType = (eventsEnum)userReadPort; > EvtAddEventToQueue (&user_event); > > I think this method is fine unless you use other librarys, I dont so I think > my ID's work ok. It all seems wrong to me though, if you have to cast stuff > like this then I think its wrong. > > > -----Original Message----- > > From: Chris Percival [SMTP:[EMAIL PROTECTED] > > Sent: 26 July 2000 15:10 > > To: Palm Developer Forum > > Subject: Re: Outputting debug strings to Log window > > > > Yeah, it is difficult, you just have to trawl through everything > > available: > > docs, source files, example files, the net, forums etc. > > > > This is how i create/add my own events, the 0x500 is a value picked out of > > the air, you need to make sure the events you are creating don't have the > > same value as other custom events (eg used in somone elses library). Feel > > free to correct me on a any of this anyone! > > > > typedef enum tagMyEvents > > { > > Event1= firstUserEvent + 0x500, > > Event2, > > Event3 > > } MyEvents; > > > > > > // declare EventType variable > > EventType event; > > > > MemSet(&event, sizeof(EventType), 0); > > *(IntPtr)&event.eType = Event1; > > event.data.generic.data1 = some_data; > > EvtAddEventToQueue(&event); > > > > > > Richard Anderson <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > > Ive sussed it out so dont worry. > > > > > > I used DbgMessage. > > > > > > Does anyone else think that it is very difficult to find stuff in the > > Palm > > > Docs - I sussed this out from the header files. There a millions of > > docs, > > > yet everytime I want to find something other that obvoius stuff, I cant. > > I > > > still havent found out how you should create your own events, Ive done > > it > > > but Im sure its not how its meant to be done. > > > > > > > > > > -----Original Message----- > > > > From: Richard Anderson [SMTP:[EMAIL PROTECTED] > > > > Sent: 26 July 2000 13:53 > > > > To: Palm Developer Forum > > > > Subject: Outputting debug strings to Log window > > > > > > > > I read somewhere that you can output debug strings using a "debug > > printf" > > > > to > > > > the log window, yet I cannot find any documentation to show me how to > > do > > > > this. Anyone know how to do it. > > > > > > > > Thanks > > > > > > > > Rik Anderson > > > > > > > > -- > > > > For information on using the Palm Developer Forums, or to unsubscribe, > > > > please see http://www.palmos.com/dev/tech/support/forums/ > > > > > > > > > > > > > > -- > > For information on using the Palm Developer Forums, or to unsubscribe, > > please see http://www.palmos.com/dev/tech/support/forums/ > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
