T
Tim Johnson
I just learned that using a C# delegate as a function pointer to allow
callbacks from unmanaged C++ code isn't supported in .Net Compact Framework.
Big bummer.
So as I look into using MessageWindow instead (in which unmanaged code posts
a Win32 message which is received in C#), I see that you get the usual
lParam and wParam values inside a little C# msg structure. My question is,
how does marshalling get involved if at all? Specifically, if one of my
legacy functions posts a message whose lParam is a pointer to an array, or a
structure of ints, bools, and LPTSTRs, how do I safely get at all those
elements? I'm assuming marshalling doesn't play here so I'm not sure what
I'll be getting in C#, or what work I need to do in my code.
callbacks from unmanaged C++ code isn't supported in .Net Compact Framework.
Big bummer.
So as I look into using MessageWindow instead (in which unmanaged code posts
a Win32 message which is received in C#), I see that you get the usual
lParam and wParam values inside a little C# msg structure. My question is,
how does marshalling get involved if at all? Specifically, if one of my
legacy functions posts a message whose lParam is a pointer to an array, or a
structure of ints, bools, and LPTSTRs, how do I safely get at all those
elements? I'm assuming marshalling doesn't play here so I'm not sure what
I'll be getting in C#, or what work I need to do in my code.