Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSComm help required.

Status
Not open for further replies.

williamu

Programmer
Apr 8, 2002
494
GB
Hi all,

I'm writing an application that needs to read data from the Comm port. This data is transmitted to the port 3 times a second, what I'd like to do is to be able to read the data from the port and update the screen with the results.

The "screen" is simply a text control with a custom LCD font. I also need this to run without interfering with the rest of the application so the user can still use it. If anyone could point me in the right direction I'd appreciate it (and if you have sample code that would be even better).

Thanks.

--
William
 
Look into the Microsoft Comm Control 6.0. Unless you already have considering the title of your thread. If you have could you please elaborate on the issues you are experiencing. You should have no problem finding example code in MSDN or here on using that control. It is pretty straightforward.

Matt
 
Hi Matt,

What I'm trying to do is to create an SDI application that contains an "LCD" display. This LCD display is, as I've said, a simple edit control with a custom font.

The data entering the comm port arrives 3 times every second, within the data is a value that I can parse and use to display in the LCD control. However, the application does a lot more than reflect what is coming in via the comm port so that user must still be able to use the program to enter new and update Donors etc., without the "LCD" display being affected. I.E. it must still be seen to change as the user enters a Donors details in the Form.

I was wanting to start a thread of execution that ran and updated the display in the background, reading the data from the port or worked via events raised by the Comm control. But since I've never done anything like this before (VB) I'm scratching my head abit. Added to the fact that I couldn't find any documentation on threading in the MSDN (that I have).

If you or anyone else has some thoughts on this I would appreciate your comments.

--
William.


William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top