MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




[Pb] : VB6 + Service

This is a discussion on [Pb] : VB6 + Service within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, I developped an VB6 executable to manage my customer's datas. This customer needs now a service instead a .EXE. ...


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 01-31-2005
Vincent BENNER's Avatar
Member
Yellow Belt
 
Join Date: Sep 2002
Posts: 41
[Pb] : VB6 + Service

Hello,

I developped an VB6 executable to manage my customer's datas. This customer needs now a service instead a .EXE.

I read on the Msdn that a VB6 -> service transformation wasn't a good idea but that it could work.

I transformed my .exe including a NTSVC.ocx control and including all the necessary code.

When I start the service, I've got a (so) little problem : the MapPointControl.ocx isn't loaded !!!!


Me.ctrlMAPPOINT.NewMap (geoMapEurope)
While Me.ctrlMAPPOINT.ReadyState <> READYSTATE_COMPLETE
DoEvents
Wend

Any idea ?

Regards,
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 02-02-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

I really dont know, have to make a service myself with mappoint but thats for within a few mondts if it go true.

I should try to debug in steps. First of all maybe soemthing to do with the service controls you use. So make a program (not a service) that does not do mutch more than create and destroy a mappoint component. To run it as a service just start it with the windows scheduler as service. If that works (you can log things to a file in the testprogram) then you know it has nothing to do with then mappoint control.

If it doesnt, maybe try to register the ocx in the service, by calling winapi ExecAndWait to run RegSrv32.exe but first things first
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-11-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
OCX Issue

I am also experiencing a similar problem. The custom OCX (created by me) runs fine as long as the full mappoint software is installed in the client machine, If I just install the runtime ActiveX installation, the program crashes. This blows away distributing the runtime liceses with Mappoint Installtion.

Please help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 02-11-2005
Junior Member
White Belt
 
Join Date: Jan 2005
Posts: 3
OCX Issue

I am also experiencing a similar problem. The custom OCX (created by me) runs fine as long as the full mappoint software is installed in the client machine, If I just install the runtime ActiveX installation, the program crashes. This blows away distributing the runtime liceses with Mappoint Installtion.

Please help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-14-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hello,

I've read this topic with a high interest. Should I understand that I've to distribute my software with the ActiveX only and that the customer have to purchase a licence but without install it ?

How it will happens to geocode the adresses ?

Regards,

Vincent BENNER
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 02-14-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Quote:
Originally Posted by Anonymous
Should I understand that I've to distribute my software with the ActiveX only and that the customer have to purchase a licence but without install it ?
No Mappoint does have to be installed. I think you can do a runtime installation (that's what I understeadn of this topic).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 02-17-2005
Junior Member
White Belt
 
Join Date: Jan 2005
Posts: 3
I still don't have any solution. If you install a runtime installation and your software (exe version), the program will work fine, if you have embedded your mappoint.ocx with in your own ocx, it will crash. I think it is EULA issue.
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
service, vb6


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
Speed of the service sbedin MapPoint Web Service and Virtual Earth 0 12-21-2004 11:13 AM
Web service with delphi Anonymous MapPoint Web Service and Virtual Earth 1 11-10-2004 09:43 AM
mappoint web service Anonymous MapPoint Web Service and Virtual Earth 1 04-28-2004 11:48 AM
NT Service and MP Anonymous MapPoint 2006/2009 Discussion 2 01-23-2003 03:31 PM
I am trying to indicate service areas by using a s.... Anonymous MapPoint 2006/2009 Discussion 1 08-30-2001 07:43 AM


All times are GMT -5. The time now is 12:48 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