Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WDDEClient:Init() Method
Construct a DDE client object
------------------------------------------------------------------------------

Syntax
WDDEClient{ <oParent>, [ <cServer> ] , [ <cTopic> ] , [ <lCreate> ] ,
            [ <lNeedRegClass> ] }   -->   SELF

Arguments
<oParent> is the parent (owner) of the DDE object.

<cServer> optionally specifies the name of the server, as it
identifies itself to Windows.  If you specify the server, the
class automatically starts a conversation with it, otherwise
it makes no attempt to connect to any server.  You can get a
list of all accessible servers using the ServerInfo() method.

<cTopic> is an optional string specifying the topic name.  The
default depends on the server, but is typically taken to mean
any topic or all topics.

<lCreate> specifies whether the object's Create() method is
to be invoked immediately.  Usually you want the default (.T.).

<lNeedRegClass> can be .F. to prevent a window class being
automatically detected/registered.  Usually you want the
default (.T.).

Returns
SELF.

Description
This method initialises a DDE client object.

Example
// From SOURCE\OO\CLASSES\DDECLIEN.PRG:
METHOD ProgMan()                                              ;
      INLINE local  oDDE,                                      ;
             local  cAdd,                                      ;
             oDDE := WDDEClient{self, "ProgMan", "ProgMan"},   ;
             ; // make a group
             oDDE:Execute("[DeleteGroup(Clip-4-Win Test)]"),   ;
             oDDE:Execute("[CreateGroup(Clip-4-Win Test)]"),   ;
             oDDE:Execute("[ShowGroup(Clip-4-Win Test)]"),     ;
             ; // somethings to see (you should have these...)
             cAdd := "[AddItem(" + GetWindowsDirectory(),     ;
             oDDE:Execute(cAdd + "\CLOCK.EXE, Clock)]"),       ;
// . . .
             ; // admire the view
             ::MsgBox("Press OK after you've had a look at" + CR ;
                      + "the new group in Program Manager"),   ;
             ; // clean up
             oDDE:Execute("[DeleteGroup(Clip-4-Win Test)]"),   ;
             0


See Also: WDDEClient:Axit() WDDEClient:Execute() WDDEClient:Stop()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson