RE: MI selecting within a spesific distance (mapx question)
Murat, I think that if you want to add a new feature object or features collection object to a layer, it needs to be a standalone object/collection. The objects you are trying to add are just references to extant objects in other layers. Try creating a standalone feature or features collection by using the clone method - then add that to your new layer. Richard Burkmar. -Original Message- From: levent demircan [mailto:[EMAIL PROTECTED]] Sent: 12 September 2000 09:34 To: [EMAIL PROTECTED] Subject: MI selecting within a spesific distance (mapx question) HI, I AM SORRY I KNOW THAT THIS IS NOT A MAPINFO RELATED POST BUT I HOPE THAT LIST MEMBERS HAVE SOME IDEA TO GIVE ME ABOUT THE FOLLOWING ISSUE: I WANT TO SELECT SOME POINTS WITHIN A X KM DISTANCE FROM A SPESIFIC POINT(DBLMAPX, DBLMAPY) AND ADD THEM AS A NEW LAYER. I USED THREE WAYS TO DO THAT BUT I FACED WITH ERRORS. I ADDED MY SAMPLE CODES AND ERRORS OCCURED. WHAT IS THE RIGHT CODE OF SELECTING POINTS? THANK YOU MURAT [EMAIL PROTECTED] FIRST ATTEMPT: ... dim ObjResults as object ... 'SELECTIONLAYER IS THE LAYER THAT I SELECT POINTS FROM. bRC = AddMapLayer(selectionlayer, 1) bRC = CreateMapPoint(p) p.set dblMapX, dblMapY set objResults = g_objMapX.Layers(1).SearchWithinDistance(p,2,1,0) 'I CREATE A NEW LAYER FOR SELECTED POINTS. g_objMapX.Layers.CreateLayer "TempSelection", , 2 'IN THE FOLLOWING ROW AN ERROR OCCURS (SEE BELOW). g_objMapX.Layers("TempSelection").Selection.Add objResults ... ERROR OCCURED IN THE FIRST ATTEMPT: Error Number: 1108 Error Description: Every Feature in a Features collection object must be from the same layer. ** SECOND ATTEMPT: ... dim ObjResults as object ... 'SELECTIONLAYER IS THE LAYER THAT I SELECT POINTS FROM. bRC = AddMapLayer(selectionlayer, 1) 'I SELECT POINTS WITHIN A 1 MILE DISTANCE. g_objMapX.Layers(1).Selection.SelectByRadius dblMapX, dblMapY, 1, 0 'I CREATE A NEW LAYER FOR SELECTED POINTS. g_objMapX.Layers.CreateLayer "TempSelection", , 2 'IN THE FOLLOWING ROW AN ERROR OCCURS (SEE BELOW). g_objMapX.Layers("TempSelection").Selection.Add objResults ERROR OCCURED IN THE SECOND ATTEMPT: Error Number: 1100 Error Description: Invalid Features object. ** THIRD ATTEMPT: ... dim ObjResults as object ... 'SELECTIONLAYER IS THE LAYER THAT I SELECT POINTS FROM. bRC = AddMapLayer(selectionlayer, 1) bRC = CreateMapPoint(p) p.set dblMapX, dblMapY 'I SELECT POINTS WITHIN A 2 KM DISTANCE set circle = g_objMapX.FeatureFactory.CreateCircularRegion (1,p,2,1,100) set objResults = g_objMapX.Layers(1).SearchWithinFeature(circle,0) 'I CREATE A NEW LAYER FOR SELECTED POINTS. g_objMapX.Layers.CreateLayer "TempSelection", , 2 g_objMapX.Layers("TempSelection").AddFeature objResults ERROR OCCURED: Error Number: 1078 Error Description: Feature object is no longer valid. Get free email and a permanent address at http://www.netaddress.com/?N=1 -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI MB: VB6 DLL Access from MB
Eric, Unfortunately you can't do it. VB only creates COM DLLs and since MapBasic does not support COM, VB created DLLs cannot be used from MapBasic. Richard Burkmar -Original Message- From: Eric Maranne [mailto:[EMAIL PROTECTED]] Sent: 11 September 2000 11:58 To: [EMAIL PROTECTED] Subject: MI MB: VB6 DLL Access from MB Could someone point me to a working example of : how to access a VB DLL from a MB program ? (as well as any indication regarding VB compile flags settings ?) It's possible from VC++ or Delphi, but I need to do it from a VB6 DLL, and I'm stuck ... any workaround appreciated (but I don't want to embed OLE in VB, got to stay in MI and call VB functions ) TIA Eric. -Message d'origine- De: Dany Bouchard [SMTP:[EMAIL PROTECTED]] Date: mardi 5 septembre 2000 19:24 A: [EMAIL PROTECTED] Objet: MI AD: SVGExport.MBX - Export your maps to SVG from MapInfo ! Dear listers, For those interested in Scalable Vector Graphics (SVG), a new MapBasic program called SVGExport.MBX that exports MapInfo maps to SVG is available from DBx Geomatics at http://www.dbxgeomatics.com/SVGExport.htm. Please use the download link from that page to download the MBX and documentation. SVG provides an interesting and low cost approach to publish maps on the internet and also allows quite sophisticated output and interactivity (animation, etc !). For anyone interested in getting an introduction on mapping with SVG you are also welcomed to visit DBx Geomatics SVG Technology Preview Area which is no longer password protected at: http://www.dbxgeomatics.com/svg.asp Also an interesting article about XML and GIS from giscafe.com: (http://www.giscafe.com/GISVision/Review/XML.html) - SVG EXPORT UTILITY VERSION 1.0.5 - Summary of features and functionality - * Reads MapInfo map windows and exports content to SVG (same size as the map) * All MapInfo object types and projections are supported * Labels and cosmetic layer are supported * The style of MapInfo objects (and style override) is kept (as much as possible) in the resulting file * Options available for filters (shadows, glow, bevel, etc) and opacity settings * Options available to specify color gradients for regions and text * Interactivity options available to specify hyperlinks, tooltips or color rollover * Option for generating an html container with a layer control * Option to export to compressed SVG - Requirements: MapInfo Version 5.x or later Your comments are welcomed ! Dany Bouchard DBx Geomatics 38 de l'Orbite Hull, Quebec Canada J9A 3C7 Telephone/Telephone: 819.743.3870 Telecopieur/Fax: 819.775.3264 Courrier electronique/Email: [EMAIL PROTECTED] Page Web/Web site: http://www.dbxgeomatics.com/home.asp Vitrine technologique SVG / SVG Technology Preview: http://www.dbxgeomatics.com/svg.asp Fichier: ATT2.html --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.185 / Virus Database: 88 - Release Date: 18/08/00 -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI MBX vs MBO
Chris, If your compiler cannot resolve all the references (e.g. cannot find a sub definition) in your MB file, it assumes it must be part of a larger project and compiles it as an object (MBO file). Make sure that you have all your procedures and variables properly declared. Richard Burkmar -Original Message-From: galmala [mailto:[EMAIL PROTECTED]]Sent: 09 September 2000 01:51To: [EMAIL PROTECTED]Subject: MI MBX vs MBO Hey guys, Just a quick question concerning MapBasic. I am writting several small programs at the moment. When I attempt to compile these files, they sometimes are compiled as an MBX file, and other times they are compiled as an MBO file! Any suggestions as to why this is the case. Thanks in advance, Chris
RE: MI and Visual Basic
Jas, I'm not sure if its important, but are you reparenting the MapInfo windows to your VB form (e.g. MIObject.Do "set application window " Me.hwnd) - if MI is poping up a 'save edits' dialog when you issue the close all, this might have a bearing. Richard Burkmar. -Original Message- From: Brad Mathews [mailto:[EMAIL PROTECTED]] Sent: 06 September 2000 18:12 To: [EMAIL PROTECTED] Subject: RE: MI and Visual Basic Using "Close All" will close all tables and discard any changes made. No dialog box will be displayed. "Close All Interactive" will show any dialog boxes. I have been trying to figure this one out for you, but I haven't come up with an answer. After closing all tables I always 'Set MapInfo = Nothing' and then re-instantiate Mapinfo, though I was doing this for other reasons - Mapinfo used to (and may still) have memory leak problems and this solved it. - Brad -Original Message- From: peterelphick [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, September 05, 2000 1:13 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: MI and Visual Basic Sometimes in Inegrated mapping applications the whole thing locks because MI is trying to display a dialogue box. If any of your tables had been edited, Mi would try to display a dialogue to warn you that your changes have not been saved. Otherwise there is no reason why you should not be able to open any other tables. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 05, 2000 12:40 PM Subject: MI and Visual Basic I am writing a Visual Basic application for MapInfo. I am trying to close any MapInfo tables which have been opened while at the same time keeping my connection to MapInfo established. I am using the following code mapinfo.Do "Close All " All previously open tables are closed but after this I am no longer able to open any more tables. I have ytried re-establishing a MapInfo connect but nothing seems to work. Anyone have a suggestion? jas -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI Run application
ilo, You can show the mapbasic window from the MI options menu and then open a workspace or run an MBX to get the syntax. You should get something like that shown below: Run Application "D:\temp\rtmp.WOR" Richard Burkmar. -Original Message- From: Milo Simonic [mailto:[EMAIL PROTECTED]] Sent: 07 September 2000 12:31 To: [EMAIL PROTECTED] Subject: MI Run application What is the syntax of a mapbasic command to run an application? I want to start a workspace within another workspace, but on entering RunAplication... I get an error. I do not have a Mapbasic so I cannot check the syntax. Milo -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI transitioning from MapBasic to Mapx
Title: RE: MI MapInfo Pro 6.0 Demo Bart (if thats your real name!), You ask some pretty big questions, for which I'll contribute a few partial answers and opinions. I'm sure you'll get plenty of other respondents too. Can I implement in MapX ALL functionality, which is offered by MapInfo Professional (version 6.0)? The simple answer is no. For example you cannot create a thematic map of grid type in MapX (though I think that all the other types are available) and you cannot snap to underlying nodes or trace lines when generating new features (though with clever programming you might be able to do something similar), to name just a couple. For the most part though, MI's functionality is available in MapX in one form or another, though it often works a little differently. On the flip side, MapX offers some features which MI doesn't, for example features can be selected from more than one layer at once. Could I use MapX in a Java environment? I don't know too much about Java at present, but MapX can be used in any development environment that supports COM (e.g. C++ and VB). You may also be intersted in finding out a little more about MapXtreme Java edition which is a 100% Java solution for deploying 'MapJ' (functionaly very similar to MapX) solutions across the internet or intranet. How does MapX development compare with Integrated Mapping (control MapInfo from a C++ client program, basically by sending MapBasic statements via OLE), both from functionality perspective and a development environment perspective? It really doesn't compare - MapX is much better, certainly from the point of view of development. MapX is implemented as a mapping OCX control and object hierarchy complete with events, methods, properties etc. If you're a C++ developer you've probably used many COM based third-party controls before and you'll find learning and using MapX a snip and soon a pleasure. As I've said before, MapX and MI are functionaly a little different - if you want to give your users an MI type 'Info' tool or 'Browser' for example, you'll have to develop them, though this is not usually too difficult. The freedom you have to implement this kind of functionality in which ever way you want to is refreshing if you are used to being constricted by an integrated mapping/MapBasic environment. Forget all about MapBasic - it'll be of no use to you with MapX. Purely from a development environment perspective, the new ArcInfo version (with MapObjects) seems more attractive. Any comments? Don't have any experience of MapObjects, though I find it hard to imagine why it would be more attractive than MapX (you can see I'm a MapX fan). Of course Avenue vs MapBasic is a completely different argument, but that's not relevant here. Good luck, Richard Burkmar. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: 07 September 2000 12:29To: [EMAIL PROTECTED]Subject: MI transitioning from MapBasic to Mapx Hi, We have build a pretty extensive application in MapBasic. It serves well as a prototype. Now we want to bring our application to the next level: bring in more functionality (not necessarily GIS-related processing), enhance the user interface, interface with MS Office applications,etc. So we are considering moving to a Visual C++ environment with MapX. I have a few related questions: Can I implement in MapX ALL functionality, which is offered by MapInfo Professional (version 6.0)? Could I use MapX in a Java environment? How does MapX development compare with Integrated Mapping (control MapInfo from a C++ client program, basically by sending MapBasic statements via OLE), both from functionality perspective and a development environment perspective? Purely from a development environment perspective, the new ArcInfo version (with MapObjects) seems more attractive. Any comments? If people have gone to a similar transition: any other suggestions, caveats, tips are very welcome. Thanks a lot, Bart
RE: MI ESRI Shapefile and MapX Compatibility Question
Dave, MapX 4.x can read display native ESRI shape files using the 'Map.Layers.Add LayerInfoObject' method. There is a major drawback though - you have to know the projection of the data and specify that in the 'LayerInfoObject' - MapX does not seem to be able to get the projection from the shape file itself. MapX also renders the goemetry in the MapX default styles. Richard Burkmar. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 31 August 2000 22:12 To: [EMAIL PROTECTED] Subject: MI ESRI Shapefile and MapX Compatibility Question Does anybody out there know of any information regarding the reading and editing of ESRI Shapefiles using the MapX language? Cheers Dave Williams Montgomery Watson -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI ESRI Shapefile and MapX Compatibility Question
Hi Dennis, How does ArcView know how to project the files and display the entities - is the information stored in some higher order of file like a project or theme file or something? Richard Burkmar. -Original Message- From: Waardenburg, Dennis [mailto:[EMAIL PROTECTED]] Sent: 01 September 2000 13:39 To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: MI ESRI Shapefile and MapX Compatibility Question Richard, The major drawbacks you describe are the result of shortcomings native to Shape files, not MapX. Shapefiles contain neither the projection/coordinate system nor the object style info for the layer, as Mapinfo TABs do. MapX can't read information that isn't there, so it's necessary for the coder to provide it. Dennis Waardenburg GIS Specialist The Environmental Company, Inc. -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Friday, September 01, 2000 5:32 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: MI ESRI Shapefile and MapX Compatibility Question Dave, MapX 4.x can read display native ESRI shape files using the 'Map.Layers.Add LayerInfoObject' method. There is a major drawback though - you have to know the projection of the data and specify that in the 'LayerInfoObject' - MapX does not seem to be able to get the projection from the shape file itself. MapX also renders the goemetry in the MapX default styles. Richard Burkmar. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 31 August 2000 22:12 To: [EMAIL PROTECTED] Subject: MI ESRI Shapefile and MapX Compatibility Question Does anybody out there know of any information regarding the reading and editing of ESRI Shapefiles using the MapX language? Cheers Dave Williams Montgomery Watson -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI MapInfo Certification / Exam
Dan, MapInfo have! I took the MapInfo Pro 'Product Specialist' exam which is part f the 'MapInfo Professional Technical Accreditation Programme'. Richard Burkmar -Original Message-From: Dan Phillips [mailto:[EMAIL PROTECTED]]Sent: 15 August 2000 03:24To: [EMAIL PROTECTED]Subject: MI MapInfo Certification / Exam Has anyone come up with an examthat would test a person's knowledge of MapInfo? It seems like I've seen this question before but don't recall seeing any answers. TIA Dan Phillips [EMAIL PROTECTED]
RE: MI and Visual Basic
Almost any 'non-trivial' integrated mapping application will require an element of MapBasic programming anyway so an investment in it should prove worthwhile. Richard Burkmar. -Original Message- From: Brad Mathews [mailto:[EMAIL PROTECTED]] Sent: 14 August 2000 21:48 To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: MI and Visual Basic Jason, Do you have Mapbasic? If yes, the code samples in the manual are good enough to get you started. If no, you will probably need to get it as it includes all of the help files, include files, manuals, sample code, etc. that you will need to make your life a lot easier. Does anyone know of another way to get these resources for integrated mapping without needing to buy Mapbasic? - Brad -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 11:43 AM To: [EMAIL PROTECTED] Subject: MI and Visual Basic hi, I'm new to MapInfo and Integrated Mappping with Visual Basic. Does anyone where I could get my hands on a book or even some sample code. help!! Jason -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI MapInfo Certification / Exam
I'm beginning to wonder if its a UK-only program. As MapInfo partners, we were informed directly of the program (from the UK Windsor office). Richard. -Original Message- From: Ken Archer [mailto:[EMAIL PROTECTED]] Sent: 15 August 2000 14:48 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: MI MapInfo Certification / Exam Richard, I haven't seen anything on MI's Web site about this. Where did you get info? Ken From: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: MI MapInfo Certification / Exam Date: Tue, 15 Aug 2000 09:51:47 +0100 Dan, MapInfo have! I took the MapInfo Pro 'Product Specialist' exam which is part f the 'MapInfo Professional Technical Accreditation Programme'. Richard Burkmar -Original Message- From: Dan Phillips [mailto:[EMAIL PROTECTED]] Sent: 15 August 2000 03:24 To: [EMAIL PROTECTED] Subject: MI MapInfo Certification / Exam Has anyone come up with an exam that would test a person's knowledge of MapInfo? It seems like I've seen this question before but don't recall seeing any answers. TIA Dan Phillips [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI global variables
Dan, Here's the bare bones of some VB code which you might find useful. Dim objMI As MapInfo.MapInfoApplication Dim objMB As Object Dim objMBGlobals As Object Set mobjMI = GetObject(, "MapInfo.Application") For Each objMB In objMI.MBApplications If UCase(objMB .Name) = "XYZ.MBX" Then Set objMBGlobals = objMB.MBGlobals Exit For End If Next MsgBox "Global value is: " objMBGlobals("global_variable_name").Value Hope its useful, Richard Burkmar ICL -Original Message- From: Danny Irwin [mailto:[EMAIL PROTECTED]] Sent: 11 August 2000 11:50 To: [EMAIL PROTECTED] Subject: MI global variables Dear users, Could anyone provide any assistance regarding global variables and their interaction with Visual Basic. We can't seem to pass a value in a global variable from MapBasic into a VB project, despite the user guide telling us that it's easy with DDE! Does anyone know why we might be experiencing problems? Thanks Dan Irwin Transport For London - Street Management The contents of the e-mail and any transmitted files are confidential and intended solely for the use of the individual or entity to whom they are addressed. Transport for London hereby excludes any warranty and any liability as to the quality or accuracy of the contents of this e-mail and any attached transmitted files. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. ** ** -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
MI MAPX: Deployment with Visual Studio Installer
Has anyone created a merge module for MapX for use with Visual Studio Installer? If so, would they be willing to share their knowledge? I'm particularly keen to know what associations I need to set up. For example, do I need a type library as well as a com object assoication for MapX40.ocx? And what about MMapXColunInfo.dll and mdatasetint.tlb? Richard Burkmar -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI MapX....and integrated mapping
Haavard, If you want to make a VB application which has MapInfo mapping, you have two choices: 1. Integrated Mapping 2. MapX For integrated mapping you only need VB and MapInfo Pro. Your VB application takes control of an instance of MapInfo through OLE. You can hide the main MI Pro window and host its document windows in your forms, or you can leave MI Pro visible and allow the user to work with it and your application interface side-by-side. Some MapBasic elements will almost certainly be required in all but the simplest applications. This approach can be very effective but you may find it a little 'clunky' and hard to get used to. Users of your application must have MapInfo Pro installed to. MapX offers a much more integrated approach by giving you a Map object as an ActiveX control which you can place directly on your VB forms. If you are a seasoned VB programmer but have little MapBasic experience, then this approach will seem much more natural and intuitive to you. However there are some differences between MapX and MapInfo Pro which need getting used to. You can distribute your applications to users who don't have MapInfo Pro, but you must pay a small royalty to MapInfo everytime you redistribute the MapX OCX. Good luck, Richard Burkmar. -Original Message- From: Haavard Bogh-Olsen [mailto:[EMAIL PROTECTED]] Sent: 29 March 2000 16:17 To: [EMAIL PROTECTED] Subject: MI MapXand integrated mapping hello I am planning to make a custom application in Visual Basic 6 with som MapInfo tools. But I wonder, do I need MapX and some manuals to do thisI have only used VB, not MapX, before.What is the price for MapX.? Is everything I need to make a standalone application through VB described in the MapX manuals? Or do I need some Map Basic manuals thank you very much haavard __ Get Your Private, Free Email at http://www.hotmail.com -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI VB / MB Error
Greg, The following program works fine - implement this in a new project and take it from there. Richard Burkmar ICL Form module code: # Private mobjMI As MapInfo.MapInfoApplication Private Sub Command1_Click() Dim obj As Object For Each obj In mobjMI.MBApplications MsgBox obj.Name Next End Sub Private Sub Form_Load() Set mobjMI = GetObject(, "MapInfo.Application") End Sub # -Original Message- From: Toothaker, Greg [mailto:[EMAIL PROTECTED]] Sent: 21 March 2000 17:47 To: [EMAIL PROTECTED] Cc: '[EMAIL PROTECTED]' Subject: RE: MI VB / MB Error Richard and L, I gave the code a try and have encountered another error: -2147023186: Automation error The object universal unique identifier (UUID) was not found. Again, any experiences with this error or ideas would be appreciated. Thanks, Greg Greg, I loop through the MB applications collection because I've found it hard to predict the correct case of all the characters in the string used to identify the application. Executing a loop like this in break mode will let you see exactly whats going on too. For Each obj In objMapInfo.MBApplications If UCase(obj.Name) = "DATTOMAP.MBX" Then Set mbApp = obj Exit For End If Next Richard Burkmar ICL I have run into a problem on a users system which is very annoying. I have a code which uses VB for the user interface, and MB to do the work in MapInfo. The error occurs while I am establishing the 'connection' between VB and MapBasic. My code goes as follows: Public objMapInfo As Object Public mbApp As Object Public globinfo As Object Sub Main Set objMapInfo = GetObject(, "MapInfo.Application") objMapInfo.Do "Run Application """ App.Path "\dattomap.mbx""" Set mbApp = objMapInfo.MBApplications.Item("dattomap.mbx") Set globinfo = mbApp.MBGlobals My error occurs on the Set mbApp statement. I have the error trapped and have put a timer on the error in case the mbx hasn't had time to execute. My error trap allows about 60 seconds to pass which should be more then enough time for the mbx to basically open and go into a wait state due to the remote message handler in the code. I have noted the number of mbapplications (msgbox objMapInfo.MBApplications.count) and it reports the correct # of mb apps. When I attempt to note the names of the MBApplications(msgbox objMapInfo.MBApplications.Item(1).Name ), the code fails. The VB error I keep getting is (-2147417851) which is basically saying 'the server threw an exception'. This code works fine on 90% of my users systems. This error is occuring on a WinNT system where MI is local and the other mb applications run on a server. Any thoughts or comments would be appreciated as I am out of guesses on this one. Thanks, Greg Toothaker -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI VB / MB Error
Greg, I loop through the MB applications collection because I've found it hard to predict the correct case of all the characters in the string used to identify the application. Executing a loop like this in break mode will let you see exactly whats going on too. For Each obj In objMapInfo.MBApplications If UCase(obj.Name) = "DATTOMAP.MBX" Then Set mbApp = obj Exit For End If Next Richard Burkmar ICL -Original Message- From: Toothaker, Greg [mailto:[EMAIL PROTECTED]] Sent: 20 March 2000 23:34 To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: MI VB / MB Error I have run into a problem on a users system which is very annoying. I have a code which uses VB for the user interface, and MB to do the work in MapInfo. The error occurs while I am establishing the 'connection' between VB and MapBasic. My code goes as follows: Public objMapInfo As Object Public mbApp As Object Public globinfo As Object Sub Main Set objMapInfo = GetObject(, "MapInfo.Application") objMapInfo.Do "Run Application """ App.Path "\dattomap.mbx""" Set mbApp = objMapInfo.MBApplications.Item("dattomap.mbx") Set globinfo = mbApp.MBGlobals My error occurs on the Set mbApp statement. I have the error trapped and have put a timer on the error in case the mbx hasn't had time to execute. My error trap allows about 60 seconds to pass which should be more then enough time for the mbx to basically open and go into a wait state due to the remote message handler in the code. I have noted the number of mbapplications (msgbox objMapInfo.MBApplications.count) and it reports the correct # of mb apps. When I attempt to note the names of the MBApplications(msgbox objMapInfo.MBApplications.Item(1).Name ), the code fails. The VB error I keep getting is (-2147417851) which is basically saying 'the server threw an exception'. This code works fine on 90% of my users systems. This error is occuring on a WinNT system where MI is local and the other mb applications run on a server. Any thoughts or comments would be appreciated as I am out of guesses on this one. Thanks, Greg Toothaker POWERmap Europe Product Manager Resource Data International, Inc. a Financial Times Energy company [EMAIL PROTECTED] http://www.POWERmap.com -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
MI Managing forms/windows in an Integrated Mapping App
Dear All, I have a VB6 integrated mapping application which works together with MapInfo Pro. Users need to interact with both applications at any given time - so managing the two interfaces is important. I use the Windows API 'SetWindowPos' to make sure that my VB form always appears over the MapInfo window. However if dialogs (e.g. layer control) are invoked from MapInfo, these appear under my form too. To remedy this, I use the "set application window " MapInfo command to ensure that these dialogs are children of by VB form and therefore appear over it. So far so good. However, the following bug has come to light. If my form (now the 'application window') is running, certain MapBasic applications do not run correctly. It transpires that the 'CommandInfo' statement does not always work correctly in these MapBasic applications when a form of another application is the 'application window'. In particular the 'CommandInfo' statement doesn't work when it is used directly after a 'Dialog' statement in the handler of a PushButton. Curiously, its fine in the hanlders of ToolButtons. I believe that this must be a bug and I cannot find a workaround. Do you have any suggestions? The following code is all you need to reproduce the problem. If you compile and run the MBX on its own then both buttons work OK. However if you compile and run the VB application, then the MBX no longer works propery - use the right hand button (the PushButton) and then 'okay' the dialog - the code cannot detect that you've used the OKButton. Richard Burkmar ICL MapBasic program: Include "mapbasic.def" Include "icons.def" Declare Sub Main Declare Sub ShowDlg Sub Main Create ButtonPad "Bug Test" As ToolButton Calling ShowDlg Drawmode DM_CUSTOM_RECT PushButton Calling ShowDlg Show End Sub Sub ShowDlg Dialog Title "Bug Test" Control OkButton Control CancelButton If CommandInfo(CMD_INFO_DLG_OK) Then Note "Okayed" Else Note "Not okayed" End If End Sub # VB application (code from form module): # Private mobjMI As MapInfo.MapInfoApplication Private Sub Form_Load() Set mobjMI = GetObject(, "MapInfo.Application") End Sub Private Sub Form_Activate() mobjMI.Do "set application window " Me.hwnd End Sub -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI Can MapBasic call routines in ActiveX DLLs?
Listers, I agree with much of Chris's analysis except I would say that the emphasis is wrong. In my opinion the problem is not that applications built with VB5/6 expose their functionality to other applications as COM objects, but rather the fact that MapBasic is not COM compliant. The Component Object Model (COM) is central to the Microsoft Windows environment and there probably isn't much of a future for development environments which don't support it. Nowadays, most do - for example any development environment in which you can incorporate a MapX map is COM compliant. MapX exposes its functionality as a COM component - if it didn't it wouldn't have got off the ground. Richard Burkmar ICL -Original Message- From: Chris Martin [mailto:[EMAIL PROTECTED]] Sent: 07 February 2000 14:08 To: MapInfo-L; Bill Thoen Subject: Re: MI Can MapBasic call routines in ActiveX DLLs? I've been asking around about this; I would like to be able to share some VB code (access to Win32API, common functions, etc.) with MapBasic. Currently, I cut and paste the code, then make the necessary syntax modifications... Not too much of an ordeal, but could it be better? The answer so far seems to be a resounding NO! If you haven't already done so, non-VB/MB people can switch off now... The new VB5/6 DLLs are ActiveX DLLs or COM Servers. It doesn't really matter what all this means apart from the fact you can't access the functions inside from other languages. There are ways around, but they start at complex, then get a bit worse (in my view). You can apparently write some sort of interface in C++ or alternatively re-write completely in C++. And there are one or two 3rd-party tools that help; I've been told that Desaware's SpyWorks will give you some kind of export capability that will do the biz. But unless some new information comes in, I shall stick to cutting and pasting Some words from one of my sources: "Use of VB DLL's is made through COM who takes charge of making "visible" the appropriate classes. In normal DLL's an Export Table is generated where all public function names and their parameters are written. Any program can then import that library (that's what you do when you DECLARE an api function) and use its functions. Unfortunately, as VB DLL's are COM servers, the only functions that they export are to register and un register the server. There's no other functionality you can access." A while ago Chris Martin's summary on how to get custom icons into MapInfo interested me enough to wonder what else you can do with this technique. Basically --and this works great-- you can create a custom ActiveX DLL that will allow you to use all sorts of home-made icons like so: 1) Create a new ActiveX DLL project 2) Open resource editor, and add your custom bitmap pairs 3) Save resource file in Project 4) Save and compile project 5) Distribute... 6) When selecting icon, specify pathname of DLL eg. ICON 1002 FILE "MyIcons.DLL" 7) Sit back and impress friends and colleagues, with smiley faces and Bunny Wabbits. (You need at least VB 6 or you won't have the Resource Editor.) But my question now is, can you make ActiveX DLLs that can contain functions and subprograms that can be called from MapInfo like you can with the earlier style DLLs? If so, does anyone have a small example? I know VB can't do the old style DLLs, but it's VB that I have now, so it would be neat to be able to use to make new style DLLs, if they could be made to work with MapBasic. Can this be done? - Bill Thoen - To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] CJ Martin GIS Consultant WS Atkins Consultants Ltd (01952) 201234 -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI 'Chasing' windows
Nick, You will have to use MapBasic to achieve something like this. The program shown below does what you were asking - though I have only tested it very lightly. Note that re-zooming a window does not affect the zoom level in the others - only the centering. However you could change the code to achieve this if required. The 'bChasing' logical varible prevents the handler from invoking itself which causes an error. To get this to work you have to compile it using MapBasic and then run the compiled 'MBX'. Include "mapbasic.def" Declare Sub Main Declare Sub WinChangedHandler Global bChasing As Logical Sub Main End Sub Sub WinChangedHandler Dim i As SmallInt Dim iCurrentWin As Integer Dim iWindowID As Integer If bChasing Then Exit Sub End If bChasing = True iCurrentWin = FrontWindow() If WindowInfo(iCurrentWin, WIN_INFO_TYPE) = WIN_MAPPER Then Set Coordsys Window iCurrentWin For i = 1 To NumWindows() iWindowID = WindowID(i) If iWindowID iCurrentWin Then If WindowInfo(i, WIN_INFO_TYPE) = WIN_MAPPER Then Set Map Window iWindowID Center (MapperInfo(iCurrentWin,MAPPER_INFO_CENTERX), MapperInfo(iCurrentWin,MAPPER_INFO_CENTERY)) End If End If Next End If bChasing = False End Sub -Original Message- From: Adnitt Nick [mailto:[EMAIL PROTECTED]] Sent: 05 January 2000 16:36 To: '[EMAIL PROTECTED]' Subject: MI 'Chasing' windows Hi folks, I have just bought the digitised (scanned) historic mapping of Southampton. It consists of 4 'snapshots' through time starting at 1836. If I want to show the same geographic area at four different times through history I can show each table within a different MapInfo map window. If I pan in one of the windows to move to a different area, I then have to pan the other three windows by the same amount to show the same new area. Is there a way to update the other three windows automatically with the same geographic area as the 'master' window (view), so that the windows appear to chase each other? (I hope this explains roughly what I mean!!). cheers Nick Adnitt - Business Analyst Southampton City Council Phone: 023 8083 3092 Fax: 023 8083 3338 Mobile: 07899 060732 E-mail: [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
MI SUM: MB: How do I query dialog position (Win API?)
Yes! I love this list! Thanks Anssi Joutsiniemi, Chris Martin and John Harrop for taking the time to help me out. Chris you actually hit the nail on the head without realising it - 'GetForegroundWindow' was the API function I needed to get direct access to the hwnd of the dialog window. I can use this handle as an argument to the 'GetWindowPlacement' and 'SetWindowPlacement' API functions. These functions also take an argument of type WINDOWPLACEMENT which includes a member of type RECT which, in turn has the members 'top', 'bottom', 'left' and 'right'. It's these four values which are stored and reset. I use 'GetWindowPlacement' in a handler called by the command buttons of the dialog and 'SetWindowPlacement' in a handler which is called directly after the dialog is invoked. If anyone tries this, note that the 'length' member of the WINDOWPLACEMENT type must be set to '44' (the total length of the type) in MapBasic before either function is called. Many thanks again. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 04 January 2000 13:07 To: [EMAIL PROTECTED] Subject: MI MB: How do I query dialog position (Win API?) Listers, I have a MapBasic application that presents the user with a dialog when a custom toolbutton is used. I want the user to be able to move this dialog before it is dismissed and have the dialog posted to that new position the next time the toolbutton is used. I don't think there is a way to do this with MapBasic alone because although the 'Dialog' statement has the 'position' parameter to position the dialog when its posted, there's no way of querying the current position once the user has moved it. If I'm wrong on this, please let me know! I thought of using the 'GetWindowPlacement' and 'SetWindowPlacement' API functions to get around this MB shortcoming but these functions both require the Windows Hwnd of the dialog box and I cannot find a way to get it. I've tried using the 'FindWindow' API function, passing the caption of my dialog as the second argument (and "" for the first), but it just returns zero to me. I've also tried using the 'GetTopWindow' API function like this - 'GetTopWindow(WindowInfo(WIN_MAPINFO, WIN_INFO_WND))' but that returns the Hwnd of the top document window (a map window in my case) rather than the dialog. I tried both of these from handlers invoked when the dialog command buttons are used - so the dialog is still present and (I had hoped) is the 'top' window with the focus. Can anyone suggest how I might use either of these functions successfully, or suggest an alternative method? Thanks for any help you can provide. Richard Burkmar ICL [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
MI MB: How do I query dialog position (Win API?)
Listers, I have a MapBasic application that presents the user with a dialog when a custom toolbutton is used. I want the user to be able to move this dialog before it is dismissed and have the dialog posted to that new position the next time the toolbutton is used. I don't think there is a way to do this with MapBasic alone because although the 'Dialog' statement has the 'position' parameter to position the dialog when its posted, there's no way of querying the current position once the user has moved it. If I'm wrong on this, please let me know! I thought of using the 'GetWindowPlacement' and 'SetWindowPlacement' API functions to get around this MB shortcoming but these functions both require the Windows Hwnd of the dialog box and I cannot find a way to get it. I've tried using the 'FindWindow' API function, passing the caption of my dialog as the second argument (and "" for the first), but it just returns zero to me. I've also tried using the 'GetTopWindow' API function like this - 'GetTopWindow(WindowInfo(WIN_MAPINFO, WIN_INFO_WND))' but that returns the Hwnd of the top document window (a map window in my case) rather than the dialog. I tried both of these from handlers invoked when the dialog command buttons are used - so the dialog is still present and (I had hoped) is the 'top' window with the focus. Can anyone suggest how I might use either of these functions successfully, or suggest an alternative method? Thanks for any help you can provide. Richard Burkmar ICL [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI MapBasic - SELECT command problems
John, MB will parse 'wherestatement' as a single 'token' or 'word' - which isn't what you want. You will probably be best off using the 'Run Command' statement something like this: Run Command "Select * From " tables " Where " wherestatement " Into Selection" 'Run Command' causes the subsequent string to be parsed into its individual tokens before being executed. Richard Burkmar ICL -Original Message- From: "fannon_j"@wrcplc.co.uk [mailto:"fannon_j"@wrcplc.co.uk] Sent: 21 December 1999 09:14 To: [EMAIL PROTECTED] Subject: MI MapBasic - SELECT command problems I have a mapbasic program that gets an SQL statement from the user filling in a text box. This statement is stored in a string variable and the program runs the select statement once the dialog is dismissed with OK. Eg: if commandinfo (CMD_INFO_DLG_OK) then Select * From tables Where wherestatement Into Selection end if the variable "tables" and "wherestatement" hold the user input table names and SQL where statement respectively. currently this doesn't work! The variable "tables" seems to be ok...but there is something about using a string variable for the where part of the statement which MapBasic doesn't like. Do I need to split up the wherestatement string variable into seperate string variables for the SELECT command to work? Or is it something to do with column aliases (which I hate!) ? If you have any ideas I'd be happy to here them! cheers John -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: Vedr: MI Changing selected object styles using MB
Peter, Wont that alter the style in the underlying table? May not be a problem of course. Richard Burkmar ICL -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 15 December 1999 08:05 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Vedr: MI Changing selected object styles using MB Hi Tim You have to write a function and then use it in a Update Include "mapbasic.def" declare Function NewStyle(byval o as object) as object ... Update Selection set obj = NewStyle(obj) ... Function NewStyle(byval o as object) as object dim tmpObj as object, pStyle as Pen pStyle = MakePen(.) tmpObj = o Altter object tmpObj Info OBJ_INFO_CODE, pStyle NewStyle = tmpObj end function Peter Laulund National Survey and Cadaste, Denmark "Tim Warman" [EMAIL PROTECTED] - 14-12-99 22:21:36 Besvar venligst til [EMAIL PROTECTED] Til:"Mapinfo-L" [EMAIL PROTECTED] cc: (bcc: Peter Laulund/MI/KMS) Vedrørende:MI Changing selected object styles using MB -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI Changing selected object styles using MB
Tim, I've just had a similar problem myself. Actually I wanted to use MB to change the style MI used to highlight any selected objects - like you can from 'Options-Preferences-Map Window' in MI. I didn't find a wholly satisfactory way. One neat looking way was to use SelectionInfo to get the underlying 'QueryN' table for the selection, globally changed styles in that and then add the layer to relevant map window(s). The trouble was that this had the unexpected drawback of preventing users from using the selection tools in the map window(s) to pick any objects in the underlying table unless they were in that query table - weird. In the end I had to commit the query table to make a 'proper' base table of it - then open that and add the layer to the relevant map window(s). Means doing a lot of housekeeping around temp tables though. Let me know if you find better ways. Richard Burkmar ICL -Original Message- From: Tim Warman [mailto:[EMAIL PROTECTED]] Sent: 14 December 1999 21:22 To: Mapinfo-L Subject: MI Changing selected object styles using MB I know this should be straightforward, but once I've selected a number of line objects and placed them in the Selection table, is there a simple way to change all of the lines styles to a single thickness and colour? Something akin to selecting optionsline style in MI. TIA _ Tim Warman Geologist GIS Specialist Richard C. Slade Associates North Hollywood, CA (818) 506-0418 -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI MapBasic Programmers - FYI 5.x Bug
Cindy, Thanks for the prompt and effective workaround. Richard Burkmar. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 11 November 1999 19:56 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: MI MapBasic Programmers - FYI 5.x Bug Regarding your posting below, here is a workaround. Include "Menu.def" Declare Sub Main Sub Main Run Command "Run Menu Command " + Str$(M_FILE_SAVE_WORKSPACE) End Sub Cindy MapInfo Technical Support Dear MB developers, If you have any MapBasic applications which use the line 'Run Menu Command M_FILE_SAVE_WORKSPACE', they may fail to work properly under some circumstances (see below) with MapInfo 5.x. Richard Burkmar. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 09 November 1999 18:03 To: [EMAIL PROTECTED] Subject: Re: MapBasic 5.x Bug This is a bug in MapInfo 5.5 as well. I will file it as a bug. Unfortunately, I don't have a workaround for this. Cindy MapInfo Technical Support * To: TechSupport/MapInfo Corp@MapInfo Corp cc: Subject: MapBasic 5.x Bug Tech-support, When I compile and run the following MapBasic 5.0 program, I get an error if I have previously run an SQL query and I have the 'save queries in workspaces' option set (i.e. if the workspace tries to save the query). Running 'save workspace' directly from the MapInfo menu is OK as is running the MBX if I have not first run an SQL query or running the MBX with the 'save queries in workspaces' option not set. Include "Menu.def" Declare Sub Main Sub Main Run Menu Command M_FILE_SAVE_WORKSPACE End Sub This is causing us problems because we have a MapBasic App (originally written at version 4.x) which intercepts a user's request to save a workspace from the MapInfo file menu and runs some code to clear up application-specific tables before saving the workspace with a line like that shown above. Now a customer has moved to version 5.x of MapInfo, and cannot save workspaces with queries (which they need to do) unless they first shut down the application. Do you have any workarounds or bug fixes for this problem? Richard Burkmar -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
MI MapBasic 5.x Bug - workarounds anyone?
Dear MapBasic Programmers, When I compile and run the following MapBasic 5.0 program, I get an error if I have previously run an SQL query (i.e. if the workspace tries to save the query). Running 'save workspace' directly from the MapInfo menu is OK as is running the MBX if I have not first run an SQL query. Include "Menu.def" Declare Sub Main Sub Main Run Menu Command M_FILE_SAVE_WORKSPACE End Sub Although at first sight it might seem trivial, it is causing me problems because I have a MapBasic App (originally written at version 4.x) which intercepts a user's request to save a workspace from the MapInfo file menu and runs some code to clear up application-specific temporary tables before saving the workspace with a line like that shown above. Now a customer has moved to version 5.x of MapInfo, and cannot save workspaces with queries (which they need to do) unless they first shut down the application (which is very inconvenient). Does anyone have any ideas for working round this problem? Thanks in advance, Richard Burkmar. -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI MapX: Install utilities
Martin, I'm involved in the distribution of a MapX/VB6 product (was VB5) and I use the Package and Deployment Wizard that comes with VB6. VB6 comes with a project called Setup1 and by modifying this project, you modify the installation package you produce with the wizard. I modified the project to handle things like entering the required MapX registry keys and shelling out to 'regsvr32.exe' to register 'MapX30.ocx' (because the OCX does not self-register correctly otherwise). It took a while to get into it, but its nice having full conrol over the installation interface - for example I added a check-box to the installation interface so that the user can choose whether or not to install example data with the application. Good luck, Richard Burkmar. -Original Message- From: Chris Martin [mailto:[EMAIL PROTECTED]] Sent: 20 September 1999 18:22 To: [EMAIL PROTECTED] Subject: MI MapX: Install utilities In the past, I have used InstallShield Express to install my MapX/VB applications, but I would like to know what other MapX developers use, and what product the group would recommend Thanks CJ Martin GIS Consultant WS Atkins Consultants Ltd (01952) 201234 -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]