OnAdvise

Dec 4, 2015 at 8:11 AM
Hello,

2 DDE clients must communicate, but i don't understand the function OnAdvise in the task server. It returns me the datetime in all my variable. It's logic! But i don't undestand how I transmit the value "A" To "B" ...

thx
      protected override byte[] OnAdvise(string topic, string item, int format)
                {
                    //System.Threading.Thread.Sleep(5000);
                    //'System.Threading.Thread.Sleep(5000);
                    Console.WriteLine(DateTime.Now.ToString() + "-" + "OnAdvise:".PadRight(16)
                        + " Service='" + this.Service + "'"
                        + " Topic='" + topic + "'"
                        + " Item='" + item + "'"
                        + " Format=" + format.ToString() );

                    // Send data to the client only if the format is CF_TEXT.
                    if (format == 1)
                    {

                        
                       return System.Text.Encoding.ASCII.GetBytes("Time=" + DateTime.Now.ToString() + "\0");
                    }
                    return null;
                }