[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 BuildCommDCB( cInfoDef, @cDevBlock )->  <lSuccess>
------------------------------------------------------------------------------


 PARAMETER:

  <cInfoDef>   Is a string that specifies device-control information. The
               string has the same format as the parameters used in the
               MS-DOS mode command.

  <cDevBlock>  Is a string passed by reference that will receive the
               translated string. Its structure defines the control settings
               for the serial-communications device.



 RETURNS:

  <lSuccess> is TRUE if the function is successful



 DESCRIPTION:

  BuildCommDCB() translates a device-definition string into the appropriate
  serial device control block (DCB) codes. You find sample code for this 
  function in SAMPLES\TestComm.prg


 EXAMPLE:


    +--------------------------------------------------------------+
    |  /* Set up the port */                                       |
    |   LOCAL ;                                                    |
    |      cDCB,;                                                  |
    |      nErr                                                    |
    |                                                              |
    |   IF !( nIdComDev = OpenComm("COM1", 1024, 128 )) == 0       |
    |      nErr := BuildCommDCB("COM1:9600,n,8,1", @cDCB)          |
    |                                                              |
    +--------------------------------------------------------------+


 SOURCE:

  SOURCE\WINAPI\COMM.C



See Also: OpenComm SetCommState CloseComm ReadComm WriteComm
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson