PowerTerm Script Language+DDE

Hi,
I have written two programs 1. C\:client.exe and C:\Server.exe in VC++ 6.0 under windows 2000 Professional.

C\:client.exe is a console application in C++ and and C:\Server.exe is C Windows, and both are written for supporting DDE.

Both work nice. I send XTYP_REQUEST and the message is handled properly in the Server.
Mean Client sends handle to a string "Wish". Server, in its call back function handles the is request for XTYP_REQUEST and displays
"Hello Prasanna" in the middile of the windows of the server program.

Now that I want to make use of PowerTerm Script Language. I have terminal (TELENET - Powerterm Interconnect), I want to make use of PSL to communicate with Server residing in my PC.

I am doing following steps.
1. Launching my server application (C:\Server.exe)
2. Connecting thru Telenet.
3. Wrote a .psl and saved it at C:\testpsl.psl

The script has following four lines

conv = [dde initiate C:\Server.EXE C:\Server.EXE]
res = [dde request $conv Wish]
send $res
dde terminate $conv.

4. In the TELNET connection, I go to
Script->Run Script and in the file selection dialog box I select C:\testpsl.psl and it open button.

With this I expect my server program (which is running as a result of step 1) should respond to the script and display "Hello Prasanna" in the middile of the windows of the server program.

This is not happening. Instead, the TELNET screen hangs. I need to close the TELNET connection and establish it again.

Can any one help me.

Regards
Prasanna Joshi
[1646 byte] By [SunnyPriya] at [2007-11-19 22:36:25]