I used Borland c++5.5 to compile .
Part of my code is like this,
fprintf(stdprn,"\r\f");
when I compile , the error message was,"undefine stdprn".
What thats mean.How I should rectify it.
Thanks.
Printable View
I used Borland c++5.5 to compile .
Part of my code is like this,
fprintf(stdprn,"\r\f");
when I compile , the error message was,"undefine stdprn".
What thats mean.How I should rectify it.
Thanks.
stdprn isn't a standard stream in C, apparently Borland 5.5 doesn't support it. The only way to fix it is to use another compiler that does support stdprn, or find another way to connect to your printer :-)
FILE *stdprn;
stdprn = fopen("LPT1", "w");
Personally, I'd change the file stream name though, to avoid further conflicts. Also using LPT1 isn't guaranteed to work ;)