Ash
Heres some code from the VB6 FindZip sample that ships with MapBasic, that
will kick off Pro or a runtime depending on which is installed - remember
that the runtime comes with no menus or toolbars and you have to build all
of them with MapBasic statements. The sample code suggests using info about
whether it is a runtime or not to help you build the right menus.
HTH
' This code demonstrates how to structure an app that can be run
' with either MI Pro, or a MI Pro runtime as the OLE server.
bUnableToCreateObj = False
On Error GoTo cant_createApplicationObject
Set mapinfo = CreateObject("MapInfo.Application")
On Error GoTo 0
If bUnableToCreateObj Then
On Error GoTo cant_createRuntimeObject
Set mapinfo = CreateObject("MapInfo.Runtime")
On Error GoTo 0
End If
Paul Crisp
Syntegra
Innovation Place Delta Bank Road Newcastle NE11 9DJ
Tel 0191 461 4522 Fax 0191 460 1987
-----Original Message-----
From: Simmonds, Ashley (PTB) [mailto:simmonds.ashley@;saugov.sa.gov.au]
Sent: 24 October 2002 08:41
To: [EMAIL PROTECTED]
Subject: RE: SV: MI-L Mapbasic & MapX (Advice request)
i am also just about to embark on Runtime versions of MapInfo for wider
distribution of my stuff. matter of fact it was only a couple hours ago
when i had my first go, what i found was that i was unable to instantiate
mapinfo through creating an object or by attempting to open a workspace.
so is it true that i must use an MBX to start it?
my VB code for PRO has
set MIObj = CreateObject("MapInfo.Application")
however for the RunTime i found i had to Shell an instance by ...
Shell ~path~\MapInfor.exe somthing.MBX
then sieze the object...
set MIObj = GetObject("MapInfo.Runtime")
note how i had to change .Application to .Runtime. after that everything
else seemed the same, except i also had some troubles releasing the object.
i also noticed there seems to be no inbuilt right-click context menu, ie.
Layer Control etc.
but i haven't had time to really play yet.
ash
-----Original Message-----
From: Estibaliz Yag�e [mailto:estibaliz.yague@;sgsmap.com]
Sent: Wednesday, 23 October 2002 6:05 PM
To: [EMAIL PROTECTED]
Subject: Re: SV: MI-L Mapbasic & MapX (Advice request)
I've developped some VB-code with MI-Pro, MI-Runtime and MapX.
I've found that Runtime is a good option because it's hardly needed to
develop an extra code for MI-Pro and MI-Runtime (they both use nearly the
same, the main difference is how to invoke the instance of the application),
while MapX code is very different.
MI-runtime requires a license, like Pro, that is unique for every computer.
Some inconvenients of runtime are:
- It doesn't include any menu ( they can be created with some mapbasic
code )
- It must be started with a MBX.
- It doesn't contain all the funcionality of Mapinfo (but I think it has all
the user needs)
Best regards
---------------------------------------------------------------------
Est�baliz Yag�e Zat�n
SGSmap Ingenieros Consultores
San Sebastian - Espa�a
http://www.sgsmap.com/
[EMAIL PROTECTED]
---------------------------------------------------------------------
----- Original Message -----
From: "Matt Bolton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 7:35 AM
Subject: Re: SV: MI-L Mapbasic & MapX (Advice request)
> Bo,
>
> I've heard of this option, but was not sure whether it gave the same
> functionality as MI-Pro would.
>
> I assume that if I develop a VB app I can then distribute it to non-MI
> Pro owners, but would require a runtime licence (and install) for each.
> Is this correct?
>
> Thanks,
>
> Matt
>
>
> [EMAIL PROTECTED] wrote:
>
> >To Matt -
> >
> >If you want the use integrated mapping via MI-pro, but find it a bit
> >expensive, then have a look at the MI-runtime option.
> >Mi-runtime is a stripped-down version af MI-pro without any menus, but it
> >can very easyly be used as the mapping engine via integrated mapping. The
> >per seat license costs somewhere around 25 % of the license for the full
> >MI-pro version.
> >
> >regards
> >Bo Thomsen
> >
> >-----Oprindelig meddelelse-----
> >Fra: Matt Bolton [mailto:m3it@;technologist.com]
> >Sendt: 22. oktober 2002 07:55
> >Til: [EMAIL PROTECTED]
> >Emne: MI-L Mapbasic & MapX (Advice request)
> >
> >
> >My job primarily involves writing VB apps to interact with Access
> >databases, but has recently expanded to include dealing with MapInfo.
> > I've learnt the very basics of MapInfo and now need to start automating
> >it to make operation very simple for end users. This will mainly involve
> >extracting data from databases and using this to generate thematic
> >layers in Mapinfo.
> >
> >My research indicates that my options here are either:
> >a). Learn and use MapBasic, or
> >b). Purchase and learn to use the MapX control.
> >
> >Option b) would probably be easier for me, but will cost more due to
> >MapInfo's licensing arrangements for this control.
> >I am seeking advice on the best option to pursue, especially with
> >respect to:
> >1. Whether both options would provide equivalent functionality or if one
> >gives much more scope for automation.
> >2. The ease of learning of both options.
> >3. Recommendations of books or web sites for learning MapBasic.
> >
> >Thanks in advance,
> >
> >Matt
> >
> >
> >
>
> --
> Matt Bolton
> Mach 3 IT
>
> Mobile 0412 122 416
> Email [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 3720
>
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3737
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3745
********************************************************************
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
********************************************************************