how to start a RSLINX topic with NDDE

May 24, 2010 at 10:41 PM

how to start a RSLINX topic with NDDE?

Jun 25, 2010 at 4:23 PM
renechik wrote:

how to start a RSLINX topic with NDDE?

Have you tried:

DdeClient DDEInitiate = new DdeClient(RSLINX, [insert here the name of your topic]); ?

Jun 25, 2010 at 5:24 PM

yes i tried with  VB

Imports NDde.Client

Public Class Form1
    Private client As NDde.Client.DdeClient
    Private flag As Boolean = False

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Try
            client = New NDde.Client.DdeClient("RSLINX", "ACC")
            client.Connect()
            lbl.Text = "CONNECTED"
            flag = True
        Catch ex As Exception
            lbl.Text = "CONNECTION FAILED"
        End Try
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If flag Then
            Try
                lbl.Text = client.Request("N7:10", 6000)
            Catch ex As Exception
                lbl.Text = ex.StackTrace
            End Try

        End If
    End Sub
End Class

 

but label show "SERVER error[1]."

 

why ???

Jun 25, 2010 at 6:13 PM

i think taht the DDE server from RSLINX is not running, how to start the RSLINX DDE server with NDDE ???