dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: mscomm buffering

  1. #1
    Join Date
    Dec 2006
    Posts
    8

    mscomm buffering

    I'm trying to use mscomm to read a 18KB image off a smartcard that comes in 1 continuious stream. I'm not sure exactly how to go about doing this properly. Please give suggestions. I should also note the stream is in hex.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2006
    Posts
    8
    Ok here is my code

    inpBuff = vbNullString
    Do Until frmMain.MSComm.InBufferCount = 0
    DoEvents
    inpBuff = inpBuff & frmMain.MSComm.Input
    Loop

    This gets me a length of 1840 chars which I need double that amount back so just trying to figure out a better way. I do not have a way of determining the end of the data transmission either.

Similar Threads

  1. mscomm
    By onder in forum .NET
    Replies: 7
    Last Post: 11-07-2002, 06:06 PM
  2. ActiveX DLL and MSComm
    By Rusty Davis in forum VB Classic
    Replies: 1
    Last Post: 07-06-2001, 07:40 PM
  3. Replies: 0
    Last Post: 12-14-2000, 05:40 PM
  4. MSCOMM and the internet
    By Timothy Schilbach in forum VB Classic
    Replies: 2
    Last Post: 07-26-2000, 11:43 AM
  5. MSCOMM and the internet
    By Timothy Schilbach in forum VB Classic
    Replies: 0
    Last Post: 07-25-2000, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center