Mappoint Europe 2006 + Powerbuilder 10.5

bruno
12-26-2006, 10:46 AM
Hi !

I get an error '35 - error calling external object function newmap at line ... ' while creating a new map in an ole-control.
- I created a mappoint control on the window (Insert / Control / Ole,
then I select the tabpage 'insert control', and finally selected
'Microsoft Mappoint Control 13.0')
- name of the olecontrol: ole_map
- open event of the window: ioo_map = ole_map.object.NewMap(2)
- instance var of the window : oleobject ioo_map
- 2 = geoMapEurope

Can anyone help me with the is problem ?
Kind Regards
Bruno

Wilfried
12-26-2006, 12:21 PM
Hi Bruno,

What happens if you call OpenMap (with a ptt file) instead of NewMap ? I recall me something similar using Delphi.

bruno
12-26-2006, 04:37 PM
Hi Wilfried !

I called the OpenMap function with an existing mappoint file (test.ptm) , the problem still remain with the same error code ...

oleobject loo_map
//loo_map = ole_map.object.Newmap(2)
loo_map = ole_map.object.OpenMap('c:\test.ptm')

I also perfomed a 'regsrv32 mappointcontrol.ocx', without any improvements.

Thanks
King regards
Bruno

Wilfried
12-27-2006, 04:56 AM
Hi Bruno,

I found this article: Using MS MapPoint in PowerBuilder - MapPoint Articles - MP2K Magazine (http://www.mp2kmag.com/a118--powerbuilder.integration.mappoint.html) but it seems you do exacly the same.

bruno
12-27-2006, 05:37 AM
Indeed, that's the article I used to start from. (There's a similar article in the Powerbuilder Developer Journal : Using MS MapPoint in PowerBuilder @ POWERBUILDER DEVELOPER'S JOURNAL (http://pbdj.sys-con.com/read/107019.htm))

I'll keep you informed in case I find a solution.

Thanks a lot !
Regards
Bruno

Wilfried
12-27-2006, 06:44 AM
Hi Bruno,

I dont know if this is interesting for you, but I found 2 other threads here with some code samples.

http://www.mapforums.com/geocoordinates-waypoint-4878.html?highlight=powerbuilder
http://www.mapforums.com/displaydatamap-question-again-4815.html?highlight=powerbuilder

 
Web mp2kmag.com
mapforums.com