Q
quat
Hello all,
I have some unmanaged code that requires an HWND to a managed control (e.g.,
a picture box). I try:
mRenderWnd->Handle;
Of course, this returns an IntPtr. If I try to case, I get the error:
Cannot convert a managed type to an unmanaged type
What do I need to do? The whole point of my using managed c++ was to use
the .NET framework for GUI coding and use my existing unmanaged code for the
backend. Some of my functions require HWNDs.
I have some unmanaged code that requires an HWND to a managed control (e.g.,
a picture box). I try:
mRenderWnd->Handle;
Of course, this returns an IntPtr. If I try to case, I get the error:
Cannot convert a managed type to an unmanaged type
What do I need to do? The whole point of my using managed c++ was to use
the .NET framework for GUI coding and use my existing unmanaged code for the
backend. Some of my functions require HWNDs.