B
BruceR
Hello,
I am currently trying to respond to custom messages sent via
SendMessage/PostMessage from my unmanaged C++ dll in my C#
application.
I am responding to these types of messages by overriding WndProc
function in my C# form. This works fine until I attempt to populate an
LPARAM with a string so that my unmanaged code can use that string.
That Lparam property of the passed in message object is of type
IntPtr. How can I cast/convert that to a string? And, moreover, how do
I get that string down to my unmanaged code in the context of that
LParam? I would ideally not want to change my unmanaged code to handle
this.
Does someone out there know how to accomplish this? Code samples are
appreciated.
- Bruce
I am currently trying to respond to custom messages sent via
SendMessage/PostMessage from my unmanaged C++ dll in my C#
application.
I am responding to these types of messages by overriding WndProc
function in my C# form. This works fine until I attempt to populate an
LPARAM with a string so that my unmanaged code can use that string.
That Lparam property of the passed in message object is of type
IntPtr. How can I cast/convert that to a string? And, moreover, how do
I get that string down to my unmanaged code in the context of that
LParam? I would ideally not want to change my unmanaged code to handle
this.
Does someone out there know how to accomplish this? Code samples are
appreciated.
- Bruce