B
beluga
Hi,
I am writing a .NET app that uses DLL libraries in native C++. Could anyone
tell me, is it possible for a windows created in .NET app using C#, then
pass the HWND handle of this window to a library that is written in native
MFC and from within this native library, it will do drawing on top of this
window? Somehow, it will crash the app when the library tries to draw that
..NET window surface. It says:
AccessViolationException: Attempted to read or write protected memory. This
is often an indication that other memory is corrupt.
I have even tried creating a window natively and then pass it to this
library and it also crashed. I'm curious, is a window created by .NET is
essentially the same as the one created by Win32 or MFC?
John
I am writing a .NET app that uses DLL libraries in native C++. Could anyone
tell me, is it possible for a windows created in .NET app using C#, then
pass the HWND handle of this window to a library that is written in native
MFC and from within this native library, it will do drawing on top of this
window? Somehow, it will crash the app when the library tries to draw that
..NET window surface. It says:
AccessViolationException: Attempted to read or write protected memory. This
is often an indication that other memory is corrupt.
I have even tried creating a window natively and then pass it to this
library and it also crashed. I'm curious, is a window created by .NET is
essentially the same as the one created by Win32 or MFC?
John