Except that notifyDetailsP isn't a pointer in this case. It is the
value itself. Do the following:

UInt16 device = (UInt16)(((SysNotifyParamType*)cmdPBP)->notifyDetailsP);

If you have any question about the use of notifyDetailsP, display the
value of notifyDetailsP from the notification handler and see if it is
a pointer, or the value itself. I found it to be the actual value, not
a pointer to the value.

On Thu, Jul 31, 2008 at 4:22 PM, Lionscribe <[EMAIL PROTECTED]> wrote:
> Christopher Stamper wrote:
>>     case sysAppLaunchCmdNotify:
>>          If (((SysNotifyParamType*)cmdPBP)->n
>  == &DeviceType)
>>               //Do action for that device 1
> Wrong, based on your information it should probably be the other way
> case sysAppLaunchCmdNotify:
>    DeviceType = *((UInt16*)(
> ((SysNotifyParamType*)cmdPBP)->notifyDetailsP));
>    switch (DeviceType)
>    {
>       case 99:
>           ............
>
>
> Lionscribe
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/
>



-- 
[Jeff Loucks, Gig Harbor, WA, USA]

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to