|
From: lstar36 <ls...@fl...> - 2000-12-20 15:58:53
|
try this function to print in DOS:
void print_buffer(char *str)
int i, status;
i=0;
do
{
status = biosprint(0,str[i],LPT1);
if ( (status & LPT_SELECTED) != LPT_SELECTED && (status &
LPT_NOT_BUSY) != LPT_NOT_BUSY){
print_err_process(status);
}
}
while (i++ < strlen(str));
}
lon...@ju... ls...@fl...
----- Original Message -----
From: "Kuriyama Hsutaro" <hs...@ho...>
To: <dev...@li...>
Sent: Tuesday, December 19, 2000 6:31 PM
Subject: [Dev-C++] Printing in DOS
>
> Can someone tell me how to print text(to the printer) in DOS?
>
> If Dev-C++ doesn't have the function, MSVC would be fine too.
>
> Thanks in advance.
>
>
> Taro
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
|