Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I downloaded the example from http://msdn.microsoft.com/en-us/library/ms996387.aspx[^] and I runned it. But when I press a button like "Guide" I get the following error:

TypeLoadException was unhandled
Cannot marshal field 'mouse' of type 'RAWINPUT': The type definition of this field has layout information but has an invalid managed/unmanaged type combination or is unmarshalable.

at
RAWINPUT raw = (RAWINPUT) Marshal.PtrToStructure(buffer, typeof(RAWINPUT));

so how can I solve this problem?

[Edit: MS links fixed]
Posted
Updated 10-Oct-10 2:55am
v2
Comments
DaveAuld 10-Oct-10 8:56am    
When you posted your link, the x had been dropped of the end of aspx, now fixed :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900