Skip to content

MapWinGIS6 ActiveX Control and Modern Rendering Architecture - #12

Merged
pmeems merged 4 commits into
developmentfrom
phase-2-add-activex-project-and-establish-com-activation
Oct 25, 2026
Merged

pmeems merged 4 commits into
developmentfrom
phase-2-add-activex-project-and-establish-com-activation

Conversation

@pmeems

@pmeems pmeems commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Motivation: establish the ActiveX COM boundary before implementing host lifecycle and rendering.

Adds a minimal ATL in-process control with new COM identifiers, a CoreInitialized automation property backed by MapWinGIS.Core, and per-user registration. ATL is statically linked; the OCX keeps Core as its runtime dependency. Rendering and painting remain deferred to later phases.

Validation: Debug x64 solution build, all 115 runnable GoogleTests, and the per-user COM activation check. One network-dependent test was skipped.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The COM interface map omits IPersist, and the activation check can destroy an existing per-user registration.

2 open issues
What changed in this PR

Establishes the initial ActiveX COM boundary around MapWinGIS.Core, while deferring host lifecycle, rendering, and painting.

Changes:

  • Adds a statically linked ATL control with new COM identifiers and a CoreInitialized automation property.
  • Implements COM server exports and per-user registration.
  • Integrates the control into the solution and adds activation checks and build documentation.
File Description
tests/​MapWinGIS.Core.Tests/​Verify-ActiveXActivation.ps1 Checks registered COM activation and automation access.
tests/​MapWinGIS.Core.Tests/​MapWinGIS.Core.Tests.vcxproj Adds activation tests and the ActiveX build dependency.
tests/​MapWinGIS.Core.Tests/​ActiveXActivationTests.cpp Tests class-factory activation and core-state access.
src/​MapWinGIS.ActiveX/​resource.h Defines the registration resource identifier.
src/​MapWinGIS.ActiveX/​MapWinGISControl.rgs Defines CLSID, ProgID, and server registration.
src/​MapWinGIS.ActiveX/​MapWinGISControl.h Declares the ATL control and COM interface map.
src/​MapWinGIS.ActiveX/​MapWinGISControl.cpp Implements the core-state automation property.
src/​MapWinGIS.ActiveX/​MapWinGIS.ActiveX.vcxproj Configures OCX compilation, static ATL, and Core linkage.
src/​MapWinGIS.ActiveX/​MapWinGIS.ActiveX.rc Embeds registration and type-library resources.
src/​MapWinGIS.ActiveX/​MapWinGIS.ActiveX.idl Defines the automation interface and COM identifiers.
src/​MapWinGIS.ActiveX/​MapWinGIS.ActiveX.def Exports COM server entry points.
src/​MapWinGIS.ActiveX/​ActiveXModule.h Declares the ATL DLL module.
src/​MapWinGIS.ActiveX/​ActiveXModule.cpp Implements activation and registration entry points.
MapWinGIS6.slnx Includes the ActiveX project.
docs/​BUILDING.md Documents ATL requirements and activation verification.

Review effort: Balanced

pmeems and others added 2 commits October 25, 2026 21:17
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@pmeems pmeems left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review focused on the ActiveX/COM boundary and activation behavior. I found one additional issue to address before this control is hosted in an OLE container.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pmeems
pmeems merged commit efe525f into development Oct 25, 2026
1 check passed
@pmeems
pmeems deleted the phase-2-add-activex-project-and-establish-com-activation branch October 25, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants