CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Oct 2008

    Serial Port Write-Read Threaded function

    I am developing a tool using VC++.net 2008, which is connected(using Serial Port) with a PC Board.
    When I am Writing ( a Command) to the Processor(on Board) it gives certain datas and Read by my tool.This data is taking for further process. This Write-Read function is threaded and continuously do in every seconds. Initially both process has worked. But Data Write is not processing after first second.(problem is not in code-I've excluded Read process n ithas worked)

    Do I clear any buffer or Serial Settings before this Write-read Application.Any experienced plz. help 2 fix it???(source code plz....)

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Hanover Germany

    Re: Serial Port Write-Read Threaded function

    Quote Originally Posted by arunkr6 View Post
    I am developing a tool using VC++.net 2008,
    Are you using native VC++ or some .NET technology (like CLI and so on)? If latter - then ask it in the Managed C++ and C++/CLI forum.
    If the former - show your code (don't forget using Code tags)
    If your App is a MFC one - see the Serial Port I/O
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.