D
dzar
I have an application that sends messages to other applications through
PostMessage(HWND_BROADCAST, MY_MESSAGE_ID, wparam_float, lparam_float);
in C (and this works... I can typecast and built byte arrays with
whatever I want in C and extract them at the other end just fine).
I am now needing to interface with C# and find I cannot do this in an
easy way (at least for me). When I try something like:
Single sValue= (Single) m.LParam;
in my OnNotifyMessage override, I get a float (Single) but of the large,
"integer" value it things LParam must be (but it's not, it's a 4-byte
floating point value).
Any thoughts on what to do to make C# "typecast" this to a Single, properly?
Thanks,
Dave
PostMessage(HWND_BROADCAST, MY_MESSAGE_ID, wparam_float, lparam_float);
in C (and this works... I can typecast and built byte arrays with
whatever I want in C and extract them at the other end just fine).
I am now needing to interface with C# and find I cannot do this in an
easy way (at least for me). When I try something like:
Single sValue= (Single) m.LParam;
in my OnNotifyMessage override, I get a float (Single) but of the large,
"integer" value it things LParam must be (but it's not, it's a 4-byte
floating point value).
Any thoughts on what to do to make C# "typecast" this to a Single, properly?
Thanks,
Dave