ActiveX OCX Help

Started by Matthew Needham, July 20, 2011, 06:19:59 PM

Previous topic - Next topic

Matthew Needham

I'm trying to integrate MapWinGIS.ocx into FireFly/PowerBasic, but I'm running into a problem with a seemingly missing interface.

MapWinGIS.ocx is the ActiveX component of the MapWindow GIS open source project. It can be found at:
http://mapwingis.codeplex.com/releases/view/68791

I can bring this .ocx file into the TypeLib Browser. I then copy the code and events into an .inc file in FireFly. The main object that I want to use is the "Map". There is no interface for this object in the code. There is a PROGID and also a CLSID:

$PROGID_Map1 = "MAPWINGIS.Map.1"

$CLSID_Map = Guid$("{54F4C2F7-ED40-43B7-9D6F-E45965DF7F95}")

But there is no IID.

I don't have a lot of experience using ActiveX objects. Does the lack of the IID mean the control is not compatible with FireFly, or is there something I'm missing?

Thanks.

José Roca

It has, but it is a dispatch only interface. You have to check the "Include dispatch only interfaces" option in the browser.

Matthew Needham

Got it. Thank you! I can now see the interface.