Hi Rob,
Depending on the .NET application type you have chosen (.exe, .dll, etc) will depend
on how this can be treated.
For a .exe, you can first test using DDE as has been suggested, or utilise
ShellExecute.dll (better and works well in .net) to either fire up or re-initalise the
exe.
Then within the exe you will need to utilise Page.IsPostBack, or Me.Activate,
Me.ActiveControl and me.Activeform to change application focus.
If the application is created as a .net control library (.dll), you can then create
public methods or classes as you have done using VB6 and access them directly as
subroutines or functions from MapBasic using the integrated mapping techniques. I have
found that some call back methods using this technique fail when traditional MapBasic
commands then come into play, but mainly due to the active control/window focus, but I
gather that is because you are trying to access a component that isn't .NET enabled.
Hope this helps,
Cheers
Jeff Spirek
-----Original Message-----
From: Rob Healy [mailto:[EMAIL PROTECTED]
Sent: Mon 9/6/2004 5:38 PM
To: [EMAIL PROTECTED]
Cc:
Subject: MI-L .NET and MapBasic
Dear List,
We are venturing out into .NET and have hit a wall.
We are trying to launch a .NET EXE from MapBasic and pass it some
startup arguments - this part is easy. However if the EXE is already
running, I would like to "jump/switch" to this and pass some different
arguments, or even better, invoke a public method from the EXE.
Essentially refresh the EXE with some new initialisation values. We do
not want to Kill the EXE and then start a new instance of it.
Has anyone had success with something similar.
Look forward to your responses.
Regards
Rob Healy
Meridian GIS Pty Ltd
MapInfo Partner & Reseller
Encom Partner - Discover Suite
Earth Resource Mapping Partner - Image Web Server
Safe Software Partner - FME
Level 2, 1050 Hay Street
West Perth 6005
Western Australia
Ph: 618 9226-0101
Fax: 618 9226-0102
email: [EMAIL PROTECTED]
web: www.meridian-gis.com.au
This transmission is confidential and intended solely for the person or
organization to whom it is addressed. It may contain privileged and
confidential information. If you are not the intended recipient, you
should not copy, distribute or take any action in reliance on it. You
are receiving this email because of your area of professional interest.
If you have received this transmission in error or would like to be
removed from our mailing list for company announcements please reply to
this email with UNSUBSCRIBE in the subject field. Thank you.
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 13222