MapXtreme NT works by declaring MapX objects as objects without putting them on a form - you lose all the lovely drop-down stuff when coding in VB (you have to declare it as an object not as a MapX) but it works fine. I've done this within a class module in VB - if you need to use it elsewhere in your program you could make your object available as a property on a class, or as a public variable declared in a module and then populated by CreateObject etc...
Paul Crisp Syntegra Direct: 0191 461 4522 Mobile: 0776 414 3762 Fax: (0191) 461 1959 Innovation Place Metro Riverside Park Delta Bank Road Gateshead Tyne & Wear NE11 9DJ -----Original Message----- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 09:22 To: [EMAIL PROTECTED] Subject: MI-L Creating instance of MapX Hi list I'm trying to make a small app that takes a point as input and returns the table-data found at that point. Basically I've done that, but the only way I could include the map-object was by making a form that contains the map. But I have to do all this as a dll-library, and therefore can't have a form. Anyone who have a clue how to declare the map-object? Page 52 of the MapX 4.51 dev guide manual: ------------------------------ If you do not have the Mapx Object embedded in a form. Dim objStyle as new object Set objStyle = CreateObject("MapX.Style.4) Map1.Layers(1).OverrideStyle = True objStyle.PickRegion set objMap.Layers(1).Style = objStyle ------------------------------ I know this is just a style-object, but it is still referencing Map1, without having declared map1. This doesn't work i VB6, but was the only example I could find, that doesn't have the mapx object embedded in a form. Bottomline: How do I declare a map in VB6 that I can query, without using a form ? /Morten _______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body. ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ******************************************************************** _______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body.
