cdholding image

comm32 home
comm32 download
comm32 forum
buy comm32

Introduction
Install Comm32
Why Not MsComm?

Properties
   .Break
   .CDHolding
   .CommEvent
   .CommPort
   .CTSHolding
   .DSRHolding
   .DTREnable
   .EOFEnable
   .Handshaking
   .InBufferCount
   .InBufferSize
   .Input
   .InputLen
   .InputMode
   .NullDiscard
   .OutBufferCount
   .OutBufferSize
   .OutPut
   .ParityReplace
   .PortOpen
   .RThreshold
   .RTSEnable
   .Settings
   .STHreshold


Comm32 Properties
   .DeviceName
   .EOFChar
   .EvtChar
   .EvtCharEnable
   .OutPutEx
   .OutPutMode
   .ParallelEnable
   .TxTimeout

Comm32 Functions
   .getByte

   .GetPortStatus
   .InstalledDrivers
   .putByte
   .PortExists

OnComm Event
Hardware/Cables etc

putByte

Outputs/Sends one byte of data (Places one Byte into the transmit buffer) and returns true or false depending on success or failure.

Not available at design time. Write only at runtime.

Only available with Comm32 - Not available with MSComm32

         Syntax result = object.putByte(value)
     
  object Name of the communications control.
  result Boolean return value. true or false. Will be false if the byte could not be moved into the transmit buffer (ie if the buffer was full)
     
  Example.  
   

Dim i as Byte

For i = 1 to 20
    If Comm1.putByte( i ) = False Then
        '// no more room in tx buffer
        Break
    End If
Next i

'// This example will attempt to send the values 1 to 20
'// This function sends the byte as a raw byte value. Not as a string/character. Use this function to send byte values in the range 0 to 255

You do NOT need to change the OutputMode property. The putByte function ALWAYS sends the raw byte value.

 
       

 

 

 
32bit development in VB6 using the Comm32 Communications OCX ?

Or are you looking for a proper .Net Component ?

Carry on using most of the common and well documented MSComm32 syntax but with a proper .net component allowing you to build x86, x64 and AnyCPU projects using Visual Studio 2005, 2008 and 2010.

www.Comm64.com
The x86, x64 and AnyCPU
Serial component

 

 

Copyright (c) 2010 Axis Controls Ltd