this will most likely be determined by what version of the MI OLE automation library is referenced in your project.
i can't say for certain as i only have a single version of mapinfo installed on my machine, but i think having two versions and attempting to register them both in your project may cause conflicts. i'm not sure if you can alias a reference, if you could that would help a great deal. you could attempt to switch references in code based on what version you wish to instantiate, however i don't know how to do this as i've never needed to. the next option is a bit messy, but do-able. you could reference MI7 through it's library, but when instantiating MI6 you could do it through a variant object. this requires a lot more self-checking and stuff, but it's the way things used to werk. this may require that you SHELL mapinfo 6.5 and then use GetObject. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 18 November 2003 1:34 PM To: [EMAIL PROTECTED] Subject: MI-L A question Thank you very much for your reply at length.And thanks for your kindness and patience.I get it clear now. I am sorry I didn't express myself clearly .Could you do me a favor again? I write a program using visual basic and run professional through OLE.Under VB,I create professional object like Set Mi = CreateObject("MapInfo.Application").But How can I appoint which version of object to be created. Thanks again. Best regards, -brozonna åää: B. Thoen [mailto:[EMAIL PROTECTED] åéæé: 2003å11æ18æ 9:33 æää: lixiaohuiÃÃÃÃÃÃ æé: MapInfo-L äé: Re: MI-L A question On Tue, 18 Nov 2003, [gb2312] lixiaohuiÃÃÃÃÃÃ wrote: > I sent a question to you yesterday, but I receive several irrelative > emails just like virus this morning . Could you tell me where can I post > my question about Professional7.0 and where can I see the answer. Your message did appear on the MapInfo-L mailing list, but if you did not get a response yet it's because either no one here knew the answer or did not have time to answer. The "irrelevant" messages you received are other messages that are also broadcast over MapInfo-L. That's the way mailing lists work; any subscriber can post a message to the list, and all subscribers get copies of all messages. Subscribers can then read, answer or ignore any messages they please. If you post a question, it is good list etiquette to post a summary of the best answers you receive so that others can benefit from the answers and not have to ask the same question again. If you don't get an answer, I'm sorry; that's the way it goes. Try asking in a different way. BTW, this list is not managed or controlled by MapInfo Corp, so don't get upset at MapInfo if you don't get immediate (or accurate) answers. It's a free and open service set up and used by MapInfo users. > I intalled both professional6.5 and professional7.0 under > windows2000 server platform. And I want my application run with the > version which I appointed,such as professional6.5. How can I do that? To do this, you need to launch the MapInfo exe for the version you want to use and include the path and file name for the application on the command line with it. You can use the Run option on the Start menu, or create a shortcut that executes the version you want with the app. You may need to use complete path names, and also double quotes around the file names. - Bill Thoen MapInfo-L kybernetes --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9184
