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.

'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR'
D. Choquette
Information provided is not enough to answer this question.
Could you tells us if this application is a mixed mode (being compiled with /Clr).
How have you defined Message class\struct.
In Message have you deined LParam as IntPtr or LPARAM
If you are using mix mode application i.e (compiling with /Clr) and LParam is defined as IntPtr you should use
System::Runtime::InteropServices::Marshal::PtrToStructure
Hope this helps
paolod
http://msdn2.microsoft.com/en-us/library/4ca6d5z7(VS.80).aspx
Hope this gives you some idea
FLDaveM
yes I compiling with /Clr.
How to use System::Runtime::InteropServices::Marshal::PtrToStructure