An unmanaged C++ dll has an exported function, that takes an int type as window hanlde
void SetWindowHandle(int nHandle);
else where in the unmanaged dll code the int
is casted to HWND
and is used properly.
And from the windows forms application, I set the handle as follows
_hHandle = this->Handle.ToInt32();
m_pViewer->SetWindowHandle(_hHandle);
Where _hHandle
is a private member inside the class. Am I getting the handle correctly ?. Seems like it is, but apparently the application doesn't give the desire output. I suspect the problem is with the handle.
PS: I have access to the unmanaged dll so I can make modification in there for any suggested changes.