MapWinGIS-5.1.1-win32/x64-VS2017.
My Dev tool: VS2019 16.5 + WTL.
Though I the activeX works well in a C# program, I could not make it working in a C++ program.
The program always crashes when it tries to load the activeX at the function below.
// atlhost.h file
// IOleInPlaceSiteEx
STDMETHOD(OnInPlaceActivateEx)(
_In_opt_ BOOL* /*pfNoRedraw*/,
DWORD dwFlags) {
...
if (m_spInPlaceObjectWindowless)
m_spInPlaceObjectWindowless->SetObjectRects(&m_rcPos, &m_rcPos); <-- crashes at this point.
return S_OK;
}
I want someone to confirm that if the activeX supports integration with ATL/WTL C++ programs.
Reactions are currently unavailable
MapWinGIS-5.1.1-win32/x64-VS2017.
My Dev tool: VS2019 16.5 + WTL.
Though I the activeX works well in a C# program, I could not make it working in a C++ program.
The program always crashes when it tries to load the activeX at the function below.
// atlhost.h file // IOleInPlaceSiteEx STDMETHOD(OnInPlaceActivateEx)( _In_opt_ BOOL* /*pfNoRedraw*/, DWORD dwFlags) { ... if (m_spInPlaceObjectWindowless) m_spInPlaceObjectWindowless->SetObjectRects(&m_rcPos, &m_rcPos); <-- crashes at this point. return S_OK; }I want someone to confirm that if the activeX supports integration with ATL/WTL C++ programs.