Active X Problems

John_Osman

New Member
I have installed MapPoint on my windows PC, now when I am in a window I go to add the Active X component, it finds the MapPoint 11.0 in the list lets me selct it, then when I click on my window to insert it, it gives the following error:-

CtrlFrame,MapPointControl...........Unable to create control.

error occured whilst accessing component property/method: Addcontrol.

Any body got any ideas ?
 

ccotter3

New Member
I was able to duplicate your problem with my 9.1D environment. In the past there have been occassions when I have had to create an ActiveX control with VB to "wrap" COM/ActiveX that did not behave properly from Progress. The other option is to use the COM object directly.

The following code worked and returned a handle but that is as far as I took it.
DEF VAR ch AS COM-HANDLE NO-UNDO.
CREATE "MapPoint.MapPointUtilities" ch.
MESSAGE ch VIEW-AS ALERT-BOX.

I would suggest taking a look at the mappoint ocx with the Progress COM Object viewer and try to access it directly through code.
 
Top