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
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
i've try it and success....