Greetings fellow propeller heads,

Being relatively new to writing Delphi DLLs I found this one to be a bit of
a toughie, so I hope someone out there can help.

What I'm trying to do:
----------------------
I'm writing a Delphi4 DLL that is required to execute an MBX file.  The DLL
is the client, and MI is the server..... pretty easy so far.

The MBX runs in a new session of MapInfo - BUT only the first time it is
run!  I use the line:

WinExec(PChar(MapInfoProgram + ' ' + MyMBX'), 1)


My problem:
-----------
Subsequent activations of this MBX are to run in the ALREADY OPEN session of
MapInfo.  This is the bit I'm having trouble with.  How do I run an MBX in
an already open session of MI?

Do I get the application handle of the initial session of MI and then
somehow force the MBX to run in that????

Any help or even snippets of code would be most appreciated.

Thanks,

Peter Zyczynski
Analyst Programmer
Landfile Consultancy
Ph: (03) 6244-7344
email: [EMAIL PROTECTED]




_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to