MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




My first VB 6 App with Mappoint 2004

This is a discussion on My first VB 6 App with Mappoint 2004 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have included a reference to the Mappoint library in my project. I have the following code in a button ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-14-2005
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 3
My first VB 6 App with Mappoint 2004

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-15-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
app, mappoint 2004


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
MapPoint 2004 anssrinivas MapPoint 2006/2009 Discussion 1 05-12-2006 08:13 AM
MapPoint 2004 API indyyu MapPoint 2006/2009 Discussion 1 05-02-2006 08:19 AM
Is this even possible in mappoint 2004? onagrote@hotmail.com MapPoint 2006/2009 Discussion 1 04-10-2006 12:29 PM
Add In for Mappoint 2004 fattystud69 MapPoint 2006/2009 Discussion 0 09-14-2005 07:45 AM
MapPoint 2004 Anonymous MapPoint 2006/2009 Discussion 1 10-10-2003 11:51 PM


All times are GMT -5. The time now is 12:29 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54