Your VB.NET application must act as a DDE client, because Mapinfo acts as a DDE server. RemoteMessageHandler and RemoteQueryHandler fire when DDE request is received.
DDE API does not exist within .NET. They only exist in C language, and it's too hard to integrate them into VB code. You have to write a C DLL to manage DDE, creating a simple interface with DDE API's, that could be used from VB code. I have written this DLL, I could send you an example ? My DLL does not manage multiple DDE connection at the same time. Only one at a time. You will have to adapt the DLL to manage more than one DDE connection at the same time. Chris -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Cory Martin Envoyé : vendredi 6 octobre 2006 16:17 À : [email protected] Objet : [MI-L] VB.NET & Integrated Mapping I've never had any problem sending commands to MapInfo from a VB.NET application. I can run all sorts of MapBasic commands and launch MBXs. But I haven't figured out how to reference the individual MapBasic applications I've started to access their RemoteMessageHandlers or invoke their RemoteQueryHandlers. How does one properly set this up in VB.NET? Best regards, Cory Martin _______________________________________________ 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
