|
-
August 27th, 1999, 09:36 AM
#1
file help required
How to send a file to a specified LPT device using Visual C++ 6.0.
Tufail
-
August 27th, 1999, 10:15 AM
#2
Re: file help required
The idea:
char lpBuf[80]="just test";
int u=_open(_T("LPT1"),_O_BINARY | _O_RDWR);
write(u,lpBuf,80);
_close(u);
Dmitriy, MCSE
-
August 27th, 1999, 12:18 PM
#3
Re: file help required
Sir,
What I want is this
We have a dos command like this
type a.txt > LPT1
I want to do the same but by some other means so that the program doesn't have to enter the DOS prompt
-
August 27th, 1999, 01:26 PM
#4
Re: file help required
Try the example. If you want to send file, just replace lpBuf in _write() with pointer to buffer where you have loaded in memory file.
Did I missunderstand something?
Dmitriy, MCSE
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|