not what I can think of. I call a Delphi exe and DDE the strings to
MapBasic RemoteMessageHandler.
{ DDE-communication }
procedure TMapDDE.SendMapInfoMsg(note:string);
var dde_conv:TDDEClientConv;
arr:array[0..511] of Char;
begin
dde_conv:=TDDEClientConv.Create(Application);
try
if FileExists(_mbxFile) then begin
StrPCopy(arr,note);
dde_conv.SetLink('MapInfo',_mbxFile);
dde_conv.ExecuteMacro(arr,True);
dde_conv.CloseLink;
end;
finally
dde_conv.Destroy;
end;
end;
Sub RemoteMsgHandler
Dim sDelphi As String
sDelphi = CommandInfo(CMD_INFO_MSG)
Print "sDelphi: " + sDelphi
end sub
HTH,
Jakob Lanstorp
Software Developer
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S
Denmark
Tel +45 6311 4900
Mob +45 4020 7529
Fax +45 6311 4949
E-mail [EMAIL PROTECTED]
http://www.cowi.dk/gis
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Zyczynski
Sent: Tuesday, January 10, 2006 5:12 AM
To: 'MapInfo-L'
Subject: [MI-L] Passing parameters to an MBX
Hi All,
Is it possible to pass parameters to an MBX?
I have to integrate my MBX with a third party application. The third
party application will launch my MBX passing an ID number to it, my MBX
then assembles a dataset based on this ID number and performs operations
on it.
If this can't be done, then any ideas?
I could write a small EXE in Delphi which could be called by the third
party app, the EXE could write the parameters to a text file and launch
the MBX.
The MBX could then read that text file........ is there an easier way
without having to write middleware?
Cheers,
Peter
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l