PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Matthew Needham on July 20, 2011, 06:19:59 PM

Title: ActiveX OCX Help
Post by: Matthew Needham on July 20, 2011, 06:19:59 PM
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.
Title: Re: ActiveX OCX Help
Post by: José Roca on July 21, 2011, 07:44:28 AM
It has, but it is a dispatch only interface. You have to check the "Include dispatch only interfaces" option in the browser.
Title: Re: ActiveX OCX Help
Post by: Matthew Needham on July 21, 2011, 12:21:17 PM
Got it. Thank you! I can now see the interface.