Integrated Mapping MapBasic applications fail with the error: "ActiveX can't create object" on 64-bit versions

Products affected: MapInfo Pro™


When using a MapBasic Integrated Mapping application in the 32-bit versions of MapInfo Pro, users can execute commands using:

Dim MI as object 
Set MI = CreateObject("Mapinfo.Application") 
MI.DO "Open Table ...................." 

However, if users try this in the 64-bit versions of MapInfo Pro, the following error is encountered: 

"ActiveX can't create object" on the line: Set MI = CreateObject("Mapinfo.Application") 


The classid for 64-bit versions of MapInfo Pro COM has changed.


UPDATED: December 4, 2019
The call to CreateObject should use "MapInfo.Application.x64", like so:

Set mapinfo = CreateObject("MapInfo.Application.x64")

The application would need to be modified with the updated classid mentioned above.