|
From: Eric <eri...@cl...> - 2004-07-31 22:22:11
|
I found this, but it does not print to printer.
#include <iostream.h>
#include <fstream.h>
int main(void)
{
ofstream printer; // ofstream means out file stream
printer.open("LPT1");
printer << "This text will print on the printer.\f";
printer.close(); // close stream
return 0;
}
----- Original Message -----
From: "Eric" <eri...@cl...>
To: <dev...@li...>
Sent: Saturday, July 31, 2004 11:47 PM
Subject: [Dev-C++] very strange error & print to printer
Hi all
I just thought I should stop loosing it an get a C++ project going,
So just to road test the program I clicked on the project tab "Console
application"
on the "additional tab clicked "Hello world"
Then I clicked "OK" and up came.
#include <windows.h>
#include <iosteam.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
cout << "Hello World!" << endl;
cout << "Press ENTER to continue..." << endl;
getchar ();
return 0;
}
++++++++++++++++++++++++++++
Notice the second line that should be #include <iostream.h>
OK
is there a way in your C++ project to send data (like print a invoice)
off to a printer, I looked under "print" in the help files and it was no
help.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 29-Jul-04
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|