Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Palm > Re: User Define...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 647 of 719
Post > Topic >>

Re: User Defined Events

by "Baxter" <lbax02.spamguard@[EMAIL PROTECTED] > Aug 6, 2005 at 03:00 PM

Something like:

in .h file:
----
#define MY_EVENT       (enum eventsEnum)(((unsigned int)firstUserEvent)+1)

in .c or .cpp file, to add message:
---------------
   EventType event;
   event.eType = MY_EVENT ;
   event.data.generic.datum[0] = myParam;
   EvtAddEventToQueue( &event );

in event handler (different .c/.cpp file):
---------------
 switch( pEvent->eType ){
    ...
    case MY_EVENT :
        handled = HandleMyEvent(pEvent->data.generic.datum[0]);
        break;

-- 
---------------------------------------------------------------------
DataGet & PocketLog  www.dataget.com
Data Collectors             www.baxcode.com
--------------------------------------------------------------------



"ArthurP" <arthurpaliden@[EMAIL PROTECTED]
> wrote in message
news:1123347885.417950.325270@[EMAIL PROTECTED]
> Is it possible to create and place a user defined event in the event
> queue.  If so could someone please point me in the right direction.  I
> have checked all the docs that I can find but find no difinitive
> answer.
>
> Arthur
>
 




 2 Posts in Topic:
User Defined Events
"ArthurP" <a  2005-08-06 10:04:45 
Re: User Defined Events
"Baxter" <lb  2005-08-06 15:00:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 23:39:24 CDT 2008.