Re: [Dev-C++] WRITING TO SERIAL PORT
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-06-23 12:28:13
|
I'm not entirely sure of the syntax but...
In DOS (command prompt) you can do
nmake DebugBuild > LPT1
to send output of the DebugBuild "build" to the printer attached to LPT1.
I'm not sure about how you could tie this in with your project though...
>From: Dondolo Mpho <MDo...@OL...>
>To: dev...@li...
>Subject: [Dev-C++] WRITING TO SERIAL PORT
>Date: Mon, 23 Jun 2003 10:23:36 +0200
>
>Hi all,
>
>I have been playing around with streams and need the following help.
>I am able to print my files to our network printer and also write them to
>specific network drives.
>How do I write a device in one of my ports...eg, serial port
>consider this code as an example.
>
>
>
>ofstream create(" \\omcwca054\\HPLJ5000 <file://\\omcwca054\\HPLJ5000> ")
>cout<<"The following will be printed to on lazer jet printer";
>create<<" Mpho Dondolo\n"
> <<" 45 Durban Ridge\n"
> <<"Tyger Valley\n";
>create.close();
>
>I want to write to my matrix display board that is connected to my serial
>port.
>
>NB!!!! Please do not flip if have not supplied sufficient info. ( last i
>did
>that, some guy almost had a heart attack) I am still new at this game
>
>
_________________________________________________________________
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
|