Mark,

This may not help, but I must try as it pains me to see a fellow programmer 
get tangled in the DDE briar patch.

Have you tried Integrated Mapping? Once I got a taste of it, I never looked 
back. In fact I haven't written a MB program in MapInfo Pro since. I can do 
everything faster and easier with Integrated Mapping. Plus, you can use all 
of the debugging tools and UI tools that come with VB.

- Brad

At 11:15 PM 5/16/2002 +0100, Mark Williamson wrote:
>Hi
>
>Has anyone got experience with DDE in Visual Basic.
>
>Im trying to get a simple conversation going btw vb & mb
>
>I'm using the code straight out the documentation
>
>
>On Error GoTo err
>
>Text1.LinkMode = 0
>Text1.LinkTopic = "MapInfo|test_dde.mbx"
>Text1.LinkMode = 2
>Text1.LinkExecute "Hello"
>Text1.LinkMode = 0
>
>err:
>     MsgBox "No conversation established"
>
>for the visual basic side of things, and
>
>Sub RemoteMsgHandler
>
>Dim message As String
>
>message = CommandInfo(CMD_INFO_MSG)
>
>Print message
>
>Call ShowMap
>
>End Sub
>
>
>
>for the mapbasic code, but I cant get anything to happen!
>
>MapInfo is up and running, this is a simple as it gets I imagine so i must 
>be missing somethig simple but from the help i cant see what.
>
>Also the DDE client on the visual basic side always have to use a TextBox 
>(Text1) as its LinkXXXX I cant seem to get anything else to work.
>
>
>
>Any help much appreciated
>
>
>
>Thanks
>
>
>
>Mark
>
>

Brad Mathews
CTO, Cypress Technology Solutions, Inc.
www.CypressSolutions.com


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to