Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   C++ and Dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=4060)

Matt_Gray 01-05-2002 15:54

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:

Ian W. 01-05-2002 17:40

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...

Matt Leese 01-05-2002 22:14

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

Ian W. 01-05-2002 22:37

use fstream to a com port...?

you lost me

/me goes to check website

rbayer 30-05-2002 10:10

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...

Greg McCoy 30-05-2002 12:15

Re: clarification...I hope
 
Quote:

Originally posted by rbayer
I'll write up a white paper on both.

I think that would be very helpful to many programmers. I think a white paper on this would be awesome.

rbayer 04-06-2002 00:50

Quote:

I think that would be very helpful to many programmers. I think a white paper on this would be awesome.
It's up now, so go check it out and tell me what you think.


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