'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR'

Statement

void ProcMsg::getMessage(Message *m, Boolean Inserted)
{
PDEV_BROADCAST_HDR lpdb = (PDEV_BROADCAST_HDR)m->LParam;
}


above statement was came out with error 'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR'

Question:

May i know how to cast the structure PDEV_BROADCAST_HDR to System::IntPtr.




Answer this question

'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR'