cdholding image

comm32 home
comm32 forum
buy comm32

Introduction
Install SComm32
Why Not MsComm?

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

OnComm Event
Hardware/Cables etc

OutbufferSize

Sets or Retrieves the size of the Output (Transmit) buffers.

Available at Design time and Runtime. Read Only While the port is open.

         Syntax object.OutbufferSize = value
     
  object Name of the communications control.
  value A numerical expression indicating the size of the transmit/output buffer.
     
  Example object.OutbufferSize = 4096 '// Set the value
       
    Text1.Text = object.OutbufferSize '// Retrieves the current size of the buffer
       

Remarks:

Set before the port is opened. This value takes effect (memory is allocated) when the port is opened.

If you write more data into the transmit buffer exceeeding the size of the buffer then data loss will occur without warning (an OnComm error event (not a runtime error) is triggered 'after' the data loss occurs) - Use larger buffers and/or do something like this:-

n = SComm1.OutBufferSize - SComm1.OutBufferCount

Now you know that there are n free spaces available in the output buffer. Attempting to output more than n will obviously cause an overflow.

 

 
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