![]() |
C++ and Dashboard
Hey... does anyone know how to write a segment in C++ (if it helps I use the Bourland compiler) to input information from the dashboard output to a communitcations port on the back :confused: :confused: :confused:
|
If i knew i'd tell you. unfortunately, i'm still trying to figure this out myself. maybe after ap tests i'll find something...
|
Alright, I suppose I'll bring out my Dashboard viewer yet again. It's written in C/C++ and runs under Windows. It does read data in from the serial port. In short, the way to access a COM Port (aka serial port) is to simply use ReadFile/WriteFile on it. There's a bit more too it but you can find all of it in the Dashboard Viewer.
I haven't played with it too much in several years as I haven't had too much use for it. It does include the full source code. It can be found here: http://www.bcpl.net/~mleese/dashboard.html I hope you find it useful. Feel free to contact me if you have any questions. Matt |
use fstream to a com port...?
you lost me /me goes to check website |
clarification...I hope
Basically, the way you do serial communications in Windows is to pretend that the serial port is a file. Then, you can use the standard Windows read and write operations to get data from and to the serial port. I don't know if this works with standard C fstream objects though. As soon as I'm done with my research paper, I'll write up a white paper on both.
BTW, what exactly do you mean by segment? Are you talking about a function? It's just that the word "segment" has a very specific meaning in assembly, and I'm hoping this isn't what you're talking about... |
Re: clarification...I hope
Quote:
|
Quote:
|
| All times are GMT -5. The time now is 01:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi