FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Troubles in using the MapWinGIS activeX in C++ program. · Issue #190 · MapWindow/MapWinGIS · GitHub

Troubles in using the MapWinGIS activeX in C++ program. #190

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL