Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: sheng84 on June 23, 2005, 12:49 AM

Poll
Question: i have a few problems regrading my program anyone can help???
Option 1: anyone can help??? votes: 0
Option 2: anyone can solve my program>?? votes: 2
Option 3: no votes: 7
Title: to sent mulitple signal through RS 232 to a power supply using c programming
Post by: sheng84 on June 23, 2005, 12:49 AM
hey to all have reply me, i have a program something as the same i last post which can only send 1 sentence to the power supply, and the program exit out after keying in the sentence. what i wan my program to do is to sent a few sentence over to the power supply and read it back the input, cos i need to actually command it without manually setting it.
Title: Re: to sent mulitple signal through RS 232 to a power supply using c programming
Post by: Yoni on June 24, 2005, 10:05 AM
1. It looks like you viewed some site in Internet Explorer, viewed the files rs-232.c and rs-232.h and then used IE's File -> Save As.... to download them (that way it saves it with a "[1]" or "[2]", etc.).

2. It looks like you copied and pasted some sample code from that site and added on your own the 2 lines:
#include<rs-232[2].h>
#include<rs-232[2].c>

3. It looks like you don't really know C++ that well.

4. That said, could you phrase your problem in the form of a question? (And no, nobody can help. Yet.)
Title: Re: to sent mulitple signal through RS 232 to a power supply using c programming
Post by: Banana fanna fo fanna on June 24, 2005, 08:48 PM
and why is this a poll again? and can you use code tags?
Title: Re: to sent mulitple signal through RS 232 to a power supply using c programming
Post by: shout on June 24, 2005, 10:37 PM

PVOID doanything(PVOID everything)