PDA

View Full Version : My first VB 6 App with Mappoint 2004



bgower
09-14-2005, 03:28 PM
I have included a reference to the Mappoint library in my project. I have
the following code in a button click and it errors saying that the Mappoint
activeX control cannot create the object. I am not using the ActiveX
control. What am I doing wrong?

Dim MPApp As New MPApp.Application
MPApp.Visible = True
MPApp.Quit
Set MPApp = Nothing

Wilfried
09-15-2005, 04:58 AM
Hi,

I'm not sure if Mappoint needs a working message pump. There is non in your code since you Quit in same code block. I'm also not sure if you can set Visible to True without opening a map first. So you can try a few things. But what is the offending code line ? En waht is the exact error text ? Maybe we can find out more then.