MapWindow 4 - ActiveX Control Programming : MapWindow Discussion Forum
Hi VFP 9.0 (FoxPro) Users Today I found the MapWinGis OCX and the very old error came along (german language) "Bibliothek nicht registriert".( Library Not Registered ) With the Help of Christof Wollenhaupt from Hamburg, one of the greatest FoxPro Guru´s wor
MapWinGIS and FoxPro
Posted by:
PHerzog ()
Date: November 18, 2009 07:43AM
Hi VFP 9.0 (FoxPro) Users
Today I found the MapWinGis OCX and the very old error came along (german language) "Bibliothek nicht registriert".( Library Not Registered )
With the Help of Christof Wollenhaupt from Hamburg, one of the greatest FoxPro Guru´s worldwide, we solved the problem.
To add a shapefile you have to change the commands a little bit
sf=createobjectex("MapWinGIS.Shapefile","","")
sf.Open(fullpath("world_adm0.shp") ,.null.)
(object).MAP.AddLayer(sf,.t.)
As you can see.. Use createobjectex() instead of createobject() or newobject() and let the 2nd and 3rd parameter empty.
Then add a .NULL. as a 2nd parameter to the open method.
Now you can use the AddLayer-method
BTW: _VFP.AutoYield or sys(2333,0) is *not* necessary
Greetings from germany and thanks to christof
Peter Herzog
Germany
Today I found the MapWinGis OCX and the very old error came along (german language) "Bibliothek nicht registriert".( Library Not Registered )
With the Help of Christof Wollenhaupt from Hamburg, one of the greatest FoxPro Guru´s worldwide, we solved the problem.
To add a shapefile you have to change the commands a little bit
sf=createobjectex("MapWinGIS.Shapefile","","")
sf.Open(fullpath("world_adm0.shp") ,.null.)
(object).MAP.AddLayer(sf,.t.)
As you can see.. Use createobjectex() instead of createobject() or newobject() and let the 2nd and 3rd parameter empty.
Then add a .NULL. as a 2nd parameter to the open method.
Now you can use the AddLayer-method
BTW: _VFP.AutoYield or sys(2333,0) is *not* necessary
Greetings from germany and thanks to christof
Peter Herzog
Germany
Re: MapWinGIS and FoxPro
Posted by:
ekobudi ()
Date: July 06, 2011 02:05PM
thank a lot
i've try it and success....
i've try it and success....
Sorry, only registered users may post in this forum.


