FYI, there is documentation and some great code samples of this on
MapInfo's testdrive center under "Integrated Mapping".

Rob Martinson
Directions Magazine
http://www.directionsmag.com
[EMAIL PROTECTED]
 

-----Original Message-----
From: James Marlow [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 02, 1999 8:57 AM
To: 'Andrew Bailey'; Mapinfo-L (E-mail)
Subject: RE: MI problem in calling dll


Hi Andrew

It is quite possible to build a VB (or Delphi or C++) application that
uses Mapinfo in the background while only showing the user your
program's interface. The process is called integrated mapping and it is
discussed in Mapbasic manuals.

You have to do a bit of development to make the interaction between VB
and MI "enjoyable" but if you are comfortable with classes in VB this is
not really an issue. The reason for this is that the MI object does not
have the complete Mapbasic command set available. You do, however, have
a Do and Eval method to use, both of which take a command string (just a
string of Mapbasic commands) as an argument. The Eval method passes back
a string. The problem with this is that it's a bit of a pain to assemble
the command string - especially one using quotes. I wrote a class to
wrap up any procedures / functions I need and this makes calling things
a lot easier. Once you get the feel of how the interaction works it
really isn't that bad at all.

I have written a number of applications in VB and find the process quite
useful. Since my class module containing the MB commands is now fairly
complete I have even found that certain applications are easier to write
in VB with MI just used for the back end.

Feel free to drop me a note if you have more questions.

Regards

James

--------------------------------------
James Marlow, Director of GIS
Channel Marketing Corporation
[EMAIL PROTECTED]  http://www.cmcus.com
Telephone: 972-858-9600 x 331
Facsimile: 972-858-9601

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to