Win32::DDE::Client - Perl extension for Win32 DDE client |
Win32::DDE::Client - Perl extension for Win32 DDE client
use Win32::DDE::Client;
$Client = new Win32::DDE::Client ('Server', 'Topic'); die "Unable to initiate conversation" if $Client->Error;
defined ($hesays = $Client->Request ('ITEM1')) || die "DDE request failed";
$Client->Poke ('ITEM2', 'VALUE2') || die "DDE poke failed";
$Client->Execute ('COMMAND') || die "DDE execute failed";
$Client->Disconnect;
Win32::DDE::Client
is a class implementing a simple DDE client in Perl.
SERVER
and
TOPIC
are the server and topic names for the server to connect to. A server
object will be returned, regardless of the success or failure of the connect;
you will have to use the Error method to figure out if the connect succeeded or
not.
Unless otherwise stated all methods return either a true or false value, with true meaning that the operation was a success. When a method states that it returns a value, failure will be returned as undef.
Request(ITEM)
See the ErrorText function in the Win32::DDE manpage for a way to make these useful.
This method will give a little more detail than a Win32::DDE::ErrorMessage($Client->Error).
The timeout value is initially set to $Win32::DDE::Client::Timeout when the object is constructed. $Win32::DDE::Client::Timeout is set to 1000 when the module is loaded.
Doug Breshears Gurusamy Sarathy, gsar@umich.edu current maintainer, Doug Wegscheid, wegscd@whirlpool.com
Win32::DDE::Client - Perl extension for Win32 DDE client |