| delorie.com/archives/browse.cgi | search |
| Message-ID: | <362721BF.48FD813A@post.comstar.ru> |
| Date: | Fri, 16 Oct 1998 13:36:49 +0300 |
| From: | Dim Zegebart <zager AT post DOT comstar DOT ru> |
| Organization: | Comstar Ltd. |
| X-Mailer: | Mozilla 4.05 [en] (WinNT; I) |
| MIME-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| Subject: | Re: Is there a standard easy way to print to a printer? |
| References: | <706j31$rdu AT ds2 DOT acs DOT ucalgary DOT ca> |
| Reply-To: | djgpp AT delorie DOT com |
Tim wrote:
> Hi all,
>
> I was wondering if somebody could tell me if there was a standard
> easy way to print text to a standard text printer; is there just a
> "stream" or something? (And if there's not, I was hoping somebody could
> explain to me how else I could do it; All I want to do is to be able to
> print out some really basic text, nothing fancy).
>
> Thanks,
> -Tim
I use this code to do printing from my programs :
n=strlen(szMsg);
for (i=0;i<n;i++)
{ s=biosprint(0,szMsg[i],0);
if ((s&0x39)!=0x10)
{ perror("Error printing.\n";
break;
}
}
--
Dim Zegebart
Moscow, Russia
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |