Gary,
You can pass this to the IntPtr to the static PtrToStringAnsi or
PtrToStringUni methods on the Marshal class depending on what version of
SendMessage was called (SendMessageA, or SendMessageW).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Gary" <Ga**@discussions.microsoft.comwrote in message
news:87**********************************@microsof t.com...
1. I am using SendMessage (HWND_BROADCAST, WM_FONTCHANGE, 0,
(LPARAM)pFileName); in C++ side
2. In WndProc, I wanted to get the fileName from m.lparam, which is a
IntPtr. How can I convert it to a string in C#
Thanks.